Skip to content
This repository was archived by the owner on Jan 6, 2021. It is now read-only.

Commit 331c0c6

Browse files
authored
Create nginx-deny.conf
fail2ban filter for nginx deny statements
1 parent b052117 commit 331c0c6

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# fail2ban filter configuration for nginx
2+
3+
4+
[Definition]
5+
6+
7+
failregex = ^ \[error\] \d+#\d+: \*\d+ (access forbidden by rule), client: <HOST>, server: \S*, request: "\S+ \S+ HTTP\/\d+\.\d+", host: "\S+"(?:, referrer: "\S+")?\s*$
8+
9+
ignoreregex =
10+
11+
datepattern = {^LN-BEG}
12+
13+
# DEV NOTES:
14+
#
15+
# Author: Will L ([email protected])

0 commit comments

Comments
 (0)