Skip to content

Instantly share code, notes, and snippets.

@roscabgdn
Created December 16, 2016 14:54
Show Gist options
  • Save roscabgdn/dc76ae0b9d21de2133e31bad5d24fb72 to your computer and use it in GitHub Desktop.
Save roscabgdn/dc76ae0b9d21de2133e31bad5d24fb72 to your computer and use it in GitHub Desktop.
# BLOCK PROXY VISITS
# BLOCK PROXY VISITS
# PerishablePress.com: http://bit.ly/12k6Uo
<ifModule mod_rewrite.c>
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]
</ifModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment