mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-09-06 18:40:01 +00:00
- fixed for newer version (one space, closes gh-1626) reviewed and optimized: - non-greedy catch-all replaced for safer match - unneeded catch-all anchoring removed - non-capturing groups
19 lines
No EOL
487 B
Text
19 lines
No EOL
487 B
Text
# Fail2Ban apache-modsec filter
|
|
#
|
|
|
|
[INCLUDES]
|
|
|
|
# Read common prefixes. If any customizations available -- read them from
|
|
# apache-common.local
|
|
before = apache-common.conf
|
|
|
|
[Definition]
|
|
|
|
|
|
failregex = ^%(_apache_error_client)s ModSecurity:\s+(?:\[(?:\w+ \"[^\"]*\"|[^\]]*)\]\s*)*Access denied with code [45]\d\d
|
|
|
|
ignoreregex =
|
|
|
|
# https://github.com/SpiderLabs/ModSecurity/wiki/ModSecurity-2-Data-Formats
|
|
# Author: Daniel Black
|
|
# Sergey G. Brester aka sebres (review, optimization) |