22 lines
448 B
Plaintext
22 lines
448 B
Plaintext
# ---
|
|
# 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
|