Write all login attempts to syslog for integration with fail2ban.
fail2ban is one of the simplest and most effective security measures you can implement to prevent brute-force password-guessing attacks.
WP fail2ban logs all login attempts, whether successful or not, to syslog using LOG_AUTH. To make log parsing as simple as possible WPf2b uses the same format as sshd. For example:
Oct 17 20:59:54 foobar wordpress(www.example.com): Authentication failure for admin from 192.168.0.1 Oct 17 21:00:00 foobar wordpress(www.example.com): Accepted password for admin from 192.168.0.1
WP fail2ban can also log all pingbacks.
WPf2b comes with a
Requires PHP 5.3 or later.