Re: How can I find IP address....

From: Date: Wed, 13 Dec 2000 22:27:40 +0000
Subject: Re: How can I find IP address....
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-30199@lists.php.net to get a copy of this message
> The value of $REMOTE_ADDR is not ever the IP address of your client. It is Sure it is, if he's got a static IP address, or is not using a *large* ISP like AOL etc that has caching servers. > possible to be the IP address of his cache server ( from his ISP ). > If you want to be sure which is the IP address of your client, is better to > use this code: "Sure" is relative. Your Web server can be configured to not provide this info to PHP, and the caching server may choose not to expose their IP, and they could behind a corporate firewall/proxy that will not pass on their IP and if they're a really good hacker, they could spoof their IP. You should *NEVER* count on the user's IP address as anything more than "supporting evidence" for their identity.

« previous php.general (#30199) next »