Skip to content

Instantly share code, notes, and snippets.

@brandonhimpfen
Created April 24, 2026 02:44
Show Gist options
  • Select an option

  • Save brandonhimpfen/79c1472de901f4c4086579dee63c4afe to your computer and use it in GitHub Desktop.

Select an option

Save brandonhimpfen/79c1472de901f4c4086579dee63c4afe to your computer and use it in GitHub Desktop.
Use the following .htaccess snippet to block the Semalt.com crawler from crawling your site.
## BLOCK SEMALT ##
RewriteEngine on
RewriteCond %{HTTP_REFERER} semalt\.com [NC]
RewriteCond %{HTTP_REFERER} ^(.*)\.semalt\.com [NC]
RewriteRule .* - [F]
## END BLOCK SEMALT ##
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment