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.
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.
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!"); }