Created
December 16, 2016 14:54
-
-
Save roscabgdn/dc76ae0b9d21de2133e31bad5d24fb72 to your computer and use it in GitHub Desktop.
# BLOCK PROXY VISITS
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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