Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re: IP

by blakem (Monsignor)
on Aug 14, 2001 at 14:35 UTC ( [id://104728]=note: print w/replies, xml ) Need Help??


in reply to IP

There are various setups that will cause the remote_addr to be the local machine (127.0.0.1). Most that I've seen will set some other environment variable before overwriting $ENV{REMOTE_ADDR}, You might try $ENV{HTTP_PROXY} $ENV{FORWARDED_FOR} or $ENV{X_HTTP_FORWARD}. Since it varies between systems, my advice would be to just dump your %ENV and take a look, like so:

print "$_ => $ENV{$_}\n" for (keys %ENV);

-Blake

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://104728]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-28 13:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found