chore: create nginx.conf.txt

This commit is contained in:
Cory Dransfeldt 2024-04-08 12:27:59 -07:00 committed by GitHub
parent 609de2af12
commit 74e4f64d89
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

4
nginx.conf.txt Normal file
View 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;
}