Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re: Retrieving the REMOTE HOST

by jasonk (Parson)
on Jul 09, 2007 at 00:04 UTC ( [id://625548]=note: print w/replies, xml ) Need Help??


in reply to Retrieving the REMOTE HOST

Many web servers are configured not to resolve the IP addresses of clients connecting (Apache for example, is configured this way by default) simply because most people don't ever use that information, and doing a DNS request for every connection to your web server to get information you aren't going to use anyway is somewhat wasteful. In this situation, the best thing for you to do is to get $REMOTE_ADDR instead, and resolve it yourself if you really need a hostname instead of an IP address.


We're not surrounded, we're in a target-rich environment!

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others browsing the Monastery: (4)
As of 2024-04-24 18:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found