WordPress plugin providing security functionality, plays nicely with Fail2ban and Cloudflare. Verified with WordPress 5.5+/6.6.x and PHP 7.4/PHP 8.1.x
GPL-2.0 License
Security plugin for WordPress with support for fail2ban. Tested with WordPress 5.5+ and PHP 7.4/8.1.x.
This WordPress plugin provides security functionality and integration with Fail2ban and Cloudflare.
The WordPress slug is fail2wp
.
The plugin is also available on wordpress.org
Basic security functionality includes:
The plugin also plays nicely with Fail2ban, which is an advanced way of blocking IP addresses dynamically upon suspicious behavior.
may
work with earlier versions of WordPressWordPress 5.5.x and 6.x
at the time of this writingPHP 7.2, 7.4, and 8.1.x
at the time of this writingmb_
PHP functionsThis section describes how to install the plugin and get it working.
fail2wp
folder to the /wp-content/plugins/
directory (or install it from the 'Plugins' menu in WordPress)Fail2WP uses standard WordPress functionality to handle localization/locale. The native language localization of the plugin is English. It has been translated to Swedish by the author.
All logging to system logs (i.e. php.log
or auth.log
) is done in English.
This is a hard question to answer. There are no known incompatibilities.
fail2wp.conf
to /etc/fail2ban/filter.d
/etc/fail2ban/jail.local
as per the instructions in fail2wp.conf
fail2wp.conf
example fail2ban configuration for allow/deny loginfail2wp.conf
example fail2ban configuration, CHECK AGAINST YOURS!fail2wp.conf
example fail2ban configuration for XMLRPC access attemptsfail2wp.conf
!Please see LICENSE for a full copy of GPLv2
Copyright (C) 2020-2024 Joaquim Homrighausen; all rights reserved.
This file is part of Fail2WP. Fail2WP is free software.
You may redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation.
Fail2WP is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with the Fail2WP package. If not, write to:
The Free Software Foundation, Inc.,
51 Franklin Street, Fifth Floor
Boston, MA 02110-1301, USA.
The Fail2WP WordPress Plugin was written by Joaquim Homrighausen while converting ☕ into code.
Fail2WP is sponsored by WebbPlatsen i Sverige AB 🇸🇪
Commercial support and customizations for this plugin is available from WebbPlatsen i Sverige AB in 🇸🇪
If you find this plugin useful, the author is happy to receive a donation, good review, or just a kind word.
If there is something you feel to be missing from this plugin, or if you have found a problem with the code or a feature, please do not hesitate to reach out to [email protected].
This plugin can also be downloaded from code.webbplatsen.net and WordPress.org
More detailed documentation is available at code.webbplatsen.net/documentation/fail2wp/
Kudos to Vincent Le Moign and Webalys and Thomas Lutz
These links are not here for any sort of endorsement or marketing, they're purely for informational purposes.