fail2ban_wp-login
Create the following filter for wp-login in /etc/fail2ban/filter.d/wp-login.conf
[Definition] failregex = ^<HOST> .* "POST /wp-login.php ignoreregex =
Append the following to /etc/fail2ban/jail.conf
[wp-login] enabled = true port = http,https filter = wp-login logpath = %(nginx_access_log)s maxretry = 4 findtime = 7200 # bantime: 1 year bantime = 31536000
fail2ban_wp-login.txt · Last modified: 2024/05/23 07:26 by 127.0.0.1