Block AI bots
This commit is contained in:
@@ -79,6 +79,10 @@ server {
|
||||
server_name tocry.ralsina.me;
|
||||
server_name kv.ralsina.me;
|
||||
|
||||
if ($http_user_agent ~* "(AdsBot-Google|Amazonbot|anthropic-ai|Applebot|Applebot-Extended|AwarioRssBot|AwarioSmartBot|Bytespider|CCBot|ChatGPT-User|ClaudeBot|Claude-Web|cohere-ai|DataForSeoBot|Diffbot|FacebookBot|FriendlyCrawler|Google-Extended|GoogleOther|GPTBot|img2dataset|ImagesiftBot|magpie-crawler|Meltwater|omgili|omgilibot|peer39_crawler|peer39_crawler/1.0|PerplexityBot|PiplBot|scoop.it|Seekr|YouBot)") {
|
||||
return 307 https://ash-speed.hetzner.com/10GB.bin;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://rocky.tail20c16.ts.net:8080;
|
||||
proxy_set_header X-Forwarded-Host $http_host;
|
||||
|
Reference in New Issue
Block a user