Re: PHP site ?
| From: | raditha dissanayake | Date: | Sun, 05 Sep 2004 14:12:30 +0000 |
| Subject: | Re: PHP site ? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-195907@lists.php.net to get a copy of this message | ||
Lester Caine wrote:
Jack Gates wrote:very true. Some 'nice' proxies will oblige by sending an X-Forwarded-For header . -- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 128 KB | with progress bar.I replaced this: $address = getenv("REMOTE_ADDR"); with this $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); and now I am getting exactly what I was trying to get.This will work fine for networks that provide their own 'REMOTE_ADDR', but once proxies are in the way, you will see a proxy address rather than the real machine.