Compare commits
2 Commits
f1400dd087
...
11d31d8638
Author | SHA1 | Date | |
---|---|---|---|
11d31d8638 | |||
954abe2229 |
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
|
@ -15,7 +15,6 @@ EOF
|
|||||||
# Jail-Konfiguration: /etc/fail2ban/jail.d/apache-formspam.conf
|
# Jail-Konfiguration: /etc/fail2ban/jail.d/apache-formspam.conf
|
||||||
#
|
#
|
||||||
cat <<'EOF' > /etc/fail2ban/jail.d/webpath-abuse.conf
|
cat <<'EOF' > /etc/fail2ban/jail.d/webpath-abuse.conf
|
||||||
[apache-formspam]
|
|
||||||
[webpath-abuse]
|
[webpath-abuse]
|
||||||
enabled = true
|
enabled = true
|
||||||
port = http,https
|
port = http,https
|
||||||
|
Reference in New Issue
Block a user