From 11d31d86387916bb998497e1618db2259d91d717 Mon Sep 17 00:00:00 2001 From: Christoph Date: Sun, 3 Aug 2025 01:21:46 +0200 Subject: [PATCH] Add 'README.POST-requests'. --- README.POST-requests | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 README.POST-requests 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