Hey i am looking for a script who can block proxies so users can't sign up with a proxy to my website. can any one answer this?:
It's not fool proof, but one way to check if someone is using a proxy is to try and open a socket on port 80 on the remote address, next to no users have any reason to have a server at home, and even less will be letting remote users come in, so if you can open a connection on port 80 of the visiting address the chances are it's a webserver, running a cgi or php proxy. That's very easy to implement, there are other things you can do aswell, but in the end if someone wants in and they know how they are being kept out - they'll get in. <? if( @$_SERVER['REMOTE_ADDR'] ) { if( @fsockopen( $_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 2 ) ) { die("You seem to have come from a proxy, <b>please don't</b>"); } } ?> You don't seem to be using a proxy, but for every trick there is a workaround - so you might be........ PHP: That is an example of what I'm talking about, I'd be happy to wack that in your code somewhere if you want........
thanks, will give it my partner to check out. i do know what is writen in it and he already has proxy blocking script but he says we need ISP proxies blocking as well cause some ISP's provide proxies too.
Well, it's not that they "provide" proxies, thier service is based on a proxy, that's different, there are whole regions of the world who have no choice but to use that sort of proxy / service - its not a good idea, and not really necessary to block that sort of service. You'll find most abuse will come from "annonymous" proxies in the form of server side scripts as opposed to services, anyone using a proxy provided by thier ISP is not at all annonymous and so abusing websites ( spamming etc ) is a pretty stupid thing to do. There are still things you can do to detect other sorts of proxy, that just sort of rolled off my keyboard and onto the screen, if you still need some more help then contact me personally via pm.