What is you IP ?
| From: | Roger Thomas | Date: | Thu, 13 Jul 2006 01:29:39 +0000 |
| Subject: | What is you IP ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-239399@lists.php.net to get a copy of this message | ||
I want to filter IP addresses. I noticed that my script catches IP addresses that looks like they
came from the internal LAN, ie 192.x.x.x and 10.x.x.x
My script catched those IPs by $_SERVER['REMOTE_ADDR']. Am I not being able to catch IPs
from transparent proxies that a user's ISP might use? Would
$_SERVER['HTTP_X_FORWARDED_FOR'] be better ? Reasons ?
Please advise.
--
Roger
---------------------------------------------------
Sign Up for free Email at http://ureg.home.net.my/
---------------------------------------------------