diff --git a/README.POST-requests b/README.POST-requests new file mode 100644 index 0000000..0d84547 --- /dev/null +++ b/README.POST-requests @@ -0,0 +1,21 @@ +# --- +# README.POST-requests +# --- + + +cat <<'EOF' > /etc/fail2ban/filter.d/apache-post-requests.conf +[Definition] +failregex = ^ - .* "(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