Blocking VPN's

Results 1 to 2 of 2
  1. #1
    Account Upgraded | Title Enabled! Bow is offline
    MemberRank
    Jan 2012 Join Date
    407Posts

    Blocking VPN's

    Yo,

    I am helping my friends hotel out and he's wanting to know how you can block VPN's from accessing the client. I know Uber 2 uses this system but he uses RevCMS and it's needed to be done. Anyone know how I can go about doing this?

    Thanks.


  2. #2
    Check http://arcturus.pw The General is offline
    DeveloperRank
    Aug 2011 Join Date
    7,608Posts

    Re: Blocking VPN's

    Well you could try $_SERVER['REMOTE_HOST'] It should display the VPN name and then if you have a list of most common used VPNs then you can loop through it and on a match then just block the connection.


    Also I found this that might help:
    Code:
    $proxy_headers = array(
            'HTTP_VIA',
            'HTTP_X_FORWARDED_FOR',
            'HTTP_FORWARDED_FOR',
            'HTTP_X_FORWARDED',
            'HTTP_FORWARDED',
            'HTTP_CLIENT_IP',
            'HTTP_FORWARDED_FOR_IP',
            'VIA',
            'X_FORWARDED_FOR',
            'FORWARDED_FOR',
            'X_FORWARDED',
            'FORWARDED',
            'CLIENT_IP',
            'FORWARDED_FOR_IP',
            'HTTP_PROXY_CONNECTION'
        );
        foreach($proxy_headers as $x){
            if (isset($_SERVER[$x])) die("You are using a proxy!");
        }



Advertisement