[Tutor] howto filter access to a cgi script
kent37 at tds.net
Wed Feb 28 19:42:09 CET 2007
paulino1 at sapo.pt wrote:
> 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.
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.
More information about the Tutor