Ajout d'une règle pour ignorer les bots

This commit is contained in:
Jean-Marie Favreau 2024-08-29 01:46:31 +02:00
parent a32d7217c9
commit 7af73621bb

View File

@ -32,5 +32,9 @@ http {
error_page 502 /static/html/500.html; error_page 502 /static/html/500.html;
error_page 503 /static/html/500.html; error_page 503 /static/html/500.html;
if ($http_user_agent ~* "(?:acunetix|BLEXBot|domaincrawler\.com|LinkpadBot|MJ12bot/v|majestic12\.co\.uk|AhrefsBot|TwengaBot|SemrushBot|nikto|winhttp|Xenu\s+Link\s+Sleuth|Baiduspider|HTTrack|clshttp|harvest|extract|grab|miner|python-requests|Amazonbot)") {
return 444;
}
} }
} }