RE: [PHP] Real IP address?
| From: | John Coggeshall | Date: | Fri, 04 Aug 2000 02:53:49 +0000 |
| Subject: | RE: [PHP] Real IP address? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-10232@lists.php.net to get a copy of this message | ||
> should solve this problem, but I noticed that in my case it doesn't.
> My IP address can not be found in HTTP_X_FORWARDED_FOR, but in
> HTTP_CLIENT_IP. This variable thus might be proxy server specific?
>
> Has anyone found a better (=working) way to determine the IP address of
> a client?
If you know that the real IP is HTTP_CLIENT_IP, then why not just use that?
I don't understand why you can't change the env. variable from
HTTP_X_FORWARED_FOR to HTTP_CLIENT_IP.
John