I’d like to create an script to automatically ban (via .htaccess) any user that makes an incorrect login attempt, but I see WordPress doesn’t write any log including this info.
I have also seen there are some plugins thaat record this info, but they record this log on database, not on a log file.
Does anyone know how I can generate a log file that includes all failed login attempts on my wordpress-based site?
Thanks!
Jorge
I’ve written a WordPress Plugin that logs failed login attempts to the apache error log:
I use this to block multiple login attempts with fail2ban.