Re: Real IP address?

From: Date: Sat, 05 Aug 2000 06:06:44 +0000
Subject: Re: Real IP address?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-10238@lists.php.net to get a copy of this message
* Roland Witvoet wrote in php.general: >if (getenv("HTTP_X_FORWARDED_FOR")) >{ $ip=getenv("HTTP_X_FORWARDED_FOR"); >} else >{ $ip=getenv("REMOTE_ADDR"); >} > >should solve this problem, What if i send a HTTP Request with a wrong X-Forwarded-For:-Header? >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? This variable is proxy specific. Some send it, many do not, some call it else than X-Forwarded-For: and so on. >Has anyone found a better (=working) way to determine the IP address of >a client? You cannot determine the client IP. -- Björn Höhrmann · mailto:bjoern@hoehrmann.de · http://www.bjoernsworld.de am Badedeich 7 · Telefon: +49(0)4667/981ASK · http://bjoern.hoehrmann.de 25899 Dagebüll · PGP KeyID: 0xA4357E78 · http://learn.to/quote <---

« previous php.general (#10238) next »