[Tutor] howto filter access to a cgi script

Kent Johnson kent37 at tds.net
Wed Feb 28 19:42:09 CET 2007


paulino1 at sapo.pt wrote:
> Hi!
> 
> I have some python CGI scripts in an intranet, in a windows network, I  
> would like to restrict the access to some of those scripts to a list  
> of computers in the domain.
> 
> How?

Within the CGI I think you can look at the environment variable 
REMOTE_HOST or REMOTE_ADDR.

You could also do this by configuring the web server (e.g. apache) that 
is serving the CGI, or some other method of restricting access to the 
computer running the server.

Kent


More information about the Tutor mailing list