From b6be895994b75f0cb925d68ea454004d7b4e663d Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Tue, 9 Apr 2024 16:08:57 -0700 Subject: [PATCH] fix: clean up syntax --- nginx.conf.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nginx.conf.txt b/nginx.conf.txt index 883f1f0..289b937 100644 --- a/nginx.conf.txt +++ b/nginx.conf.txt @@ -1,4 +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|FriendlyCrawler|Google-Extended|GoogleOther|GPTBot|ImagesiftBot|magpie-crawler|Meltwater|omgili|omgilibot|peer39_crawler|peer39_crawler/1.0|PerplexityBot|PiplBot|Seekr|YouBot) ) { +if ($http_user_agent ~* (AdsBot-Google|Amazonbot|anthropic-ai|Applebot|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT-User|ClaudeBot|Claude-Web|cohere-ai|DataForSeoBot|FacebookBot|FriendlyCrawler|Google-Extended|GoogleOther|GPTBot|ImagesiftBot|magpie-crawler|Meltwater|omgili|omgilibot|peer39_crawler|peer39_crawler/1.0|PerplexityBot|PiplBot|Seekr|YouBot)) { return 403; }