diff --git a/roles/fail2ban/templates/filters/wordpress-wp-login.conf.j2 b/roles/fail2ban/templates/filters/wordpress-wp-login.conf.j2 index d0f9271098..1de31a3982 100644 --- a/roles/fail2ban/templates/filters/wordpress-wp-login.conf.j2 +++ b/roles/fail2ban/templates/filters/wordpress-wp-login.conf.j2 @@ -1,2 +1,2 @@ [Definition] -failregex = ^ .* "POST .*wp-login\.php +failregex = ^ .* "POST [^"]*wp-login\.php[^"]*" 200 diff --git a/roles/fail2ban/templates/filters/wordpress-xmlrpc.conf.j2 b/roles/fail2ban/templates/filters/wordpress-xmlrpc.conf.j2 index 6d8547146f..e5c01bb090 100644 --- a/roles/fail2ban/templates/filters/wordpress-xmlrpc.conf.j2 +++ b/roles/fail2ban/templates/filters/wordpress-xmlrpc.conf.j2 @@ -1,2 +1,2 @@ [Definition] -failregex = ^ .* "POST .*xmlrpc\.php +failregex = ^ .* "POST [^"]*xmlrpc\.php[^"]*" 200