added nginx-badbots fail2ban rule https://stackoverflow.com/a/65552146
This commit is contained in:
5
assets/fail2ban/filter.d/nginx-badbots.conf
Normal file
5
assets/fail2ban/filter.d/nginx-badbots.conf
Normal file
@@ -0,0 +1,5 @@
|
||||
[Definition]
|
||||
|
||||
failregex = FastCGI sent in stderr: "Primary script unknown" .*, client: <HOST>
|
||||
|
||||
ignoreregex =
|
7
assets/fail2ban/jail.d/nginx-badbots.conf
Normal file
7
assets/fail2ban/jail.d/nginx-badbots.conf
Normal file
@@ -0,0 +1,7 @@
|
||||
[nginx-badbots]
|
||||
|
||||
enabled = true
|
||||
port = http,https
|
||||
filter = <FILTER>
|
||||
logpath = <LOGPATH>
|
||||
maxretry = 2
|
Reference in New Issue
Block a user