WordPress plugin intelligence profile

Fail2WP

WordPress security plugin. Requires WordPress 6.2+ and PHP 7.4+.

WP PlugIndex snapshot

Current directory snapshot

Tested up to WordPress 7.1
Current version1.4.0
WordPress coverageTested up to WordPress 7.1
Minimum stackWP 6.2 · PHP 7.4
Directory statusactive
Last directory update19 Oct 202614d ago
Active installations100Adoption metric — not a quality score
WordPress.org rating5.0 / 5 from 2 ratings
Official packageDirect from WordPress.org

Repository metrics are context, not quality scores. Active installations measure adoption and can strongly reflect a plugin’s age and historical popularity. Ratings, recent updates and “Tested up to” metadata also do not guarantee modern code, error-free operation, security, feature completeness or suitability for a particular site. Why active installs don’t tell the whole story →

WP PlugIndex currently records Fail2WP version 1.4.0 as active, updated 14d ago and tested up to WordPress 7.1.

Overview

About this plugin

  • Adds security controls to WordPress.
  • Fail2ban integration is optional.

Security features:

  • Disabling login with username (require e-mail address)
  • Allow/Deny login from IP address, hostname (including wildcard support)
  • Preventing user enumeration (?author=nnn)
  • Less detailed error messages on login failures
  • Minimum username length
  • Blocking specific usernames from being used to register new users
  • Requiring e-mail address matching for new user registrations
  • Warning about new user role setting
  • Blocking of portions or all of WordPress REST API
  • Disabling of RSS and Atom feeds
  • Removal of “Generator” information from HTML and feeds
  • Detection of Cloudflare IP addresses for logging of actual IP addresses
  • Blocking/Allowing logins from IP addresses, IP ranges, and/or hostnames
  • Partially or fully disable XMLRPC access

-

Monitoring administrator accounts for unexpected role/account changes

-

Fail2ban can dynamically block IP addresses after suspicious activity.

Other notes:

  • Requires WordPress 6.2+ and PHP 7.4+.
  • PHP compatibility checks: 7.4, 8.1, 8.2, 8.3, and 8.4.
  • Uses mb_ PHP functions when available.
  • May write to the PHP error log when logging is enabled.
  • Contains no JavaScript or tracking code.
  • Optional IP blocking stores IP addresses and security-event timestamps. Administrator monitoring stores administrator IDs and login names.

Reverse proxy configuration:

  • Available since 1.4.0.
  • Setting: FAIL2WP_TRUSTED_PROXIES in wp-config.php, before wp-settings.php loads.

-

Value: array of proxy IPv4/IPv6 addresses or CIDRs.

10’, ‘2001:db8:1234::/48’ ] );

-

Replace the examples with your actual proxy addresses.

  • List directly connected proxy peers, identified by REMOTE_ADDR.
  • Hostnames and wildcards: unsupported for this constant.
  • Undefined or empty array: X-Real-IP ignored.
  • Accepted header: one valid IP from a listed proxy.
  • Missing or invalid header: peer address used.
  • Proxy requirement: overwrite client-supplied X-Real-IP.
  • Multiple proxy hops: final proxy supplies the verified visitor IP.
  • X-Forwarded-For and address chains: unsupported.
  • Proxy trust does not bypass login restrictions or IP bans.
  • Scope: entire WordPress installation; excluded from settings exports.
  • Server already supplies a verified REMOTE_ADDR: usually no constant needed.
  • Cloudflare: enabled setting, matching source range, valid CF-Connecting-IP; takes precedence.
  • Upgrade: configure trusted proxies before updating an existing X-Real-IP deployment.
  • Verify client addresses and login access on staging.
  • Login/bypass hostname wildcards: separate feature; forward-confirmed reverse DNS required.

Credits

The Fail2WP Plugin was written by Joaquim Homrighausen while converting caffeine into code.

Fail2WP is sponsored by WebbPlatsen i Sverige AB, Sweden.

Copyright 2020-2026 Joaquim Homrighausen; all rights reserved.

Commercial support and customizations for this plugin is available from WebbPlatsen i Sverige AB in Sweden.

If you find this plugin useful, the author is happy to receive a donation, good review, or just a kind word.

se.

net and GitHub

net/documentation/fail2wp/

Kudos to Thomas Lutz.

WordPress.org metadata

Plugin tags

Topics listed for this plugin in the WordPress.org directory.

  • admin
  • authentication
  • fail2ban
  • firewall
  • security
Compatibility & maintenance

Compatibility & maintenance

Tested with WP 7.1

Marked as tested with the current WordPress 7.1 release.

Current WordPress releaseWordPress 7.1
WordPress.org Tested up to7.1
Minimum requirementsWordPress 6.2 · PHP 7.4
Update activity19 Oct 202614d ago

“Tested up to” is directory metadata supplied by the plugin author. WP PlugIndex does not turn an older declaration into a claim that the plugin is incompatible.

Changes recorded by WP PlugIndex

Recent tracked changes

Version1.3.01.4.0
WordPress compatibility7.0.47.1.3
WordPress requirement5.4.06.2
Tracking & source

WP PlugIndex tracks public WordPress.org directory metadata and records selected version, compatibility and availability changes as they are detected.

Plugin watchlist

Watch this plugin

Sign in to your WP PlugIndex account or create a free account. Free accounts can watch up to 5 plugins and see what changed.

Watch limit

Watchlist limit reached

You have reached your current active watch limit.