How to Restrict CGI access on Freebsd?

How to Restrict CGI access on Freebsd?

Post by Maxim Maximo » Tue, 13 Apr 1999 04:00:00




Quote:> Hi All,

> I using freebsd and I'm trying to modify the access.conf server
configuration
> file to restrict CGI access from remote hosts to CGI files in a particular
> directory yet allow CGI access in the same directory for visitors to my
web
> site (i.e., people who come using their browsers). I have been trying this
> code:

    I think you dont need to modify apache configuration files. You would
set mode 700 on the cgi-bin directory. Also, the owner of that directory
should the one apache running as.

--
Maxim Maximov                phn: +7-812-108-5463
Data Communications Dept.    fax: +7-812-108-4796
SoftJoys Corp.               icq: 13495098

 
 
 

How to Restrict CGI access on Freebsd?

Post by Tyrel Burto » Tue, 13 Apr 1999 04:00:00


no, i believe it's in the access.conf/httpd.conf file -- it something
like "if the file ends in .cgi, and the user is from our network, then
allow cgi otherwise don't." -- i can't remember though, however I
remember seeing it in httpd.conf-dist.

Tyrel.




> > Hi All,

> > I using freebsd and I'm trying to modify the access.conf server
> configuration
> > file to restrict CGI access from remote hosts to CGI files in a particular
> > directory yet allow CGI access in the same directory for visitors to my
> web
> > site (i.e., people who come using their browsers). I have been trying this
> > code:

>     I think you dont need to modify apache configuration files. You would
> set mode 700 on the cgi-bin directory. Also, the owner of that directory
> should the one apache running as.

> --
> Maxim Maximov                phn: +7-812-108-5463
> Data Communications Dept.    fax: +7-812-108-4796
> SoftJoys Corp.               icq: 13495098

--
--------------------------------------------------------------------------------
Tyrel Burton                            "The best-laid schemes o' mice an' men

http://www.pangea.ca/tyrelb             An' lea'e us nought but grief an' pain,
                                        For promis'd joy!"  - R. Burns