Blocking Proxy - Fraud protection script is needed!

Discussion in 'Programming' started by wounded1987, Jun 12, 2007.

  1. #1
    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?:

     
    wounded1987, Jun 12, 2007 IP
  2. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #2
    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........
     
    krakjoe, Jun 12, 2007 IP
  3. simran

    simran Banned

    Messages:
    278
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #3
    I am interested.Pm ed you

    thanks
     
    simran, Jun 12, 2007 IP
  4. wounded1987

    wounded1987 Well-Known Member

    Messages:
    2,914
    Likes Received:
    60
    Best Answers:
    0
    Trophy Points:
    150
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #4
    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.
     
    wounded1987, Jun 12, 2007 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    As Seller:
    100% - 0
    As Buyer:
    100% - 0
    #5
    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.
     
    krakjoe, Jun 12, 2007 IP