mirror of
https://github.com/ai-robots-txt/ai.robots.txt.git
synced 2025-04-05 11:27:45 +00:00
chore: create nginx.conf.txt
This commit is contained in:
parent
609de2af12
commit
74e4f64d89
1 changed files with 4 additions and 0 deletions
4
nginx.conf.txt
Normal file
4
nginx.conf.txt
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
# for nginx.conf; intended to block via user agent string
|
||||||
|
if ($http_user_agent ~ (AdsBot-Google|Amazonbot|anthropic-ai|Applebot|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT-User|ClaudeBot|Claude-Web|cohere-ai|DataForSeoBot|FacebookBot|Google-Extended|GoogleOther|GPTBot|ImagesiftBot|magpie-crawler|Meltwater|omgili|omgilibot|peer39_crawler|peer39_crawler/1.0|PerplexityBot|PiplBot|Seekr|YouBot) ) {
|
||||||
|
return 403;
|
||||||
|
}
|
Loading…
Reference in a new issue