mirror of
https://github.com/fail2ban/fail2ban.git
synced 2026-03-11 08:55:31 +00:00
Add filter for nginx HTTP errors (4xx and 5xx)
An excessive number of errors is likely abuse of some kind. This may include application login errors, if the app responds with an appropriate HTTP status code.
This commit is contained in:
parent
fc3e8a5d37
commit
0bb3ed0b0c
1 changed files with 7 additions and 0 deletions
7
config/filter.d/nginx-http-errors.conf
Normal file
7
config/filter.d/nginx-http-errors.conf
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# Nginx client and server errors (HTTP 4xx or 5xx)
|
||||
#
|
||||
# Author: David Cook
|
||||
# Inspired by https://serverfault.com/a/849859/959055
|
||||
|
||||
[Definition]
|
||||
failregex = <HOST> -.*"(GET|POST|HEAD).*HTTP.*" [4-5][0-9][0-9]
|
||||
Loading…
Reference in a new issue