Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save franck-paul/d2dfbeb2784ae3b845dba3d83e36efd9 to your computer and use it in GitHub Desktop.
Save franck-paul/d2dfbeb2784ae3b845dba3d83e36efd9 to your computer and use it in GitHub Desktop.
Bad bot htaccess config
# Bad AI bots
# \%20 = espace
RewriteCond %{HTTP_USER_AGENT} (AI2Bot|Ai2Bot\-Dolma|Amazonbot|anthropic\-ai|Applebot|Applebot\-Extended|Brightbot\%201\.0|Bytespider|CCBot|ChatGPT\-User|Claude\-Web|ClaudeBot|cohere\-ai|cohere\-training\-data\-crawler|Crawlspace|Diffbot|DuckAssistBot|FacebookBot|FriendlyCrawler|Google\-Extended|GoogleOther|GoogleOther\-Image|GoogleOther\-Video|GPTBot|iaskspider/2\.0|ICC\-Crawler|ImagesiftBot|img2dataset|ISSCyberRiskCrawler|Kangaroo\%20Bot|Meta\-ExternalAgent|Meta\-ExternalFetcher|OAI\-SearchBot|omgili|omgilibot|PanguBot|PerplexityBot|PetalBot|Scrapy|SemrushBot\-OCOB|SemrushBot\-SWA|Sidetrade\%20indexer\%20bot|Timpibot|VelenPublicWebCrawler|Webzio\-Extended|YouBot) [NC]
RewriteRule ^ – [F]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment