diff --git a/roles/nginxplus/files/fail2ban/nginx-badbots-filter.conf b/roles/nginxplus/files/fail2ban/nginx-badbots-filter.conf index 3cbf71a00..71202e441 100644 --- a/roles/nginxplus/files/fail2ban/nginx-badbots-filter.conf +++ b/roles/nginxplus/files/fail2ban/nginx-badbots-filter.conf @@ -2,6 +2,6 @@ badbots = 360Spider|claudebot|OAI-SearchBot|GPTBot -failregex = (?i) -.*"(GET|POST|HEAD).*HTTP.*(?:%(badbots)s).*"$ +failregex = (?i)\{\"remote_ip\"\: \"\".*?\"user_agent\"\:.*?(?:%(badbots)s).*$ ignoreregex =