Skip to content

Instantly share code, notes, and snippets.

@proweb
Last active August 29, 2015 14:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save proweb/5685bc51f264e178d2e7 to your computer and use it in GitHub Desktop.
Save proweb/5685bc51f264e178d2e7 to your computer and use it in GitHub Desktop.
Block Semalt.com and buttons-for-website.com
# block visitors referred from semalt.com
RewriteEngine on
RewriteCond %{HTTP_REFERER} semalt\.com [NC]
RewriteRule .* – [F]
# End semalt block
# block referer spam buttons for website
RewriteEngine On
RewriteCond %{HTTP_REFERER} buttons\-for\-website\.com
RewriteRule ^.* - [F,L]
# End buttons for website block
# from http://www.specializeddigitalmarketing.com/block-semalt-buttons-website-bots/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment