LPM: getting ips

Steve Lane sml at zfx.com
Mon Mar 19 14:22:17 CST 2001


depending on the webserver, you may need
$ENV{REMOTE_ADDR} instead.  best to dump out
all of %ENV and pick what you want.

Gregg Casillo wrote:
> 
> This simple CGI script should do the trick:
> 
> #!/usr/bin/perl
> 
> print "Content-type: text/html\n\n";
> print "Your IP Address = $ENV{REMOTE_HOST}";
--
Steve Lane <sml at zfx.com>



More information about the Lexington-pm mailing list