diff --git a/nginx.conf.txt b/nginx.conf.txt new file mode 100644 index 0000000..9446604 --- /dev/null +++ b/nginx.conf.txt @@ -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; +}