mirror of
https://github.com/linuxserver/fail2ban-confs.git
synced 2026-02-20 05:02:42 +08:00
21 lines
384 B
Plaintext
21 lines
384 B
Plaintext
## Version 2022/08/06
|
|
# Fail2Ban Apache pass filter
|
|
# This filter is for access.log, NOT for error.log
|
|
#
|
|
# The knocking request must have a referer.
|
|
|
|
[Definition]
|
|
|
|
failregex = ^<HOST> - \w+ \[\] "GET <knocking_url> HTTP/1\.[01]" 200 \d+ ".*" "[^-].*"$
|
|
|
|
ignoreregex =
|
|
|
|
datepattern = ^[^\[]*\[({DATE})
|
|
{^LN-BEG}
|
|
|
|
[Init]
|
|
|
|
knocking_url = /knocking/
|
|
|
|
# Author: Viktor Szépe
|