hi all
I'm building a traffic trading script and I want to be able to detect proxy hits.
googling for info on how to do this I found:
http://www.stayinvisible.com/index.p...ymity_of_proxy
so I wrote a script looking for those headers the proxy sends (giving up on the elite proxies):
PHP Code:
if(
($_SERVER["HTTP_X_FORWARDED_FOR"] != "" && $_SERVER["HTTP_X_FORWARDED_FOR"] != "unknown") ||
($_SERVER["HTTP_X_FORWARDED"] != "" && $_SERVER["HTTP_X_FORWARDED"] != "unknown") ||
($_SERVER["HTTP_VIA"] != "" && $_SERVER["HTTP_VIA"] != "unknown") ||
($_SERVER["HTTP_CLIENT_IP"] != "" && $_SERVER["HTTP_CLIENT_IP"] != "unknown")
)
{ $proxy=true; }
hope I didn't miss or mixed up anything in the above code.
the problem is, i've heard a lot of AOL users use proxy, so do earthlink and more...and I don't want to ignore those hits, How do I detect them?