| 开发者 | invisnet |
|---|---|
| 更新时间 | 2026年11月17日 05:04 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv3 or later |
| 版权网址: | 版权信息 |
fail2ban to block attackers at your server's firewall. Blocklist takes that protection further, turning individual observations into shared intelligence.
It's collaborative protection: your site helps protect others, and they help protect you.
Current attacks, not historical reputations
WP fail2ban Blocklist isn't another IP reputation database. It's concerned with attacks happening now, rather than maintaining a permanent list of addresses with a history of suspicious activity.
The network shares observations of recent attacks between participating WordPress sites. Each site receives its own list of hostile IP addresses, based on activity across the network and what that site has already encountered.
An address that was hostile yesterday isn't necessarily hostile today. Blocklist focuses on recent activity rather than assigning permanent reputations.
The network comes to you
Rather than requiring each participating site to contact a central server for updates, the Blocklist Network Service (BNS) connects to your site through the WordPress REST API.
During that exchange, the service collects selected security observations from your site and delivers its own list of recently hostile IP addresses. Your site contributes to the network and receives intelligence from other participants through the same connection.
The network uses observations from participating WP fail2ban sites, not third-party threat feeds. It cannot warn about an attack source that nobody in the network has encountered yet; your normal WP fail2ban protection remains important.
More about how Blocklist works.
Free and Premium
The Blocklist is free to use with WP fail2ban Free.
Free installations contribute observations to the network and receive a reduced selection of current hostile addresses. WP fail2ban Premium receives the full current Blocklist intelligence available for the site.
Both use the same collaborative network and the same underlying fail2ban and firewall protection.
Compare Free and Premium.
Built to work with your firewall
Blocklist extends WP fail2ban rather than replacing any part of it. It writes received addresses as syslog events for fail2ban to recognise. Your host firewall does the blocking, before the next request reaches WordPress.
The standard WP fail2ban hard filter can recognise Blocklist messages. For more control, you can give Blocklist a dedicated jail, with its own filter and ban settings. The important thing is that a Blocklist warning should result in an immediate ban (maxretry = 1).
fail2ban jail to act immediately on Blocklist messages (maxretry = 1). Use the existing wordpress-hard jail or a dedicated jail with the wpf2b-blocklist-hard filter. If you use a dedicated jail, enable the corresponding Custom Jail setting in WordPress./wp-json/wp-fail2ban/v1/blocklist. That endpoint must be reachable: a hosting firewall, CDN, or another security plugin must not block the service's requests.
The first visit may take a few hours. The Blocklist Status widget checks connectivity and updates when the BNS first connects, so you can see that your site has joined the network.
Don't be surprised if you receive few or no IP addresses initially. That's normal. Blocklist shares intelligence about recent attacks, and it takes time for your site to begin receiving useful results.
Once the first connection has been established, you can hide the Blocklist Status widget and use the full Blocklist dashboard widget instead.
For more detailed configuration, including dedicated fail2ban jails, see the Blocklist documentation.No. Blocklist is an add-on to WP fail2ban. WP fail2ban records security events from your own installation; Blocklist extends that protection using observations from other participating sites. You should continue to use your normal WP fail2ban protection alongside Blocklist.
No. Blocklist writes events for fail2ban to recognise, and your server's firewall enforces the resulting bans. Without a working fail2ban jail and firewall action, the add-on cannot provide pre-emptive protection.
Blocklist needs to identify participating sites and authenticate communication with them. WP fail2ban already integrates with Freemius, so the add-on uses that connection rather than requiring another account. Unlike the normal operation of WP fail2ban Free, Blocklist requires this connection to participate in the network.
Usually not. The BNS may take a few hours to make its first connection, and new installations may initially receive no addresses. Check the Blocklist Status widget for connectivity and first-contact information. An empty list by itself doesn't indicate a problem.
Each site's list is selected individually, taking account of what that site has already encountered. Different results are normal, and Free and Premium also receive different-sized selections.
Yes. WP fail2ban Blocklist is designed to coexist with other blocklists, including those managed by your hosting provider or firewall. The important thing is that each service manages its own rules without overwriting or interfering with those managed by another. Overlapping IP addresses aren't a problem: more than one blocklist can identify the same attacker. You can continue using your existing blocklists while benefiting from the intelligence shared through the WP fail2ban network.
Yes. The Blocklist ignore list lets you exclude specified addresses from received warnings. This can be useful for a trusted network, VPN, or other service you do not want blocked because of activity observed elsewhere.
Not directly. Once your firewall has blocked an address, later connections may never reach WordPress. Neither WP fail2ban nor Blocklist can see those rejected connections from inside WordPress. Your firewall logs may provide additional information, but the number of Blocklist warnings isn't the number of attacks prevented.
WP_FAIL2BAN_ADDON_BLOCKLIST_DEBUG.WP_FAIL2BAN_ADDON_BLOCKLIST_DEBUG_TRY_ALL_KEYS.wpf2b- instead of wordpress-.