Last active
August 29, 2015 14:04
-
-
Save jentanbernardus/804515ad7475ab99d75b to your computer and use it in GitHub Desktop.
How to block semalt.com referrer traffic using .htaccess
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 visitors referred from semalt.com | |
RewriteEngine on | |
RewriteCond %{HTTP_REFERER} semalt\.com [NC] | |
RewriteCond %{HTTP_REFERER} semalt\.semalt\.com [NC] | |
RewriteRule .* - [F] | |
# Deny Access Referrer Spammers | |
SetEnvIfNoCase Referer semalt.com spammer=yes | |
SetEnvIfNoCase Referer semalt.semalt.com spammer=yes | |
Order allow,deny | |
Allow from all | |
Deny from env=spammer |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment