in reply to CGI IP Based Security
Do you have access to the webserver configuration? Like being able to tell apache via httpd.conf to ..
Would seem to obviate the need for any IP sec logic in your codeOrder Deny,Allow Deny from all Allow from myservername.here.com Allow from localhost
Update:Of course if you MUST do it with the script, for instance to display a 'friendly' warning rather than a 500 Forbidden, using the CGI query object from CGI.pm you can...
my $q = CGI->new(); my $remote_host = $q->remote_host();
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Re: CGI IP Based Security
by sgifford (Prior) on Jun 24, 2003 at 07:08 UTC | |
Re: Re: CGI IP Based Security
by devslashneil (Friar) on Jun 24, 2003 at 03:06 UTC | |
by devslashneil (Friar) on Jun 24, 2003 at 03:33 UTC | |
by submersible_toaster (Chaplain) on Jun 24, 2003 at 05:09 UTC | |
by devslashneil (Friar) on Jun 24, 2003 at 05:55 UTC | |
by CountZero (Bishop) on Jun 24, 2003 at 05:50 UTC |