On 7 Aug 01, at 14:02, René Moonen wrote:

> The problem is that REMOTE_ADDR returns the IP address of the proxy (if

> if(getenv(HTTP_X_FORWARDED_FOR))
> {
>   $ip=getenv(HTTP_X_FORWARDED_FOR);
> }
> else
> {
>   $ip=getenv(REMOTE_ADDR);
> }
> $host = gethostbyaddr($ip);

except, perhaps, when there's also a firewall with NAT/MASQ involved - in
that case you'll probably not get much closer than the firewall's IP
address (at least, that's how it is on my network).

CYA, Dave

Outback Queensland Internet - Longreach, Outback Queensland - Australia
http://www.outbackqld.net.au          mailto:[EMAIL PROTECTED]

PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to