1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Blocking Proxy visitors - possible?

Discussion in 'Proxies' started by Evotion, Aug 15, 2009.

  1. Evotion

    Evotion Newbie

    Joined:
    May 28, 2009
    Messages:
    27
    Likes Received:
    5
    Hey, we all love and use proxies.

    BUT... does anybody know a foolproof way to block a person using a Proxy Service from actually entering a website?
     
  2. TheRogue

    TheRogue Junior Member

    Joined:
    Mar 28, 2009
    Messages:
    136
    Likes Received:
    15
    the only way that i could think of is by having a script to block ips. And to update those ips from sites that share proxies, there is no other way i could think of
     
  3. apekillape

    apekillape Senior Member Premium Member

    Joined:
    Dec 13, 2007
    Messages:
    1,077
    Likes Received:
    1,441
    Occupation:
    Basically, I just walk the Earth.
    Location:
    The Layer Cake
    Run a proxy test (like the one here) against the visitor, if they show up with something in their HTTP-Forwarded-By field that isn't their real ip, redirect them to somewhere else.

    That's just off the top of my head, I think it should at least clear out the people who are doing it badly. People using a halfway-decent proxy will be mostly undetectable with standard means unless you do something fancier, like check cookies to see if the IP has changed for a single user.

    N
     
  4. heavyweight

    heavyweight Junior Member Premium Member

    Joined:
    Aug 10, 2009
    Messages:
    131
    Likes Received:
    65
    I use this:
    Code:
    <?php
        if (
           $_SERVER['HTTP_X_FORWARDED_FOR']
           || $_SERVER['HTTP_X_FORWARDED']
           || $_SERVER['HTTP_FORWARDED_FOR']
           || $_SERVER['HTTP_CLIENT_IP']
           || $_SERVER['HTTP_VIA']
           || in_array($_SERVER['REMOTE_PORT'], array(8080,80,6588,8000,3128,553,554)))
        {         
        print "No proxies pls!";
        } else{
        print "OK";    
        }
     ?> 
    
     
    Last edited: Aug 16, 2009
  5. BadArticle

    BadArticle Junior Member

    Joined:
    Aug 10, 2009
    Messages:
    100
    Likes Received:
    29
    Home Page:
    It's just for normal proxy, for high-secure proxy, does not have any extra header you can detect
     
  6. apekillape

    apekillape Senior Member Premium Member

    Joined:
    Dec 13, 2007
    Messages:
    1,077
    Likes Received:
    1,441
    Occupation:
    Basically, I just walk the Earth.
    Location:
    The Layer Cake
    I got this from that:
    Code:
    Parse error: syntax error, unexpected T_BOOLEAN_OR in /home/drum/public_html/noprox.php on line 9
    
     
  7. heavyweight

    heavyweight Junior Member Premium Member

    Joined:
    Aug 10, 2009
    Messages:
    131
    Likes Received:
    65
    I edited the code, check it out. No parsing errors now :eek:
     
  8. GenerationX

    GenerationX Newbie

    Joined:
    Jun 14, 2008
    Messages:
    43
    Likes Received:
    19
    You can use that code the person posted above which is pretty decent but it'll only take out proxies with the average port numbers for a proxy.