I'm looking for solution how to permanent block IP after few failed login wordpress. My clients use several extensions to login wordpress so I need custom regex which is include all options.
I have below custom regex but I don't know why works only first parameter, parametr wp-login doesn't work. Maybe I should create if to each extension ?
I have below custom regex but I don't know why works only first parameter, parametr wp-login doesn't work. Maybe I should create if to each extension ?
if (($globlogs{CUSTOM1_LOG}{$lgfile}) and ($line =~ /(\S+).*] "\w*(?: POST) \/login-page\/|wp-login.php.*" /)) {
return ("Failed Login Wordpress $lgfile",$1,"Wordpress","5","80,443,22,2323","1");
}
Last edited: