I have used the "REMOTE_ADDR" to detect the ip address of the visitors in PHP. But how could i detect the visitors ip address even if he is trying to hide them. I have used "HTTP_X_FORWARDED_FOR" and "HTTP_CLIENT_IP" too. But I am just not able to implement them correctly.
3
- 1Obviously you cannot detect them if they are hiding their IP...Jules– Jules2011-10-29 15:51:27 +00:00Commented Oct 29, 2011 at 15:51
- 1But there must be some method so that we can detect them too.user1002682– user10026822011-10-29 15:52:44 +00:00Commented Oct 29, 2011 at 15:52
- The user obviously wants to protect themselves, but you may be able to find the IP of users who don't have it blocked with a TRY / CATCH or IF / THEN type statementSam Spencer– Sam Spencer2011-10-29 15:57:04 +00:00Commented Oct 29, 2011 at 15:57
Add a comment |
1 Answer
It's pretty inherently impossible. The other end could just set up their computer to lie to you entirely. There are things that will get you correct answers more often, but even they're pretty easy to get around. Whatever you're trying to make that requires this, I think you need to seriously reconsider your objectives and design.