Compare commits

..

2 Commits

Author SHA1 Message Date
11d31d8638 Add 'README.POST-requests'. 2025-08-03 01:21:46 +02:00
954abe2229 README.webpath-abuse: fix error on jail configuration. 2025-08-03 01:21:27 +02:00
2 changed files with 21 additions and 1 deletions

21
README.POST-requests Normal file
View 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

View File

@ -15,7 +15,6 @@ EOF
# Jail-Konfiguration: /etc/fail2ban/jail.d/apache-formspam.conf
#
cat <<'EOF' > /etc/fail2ban/jail.d/webpath-abuse.conf
[apache-formspam]
[webpath-abuse]
enabled = true
port = http,https