Block AI bots

This commit is contained in:
2025-09-02 14:31:37 -03:00
parent 5e6b8b24e1
commit ea8c82aeeb

View File

@@ -79,6 +79,10 @@ server {
server_name tocry.ralsina.me; server_name tocry.ralsina.me;
server_name kv.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 / { location / {
proxy_pass http://rocky.tail20c16.ts.net:8080; proxy_pass http://rocky.tail20c16.ts.net:8080;
proxy_set_header X-Forwarded-Host $http_host; proxy_set_header X-Forwarded-Host $http_host;