mailinabox/conf/fail2ban/filter.d/nginx-badrequests.conf

6 lines
219 B
Plaintext
Raw Normal View History

2021-08-28 11:34:37 +00:00
# Ban requests for non-existing or not-allowed resources
[Definition]
2021-08-29 20:47:29 +00:00
# regex for nginx error.log
2021-08-28 11:34:37 +00:00
failregex = ^.* \[error\] .*2: No such file or directory.*client: <HOST>.*$
ignoreregex = ^.*(robots.txt|favicon.ico).*$