mirror of https://github.com/fail2ban/fail2ban
make `prefregex` more precise in order to avoid catch the content for non failure lines
parent
8763cf0a36
commit
185cb998e7
|
@ -19,11 +19,11 @@ before = apache-common.conf
|
||||||
|
|
||||||
script = /\S*(?:php(?:[45]|[.-]cgi)?|\.asp|\.exe|\.pl)
|
script = /\S*(?:php(?:[45]|[.-]cgi)?|\.asp|\.exe|\.pl)
|
||||||
|
|
||||||
prefregex = ^%(_apache_error_client)s <F-CONTENT>.+</F-CONTENT>$
|
prefregex = ^%(_apache_error_client)s <F-CONTENT>(?:(?:AH0(?:01(?:28|30)|1(?:264|071)): )|(?:(?:[Ff]ile|script|[Gg]ot) )).+</F-CONTENT>$
|
||||||
|
|
||||||
failregex = ^(?:(?:AH001(?:28|30): )?File does not exist|(AH01264: )?script not found or unable to stat): <script>\b
|
failregex = ^(?:(?:AH001(?:28|30): )?[Ff]ile does not exist|(AH01264: )?script not found or unable to stat): <script>\b
|
||||||
^script '<script>\S*' not found or unable to stat
|
^script '<script>\S*' not found or unable to stat
|
||||||
^(?:AH01071: )?Got error 'Primary script unknown\\n'
|
^(?:AH01071: )?[Gg]ot error '[Pp]rimary script unknown\\n'
|
||||||
|
|
||||||
ignoreregex =
|
ignoreregex =
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue