Type to search.

#628 by installs

WP fail2ban – Advanced Security

by invisnetVersion 5.5.0

WP fail2ban uses fail2ban to protect your WordPress site.

Active installs
60,000+
#628 of 1,000
Downloads, all time
2.1M
2,085,528
Downloads, 30 days
73.7K
9.3K in the last 7
Rating
4.2 / 5
71 reviews
Last updated
11 days ago
Oct 20, 2026
Version
5.5.0
50 releases

Upkeep and compatibility

Last updatedOctober 20, 2026Updated in the last 3 months
Tested up toWordPress 7.1.4Covers WordPress 7.1.4, the current release
Needs WordPress4.2 or newer
Needs PHP7.4 or newer
First publishedOctober 19, 2012
Support, last two months0 of 1 threads resolved (0%)

Reviews

4.2 / 5 from 71 reviews

Reviews by star rating
5 stars51
4 stars4
3 stars2
2 stars4
1 star10

Downloads, last 30 days

Low 312 a dayHigh 20K a day

What the author says it does

Got a firewall? Use it.

WP fail2ban gives fail2ban the information it needs to block attackers at the firewall. fail2ban is a server-side service that bans abusive IP addresses; WP fail2ban tells it about brute-force attacks, user enumeration, comment abuse, spam, and more.

Once an address is banned, the firewall stops its requests before they reach your site.

Free protection from the usual suspects

The Free edition covers the attacks WordPress sites see every day:

  • Brute-force attacks — failed logins and attempts using unknown or blocked usernames give fail2ban the information it needs to act.
  • User enumeration — blocks common ways bots discover valid usernames before trying to log in.
  • Comment abuse and spam — catches suspicious comment attempts and can act on comments marked as spam.
  • Pingbacks and trackbacks — turns abusive or failed requests into useful signals for fail2ban.
  • Blocklist — the free Blocklist can stop known hostile IP addresses before they attack your site.

Need more protection? See what Premium adds →

How WP fail2ban works

WP fail2ban records security events in a form fail2ban can recognise. fail2ban watches those events and applies the rules you configure on the server. When an address crosses a threshold, it can be banned by the host firewall, so later requests are stopped before they reach WordPress.

The opening of the plugin's own description. The full text, installation notes and changelog are on its WordPress.org page.

Questions the author answers

Is WP fail2ban “fail2ban for WordPress”?

No. fail2ban is the service that watches logs and bans abusive IP addresses at the firewall. WP fail2ban is the bridge between WordPress and fail2ban: it tells fail2ban what is happening inside WordPress in a form it can act on.

The name dates from 2011, when “WP + something” was commonly understood to mean an integration between WordPress and that thing.

Why does a dismissed Premium notice sometimes come back?

It shouldn’t.

The Premium notices are provided by Freemius and use WordPress’s normal admin request handling to remember when you dismiss them. If another plugin mishandles that request before WP fail2ban or Freemius sees it, the dismissal is never saved and the notice can appear again.

Will WP fail2ban work with my hosting?

If you can configure fail2ban and the firewall, yes.

That normally includes VPSs, dedicated servers, and other hosting where you have control of the operating system. WP fail2ban supplies the WordPress side of the integration; fail2ban and the firewall run on the server.

What is the Blocklist?

The WP fail2ban Blocklist uses attacks seen by participating WP fail2ban sites to identify hostile IP addresses.

That means your firewall can block an address before it attacks your site, rather than waiting for your site to see enough activity for fail2ban to act.

Why is the WordPress.org edition 5.x while Premium is 6.x?

The WordPress.org edition remains on 5.x so it can continue to support PHP 7.4. There are still a lot of WP fail2ban sites running PHP 7.4, even though PHP itself stopped supporting it nearly four years ago.

Premium is based on 6.x and requires PHP 8 or later. It has moved on significantly from 5.x as WP fail2ban continues to develop.

What’s the difference between Free and Premium?

The Free edition covers the everyday WordPress abuse most sites need fail2ban to act on.

Premium goes further with the full Blocklist, the Web Application Firewall, persistent event history, geo‑blocking, maintained security data, and additional controls.

Compare all Free and Premium features →

Latest changelog entry

5.5.0-LTS

  • Add support for closing keep-alive connections on blocked and failed requests (was Premium only).
  • Fix Site Health reporting compatible filters as old. [Back-port from 6.3.0]
  • Fix blocked-user list matching to be case-insensitive for array lists. [Back-port from 6.3.0]
  • Fix password reset logged as success too early. [Back-port from 6.3.0]
  • Fix pingback errors not using WP_FAIL2BAN_PINGBACK_LOG. [Back-port from 6.3.0]
  • Update Freemius library.

Tagged

Plugins that share its tags

#401 by installs

Hide My WP Ghost – Security & Firewall

by John Darrel

Hide My WP Ghost is a WordPress security plugin that hides WP paths and protects your site with Path Security, Firewall, Brute Force Protection, 2FA

Installs
100,000+
Rating
4.5 (373)
Updated
1 day ago

#975 by installs

XO Security

by ishitaka

XO Security is a plugin to enhance login related security.

Installs
30,000+
Rating
5.0 (11)
Updated
3 months ago

#46 by installs

Loginizer

by Softaculous

Loginizer is a WordPress security plugin which helps you fight against bruteforce attacks.

Installs
1+ million
Rating
4.8 (1K)
Updated
2 days ago

#199 by installs

Limit Login Attempts

by Automattic

Limit rate of login attempts, including by way of cookies, for each IP. Fully customizable.

Installs
300,000+
Rating
4.6 (202)
Updated
4 years ago

Where this page's numbers come from

Read from the WordPress.org plugin API on , when WordPress 7.1.4 was the current release. WordPress.org rounds active installs into buckets. These are the directory's figures, not my verdict, and I haven't tested this plugin.