Skip to content

Instantly share code, notes, and snippets.

@chrisdavidmiles
Created September 4, 2022 06:08
Show Gist options
  • Save chrisdavidmiles/23e9447013dc6e2674bc0ab7de9d5428 to your computer and use it in GitHub Desktop.
Save chrisdavidmiles/23e9447013dc6e2674bc0ab7de9d5428 to your computer and use it in GitHub Desktop.
Block Crawlers and Other Bots .htaccess
# START Block Crawlers
RewriteEngine On
RewriteCond %{HTTP_USER_AGENT} ^APIs-Google [OR]
RewriteCond %{HTTP_USER_AGENT} ^AdsBot-Google [OR]
RewriteCond %{HTTP_USER_AGENT} ^AdsBot-Google-Mobile [OR]
RewriteCond %{HTTP_USER_AGENT} ^AdsBot-Google-Mobile-Apps [OR]
RewriteCond %{HTTP_USER_AGENT} ^BlackWidow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Bot\ mailto:craftbot@yahoo.com [OR]
RewriteCond %{HTTP_USER_AGENT} ^ChinaClaw [OR]
RewriteCond %{HTTP_USER_AGENT} ^Custo [OR]
RewriteCond %{HTTP_USER_AGENT} ^DISCo [OR]
RewriteCond %{HTTP_USER_AGENT} ^Download\ Demon [OR]
RewriteCond %{HTTP_USER_AGENT} ^DuplexWeb-Google [OR]
RewriteCond %{HTTP_USER_AGENT} ^eCatch [OR]
RewriteCond %{HTTP_USER_AGENT} ^EirGrabber [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailSiphon [OR]
RewriteCond %{HTTP_USER_AGENT} ^EmailWolf [OR]
RewriteCond %{HTTP_USER_AGENT} ^Express\ WebPictures [OR]
RewriteCond %{HTTP_USER_AGENT} ^ExtractorPro [OR]
RewriteCond %{HTTP_USER_AGENT} ^FeedFetcher-Google [OR]
RewriteCond %{HTTP_USER_AGENT} ^Google-Read-Aloud [OR]
RewriteCond %{HTTP_USER_AGENT} ^Google\ Favicon [OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot [OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot-image [OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot-news [OR]
RewriteCond %{HTTP_USER_AGENT} ^Googlebot-video [OR]
RewriteCond %{HTTP_USER_AGENT} ^googleweblight [OR]
RewriteCond %{HTTP_USER_AGENT} ^Mediapartners-Google [OR]
RewriteCond %{HTTP_USER_AGENT} ^Storebot-Google [OR]
RewriteCond %{HTTP_USER_AGENT} ^WWWOFFLE [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebAuto [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebCopier [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebFetch [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebGo\ IS [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebLeacher [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebReaper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebSauger [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebStripper [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebWhacker [OR]
RewriteCond %{HTTP_USER_AGENT} ^WebZIP [OR]
RewriteCond %{HTTP_USER_AGENT} ^Web\ Sucker [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ Quester [OR]
RewriteCond %{HTTP_USER_AGENT} ^Website\ eXtractor [OR]
RewriteCond %{HTTP_USER_AGENT} ^Wget [OR]
RewriteCond %{HTTP_USER_AGENT} ^Widow [OR]
RewriteCond %{HTTP_USER_AGENT} ^Xaldon\ WebSpider [OR]
RewriteCond %{HTTP_USER_AGENT} ^Zeus
RewriteRule .* - [F]
# END Block Crawlers
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment