mirror of
https://github.com/linuxserver/fail2ban-confs.git
synced 2026-02-20 05:02:42 +08:00
21 lines
533 B
Plaintext
21 lines
533 B
Plaintext
## Version 2022/08/06
|
|
# 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(?: \[client [^\]]+\])? 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)
|