Hi,
wie vermutlich bei jedem wird mein Server von AI Bots heimgesucht. Meistens laufen die auf *.googleusercontent
Trotz einiger zusätzlicher fail2ban Regeln die multiple 404/403 Anfragen blocken soll, schaffen es die AI Bots oft mehrere 100 Anfragen in einer Sekunde rauszuhauen. Da ist fail2ban dann zu langsam für und blockt erst nach >100 Requests.
Mal davon abgesehen, dass ich es sehr fragwürdig finde, dass ein vermeintlich legitimer AI Bot solche Sachen anfragt, ignoriert das Teil einfach die robots.txt in der das hier drinsteht:
User-agent: *
Disallow: /
(Ja, die Seite soll überhaupt nicht gecrawled werden)
(Ok... da kann auch jemand den UA von cohere-ai missbrauchen...)
Was kann ich tun damit sowas schneller geblockt wird?
Hab mod-evasive auf dem Schirm, aber bin mir unsicher mit den Parametern.
Hat da jemand Erfahrungswerte zu? Oder andere Vorschläge?
Bin kurz davor googleusercontent Ranges zu blocken...
wie vermutlich bei jedem wird mein Server von AI Bots heimgesucht. Meistens laufen die auf *.googleusercontent
Trotz einiger zusätzlicher fail2ban Regeln die multiple 404/403 Anfragen blocken soll, schaffen es die AI Bots oft mehrere 100 Anfragen in einer Sekunde rauszuhauen. Da ist fail2ban dann zu langsam für und blockt erst nach >100 Requests.
Code:
...
logs/server.tld.ssl.access.log.1:81:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /.bashrc HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:82:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /.zshrc HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:83:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /sw.js HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:84:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /public/admin.json HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:85:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /sendgrid.env HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:86:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /service-worker.js HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:87:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /config/firebase-admin.json HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:88:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /src/.env HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:89:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /app/.env HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:90:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /frontend/.env HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:91:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /.bash_profile HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:92:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /_ignition/health-check HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:93:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /config/gcp-credentials.json HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:94:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /.profile HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:95:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /firebase.json HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
logs/server.tld.ssl.access.log.1:96:35.187.58.104 - - [12/Aug/2026:02:00:36 +0200] "GET /server/.env HTTP/1.1" 404 468 "-" "Mozilla/5.0 (compatible; cohere-ai/1.0; +https://cohere.com)"
...
User-agent: *
Disallow: /
(Ja, die Seite soll überhaupt nicht gecrawled werden)
(Ok... da kann auch jemand den UA von cohere-ai missbrauchen...)
Was kann ich tun damit sowas schneller geblockt wird?
Hab mod-evasive auf dem Schirm, aber bin mir unsicher mit den Parametern.
Hat da jemand Erfahrungswerte zu? Oder andere Vorschläge?
Bin kurz davor googleusercontent Ranges zu blocken...
Last edited: