mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-19 08:26:02 +00:00
Add tests for Nginx config generator
This commit is contained in:
parent
4f3f4cd0dd
commit
7c3b5a2cb2
2 changed files with 14 additions and 1 deletions
3
code/test_files/nginx-block-ai-bots.conf
Normal file
3
code/test_files/nginx-block-ai-bots.conf
Normal file
|
@ -0,0 +1,3 @@
|
|||
if ($http_user_agent ~* "(AI2Bot|Ai2Bot\-Dolma|Amazonbot|anthropic\-ai|Applebot|Applebot\-Extended|Bytespider|CCBot|ChatGPT\-User|Claude\-Web|ClaudeBot|cohere\-ai|Diffbot|FacebookBot|facebookexternalhit|FriendlyCrawler|Google\-Extended|GoogleOther|GoogleOther\-Image|GoogleOther\-Video|GPTBot|iaskspider/2\.0|ICC\-Crawler|ImagesiftBot|img2dataset|ISSCyberRiskCrawler|Kangaroo\ Bot|Meta\-ExternalAgent|Meta\-ExternalFetcher|OAI\-SearchBot|omgili|omgilibot|PerplexityBot|PetalBot|Scrapy|Sidetrade\ indexer\ bot|Timpibot|VelenPublicWebCrawler|Webzio\-Extended|YouBot|crawler\.with\.dots|star\*\*\*crawler|Is\ this\ a\ crawler\?|a\[mazing\]\{42\}\(robot\)|2\^32\$|curl\|sudo\ bash)") {
|
||||
return 403;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue