Sophie

Sophie

sources > fail2ban > fail2ban-1.0.1-enriched-nginx-botsearch.patch > 16cb5b4c6b2b36f5328d16affc87329f
Prev Next
--- patch1.0.1/config/filter.d/nginx-botsearch.conf	2022-09-27 18:27:51.000000000 +0200
+++ patch1.0.1/config/filter.d/nginx-botsearch.conf-enriched	2022-10-01 11:14:29.274871552 +0200
@@ -8,8 +8,11 @@ before = botsearch-common.conf
 
 [Definition]
 
-failregex = ^<HOST> \- \S+ \[\] \"(GET|POST|HEAD) \/<block> \S+\" 404 .+$
+failregex = ^client\: <HOST> \- \S+ \[\] \"(GET|POST|HEAD) \/<block> \S+\" 404 .+$
             ^ \[error\] \d+#\d+: \*\d+ (\S+ )?\"\S+\" (failed|is not found) \(2\: No such file or directory\), client\: <HOST>\, server\: \S*\, request: \"(GET|POST|HEAD) \/<block> \S+\"\, .*?$
+            ^ \[error\] \d+#\d+: \*\d+ (\S+ )?\"\S+\" (failed|is not found) \(2\: No such file or directory\), client\: <HOST>\, .*?$
+            ^ \[error\] \d+#\d+: \*\d+ FastCGI sent in stderr\: \"Unable to open primary script\: (\S+ )?\(No such file or directory\)\" while reading response header from upstream\, client\: <HOST>\, .*?$
+            ^ \[error\] \d+#\d+: \*\d+ open\(\) "\S+\" (failed|is not found) \(2\: No such file or directory\), client\: <HOST>\, .*?$
 
 ignoreregex =