2015-04-29, 08:48 PM
What I want to do is extremely specific. I know it's not a MyBB issue, but maybe someone on here can relate to what I'm trying to do and can help. I've been looking for a solution for a while now.
I want to block most, if not all VPN, Proxy, and Socks traffic that connects to a website. I also want to add an exception so that Staff on a website can bypass that rule and still use a vpn, proxy, or socks.
I'm pretty sure the 2nd part of that is impossible.
I saw an article that included a script on blocking most proxies via htaccess.
Here's the script:
I want to block most, if not all VPN, Proxy, and Socks traffic that connects to a website. I also want to add an exception so that Staff on a website can bypass that rule and still use a vpn, proxy, or socks.
I'm pretty sure the 2nd part of that is impossible.
I saw an article that included a script on blocking most proxies via htaccess.
Here's the script:
# block proxy servers from site access
# https://perishablepress.com/press/2008/04/20/how-to-block-proxy-servers-via-htaccess/
RewriteEngine on
RewriteCond %{HTTP:VIA} !^$ [OR]
RewriteCond %{HTTP:FORWARDED} !^$ [OR]
RewriteCond %{HTTP:USERAGENT_VIA} !^$ [OR]
RewriteCond %{HTTP:X_FORWARDED_FOR} !^$ [OR]
RewriteCond %{HTTP:PROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:XPROXY_CONNECTION} !^$ [OR]
RewriteCond %{HTTP:HTTP_PC_REMOTE_ADDR} !^$ [OR]
RewriteCond %{HTTP:HTTP_CLIENT_IP} !^$
RewriteRule ^(.*)$ - [F]