PDA

View Full Version : detect proxy server with PHP?



Omar Bacha
07-12-2008, 02:37 AM
Does anyone know of a way to detect if the user is coming in via a proxy server using PHP?

Omar Bacha

thetestingsite
07-12-2008, 03:51 AM
Probably the best way that I could think of off the top of my head would be to use $_SERVER['HTTP_X_FORWARDED_FOR']. That usually gives you the local IP address of the user if it is behing a proxy.

Hope this helps.

djr33
07-12-2008, 04:46 AM
If the proxy is good enough, you can't tell, in the end.