From 74e4f64d898be63e2564d67dc3b98c0c4cf4bbbc Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Mon, 8 Apr 2024 12:27:59 -0700 Subject: [PATCH] chore: create nginx.conf.txt --- nginx.conf.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 nginx.conf.txt 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; +}