Personal Daantje on 23 Dec 2006 09:14 pm
Proxy Detector
This class can detect if a visitor uses a proxy server by scanning the headers returned by the user client. When the user uses a proxy server, most of the proxy servers alter the header. The header is returned to PHP in the array $_SERVER.
FEATURES:
Here are the features of the current version 0.1
- Connect through HTTP/1.0 and/or HTTP/1.1 protocol.
- Not using any command line tools.
- Easy to implement.
LICENSE:
GPL (http://www.gnu.org/licenses/gpl.txt)
SUPPORT:
Please report any bugs to me at daantje dot nl
DONATE:
Please support this project by paypal donations, (my email is my paypal address)
Help me develop this and other projects. Donate to the good cause.
DOWNLOAD:
Download and untar the file (tar -zxvf proxy_detector.tgz), upload it and point your browser to one of the examples. Windows users can use WinRAR to decompress the file.
- Download file: proxy_detector.tgz
- Last update: 19 Sep 2006 10:52:17
EXAMPLE:
This example is also included in the package.
Welcome, you don’t have a proxy configured.
9 Responses to “Proxy Detector”
Leave a Reply
You must be logged in to post a comment.

on 14 Jul 2007 at 6:27 am 1.anger2headshot said …
does not work. tested with multiple phproxy (0.5, 0.4) and cgiproxy.
on 11 Nov 2007 at 5:35 pm 2.Dennis said …
HI, this doesn’t work with https, only works with http.. Can you create it so it works with https please. I really need this working. It works wonderful with only http, but the pages I need this implemented on is all secured https :-)
on 17 Oct 2008 at 2:28 pm 3.Mark said …
Does not work - I am writing through a proxy site
on 17 Oct 2008 at 10:08 pm 4.Daantje said …
I did not say this is full proof… The class only scans the headers. So when a proxy server doesn’t parse those headers, it will not work.
on 01 Dec 2008 at 12:11 am 5.lucky said …
Hi there,
how do i install it¿?
The file doesn’t had an extension. For example: .php,.html, etc…
:S
What should i do¿?
Tnks
on 01 Dec 2008 at 12:41 am 6.Daantje said …
I think you didn’t decompress the file the right way…
Use WinRAR to decompress the tgz file when you are using windows. There should be a directory with a php and readme txt file
on 03 Dec 2008 at 5:03 pm 7.lucky said …
Solved… tnks ;)
Just one more thing..
I upload it to my host( is a paid one), but al the ips, Proxys and not proxys are banned. I dunno why :S
Whats wrong with it?
on 03 Dec 2008 at 5:12 pm 8.Daantje said …
And what does the status say?
//parse logged info
echo nl2br($proxy->getLog());
on 20 Jul 2009 at 2:58 am 9.Anonymous said …
Does not work with the proxies :S
I tried on HideMyAss.com and it went through fine.