Re: How can I achieve a user's real IP when he visit my homepage using http proxy server?
| From: | Aidan Lister | Date: | Sat, 08 May 2004 12:08:56 +0000 |
| Subject: | Re: How can I achieve a user's real IP when he visit my homepage using http proxy server? | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12362@lists.php.net to get a copy of this message | ||
This is not a PEAR question, try the php-general mailing list next time...
The most reliable code I've found for this is
http://ircphp.com/users/imho/?file=Visitor.php
<?php echo Visitor::ip(); ?>
However, it's definitly not 100% foolproof, I'm open to suggestions.
"Huangliang" <lhuang@sei.xjtu.edu.cn> wrote in message
news:002d01c434e4$b49afae0$fe01a8c0@Nothing...
> The value of the environment variable "REMOTE_ADDR" is not his real ip but
that of the http proxy server. How can I achieve a user's real IP when he
visit my homepage using http proxy server?