Howdy, I've currently got a script that returns the users IP/Hostmask like so <div align="center"> Your IP Address is<br> <? echo getenv('REMOTE_ADDR'); ?><br> Your Hostname is<br> <?php $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']); echo $hostname; ?><br> Code (markup): However, due to some research on php.net and other websites, the headers of a proxy can be faked thus getenv('REMOTE_ADDR'); getting the fake IP, is there a way to bypass this and get the TRUE IP like whatismyip.com/.org does?
whatismyip.com doesn't fetch true IPs either. I just tried it thru cgi-proxy.net and it gave me the wrong IP. I don't think there's a 100% accurate server-side method of tracking down the true IP. It would require something like a Java applet which can get the IP from the client's side.
i think there`s a way to see the ip nehind a transparent proxy. Anyway, at least you can see it`s a proxy. But if it`s an elite one, you can see it`s a proxy, it looks just like a true ip
You can detect proxy with good script.Take for example site Proxy Server Privacy and look to the link Detector Proxy. You will see two ways of detecting proxy. First has been done with simple proxy variables detecting script and second one with common proxy port inspecting script. The same script has been integrated into contact form.If you try Contact behind proxy you will get message to disable proxy and try again.