This plugin hasn’t been tested with the latest 3 major releases of WordPress. It may no longer be maintained or supported and may have compatibility issues when used with more recent versions of WordPress.

WordPress Fail2Ban


WireFlare WordPress Fail2Ban Plugin creates a syslog facility to log invalid login attempts in a custom file for use with Fail2Ban.

This plugin has no options and will not work without having server side root access.

You must follow our guide for setting up the server to make this plugin do it’s job. The guide can be found here: WordPress Login Security with Fail2Ban

What this plugin does:
This plugin constructs a syslog facility called local1. It then hooks into the WP login failed action. Any invalid login attempts are logged with the ip address, username used and website that it’s coming from. These invalid attempts are parsed by Fail2Ban to provide a proactive method to block intrusion attempts.

This plugin is different from other plugins in that we don’t save to the syslog. A custom log is created. This reduces the CPU load on the server and keeps a log dedicated to invalid WordPress login attempts. These log entries can be used to block repeat offenders as well as place temporary blocks on anyone attempting to break your website. The log file can also be used across many different websites and transferred between servers.

Visit us at WireFlare


  1. Unzip the download package
  2. Upload wp-fail2ban-logging to the /wp-content/plugins/ directory
  3. Activate the plugin through the ‘Plugins’ menu in WordPress

To getting started with the plugin API, please read this blog post.


How do I configure this plugin?

You don’t! Once the plugin is active it does the logging so long as you followed the steps outlined in the blog post.

What OS is this plugin compatible with?

This plugin has been tested with Redhat and Debian variants.

Why doesn’t it work?

You must have server side access to configure the per-requisites for this plugin to work. It will not work on shared hosting unless your hosting provider has made provisions for the plugin to work. If you have a VPS or Dedicated server you should have root access.


سبتمبر 3, 2016
Make sure you’ve installed CSF firewall on your server. Minimizes server load, very important.
Read all 2 reviews

Contributors & Developers

“WordPress Fail2Ban” is open source software. The following people have contributed to this plugin.


Translate “WordPress Fail2Ban” into your language.

Interested in development?

Browse the code, check out the SVN repository, or subscribe to the development log by RSS.



  • Initial Release