Add 'README.POST-requests'.
This commit is contained in:
21
README.POST-requests
Normal file
21
README.POST-requests
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
# ---
|
||||||
|
# README.POST-requests
|
||||||
|
# ---
|
||||||
|
|
||||||
|
|
||||||
|
cat <<'EOF' > /etc/fail2ban/filter.d/apache-post-requests.conf
|
||||||
|
[Definition]
|
||||||
|
failregex = ^<HOST> - .* "(POST|GET) /(kontaktformular|registrieren) HTTP/.*"
|
||||||
|
ignoreregex =
|
||||||
|
EOF
|
||||||
|
|
||||||
|
|
||||||
|
cat <<'EOF' > /etc/fail2ban/jail.d/apache-post-requests.conf
|
||||||
|
[apache-post-requests]
|
||||||
|
enabled = true
|
||||||
|
filter = apache-post-requests
|
||||||
|
logpath = /var/log/apache2/nd-aktuell-access.log
|
||||||
|
maxretry = 100
|
||||||
|
findtime = 600
|
||||||
|
bantime = 1800
|
||||||
|
mode = normal
|
Reference in New Issue
Block a user