prevent people to visit your site with proxy

Discussion in 'PHP' started by trichnosis, Sep 19, 2007.

  1. #1
    Hi;

    I dont want people to use proxy while they are visiting my sites.

    Is it possible to prevent proxy while people are visiting my sites?

    Thanks
     
    trichnosis, Sep 19, 2007 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    I remember a method that Krakjoe posted a while back. (WHERE IS HE?)

    
    
    if (@fsockopen($_SERVER['REMOTE_ADDR'], 80, $errno, $errstr, 30))
    {
        exit('No proxies please.');
    }
    
    PHP:

    Test page:

    http://www.nicoswd.com/proxy.php
     
    nico_swd, Sep 19, 2007 IP
  3. falcondriver

    falcondriver Well-Known Member

    Messages:
    963
    Likes Received:
    47
    Best Answers:
    0
    Trophy Points:
    145
    #3
    i get the "no proxy" msg, and im just behind the companys own proxy here. guess he only wants to lock down this webproxy users...?
     
    falcondriver, Sep 19, 2007 IP
  4. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #4
    tamilsoft, Sep 19, 2007 IP