Title: WP fail2ban Blocklist
Author: invisnet
Published: <strong>2022 年 2 月 27 日</strong>
Last modified: 2025 年 5 月 1 日

---

搜尋外掛

![](https://ps.w.org/wpf2b-addon-blocklist/assets/banner-772x250.png?rev=2814742)

![](https://ps.w.org/wpf2b-addon-blocklist/assets/icon-256x256.png?rev=2814742)

# WP fail2ban Blocklist

 由 [invisnet](https://profiles.wordpress.org/invisnet/) 開發

[下載](https://downloads.wordpress.org/plugin/wpf2b-addon-blocklist.2.2.2.zip)

 * [詳細資料](https://tw.wordpress.org/plugins/wpf2b-addon-blocklist/#description)
 * [使用者評論](https://tw.wordpress.org/plugins/wpf2b-addon-blocklist/#reviews)
 *  [安裝方式](https://tw.wordpress.org/plugins/wpf2b-addon-blocklist/#installation)
 * [開發資訊](https://tw.wordpress.org/plugins/wpf2b-addon-blocklist/#developers)

 [技術支援](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/)

## 外掛說明

There are many plugins that use a database to check for malicious IPs **after** 
they connect, and of course `fail2ban` stops _repeated_ attacks, but what if bad
IPs could be blocked **before** they attack?

By working collaboratively – sharing attack data – _WP fail2ban Blocklist_ does 
exactly that.

The Blocklist Network Service (BNS) collects attack data from participating sites,
performs some analytical magic, and sends back a list of IPs that are attacking 
sites now but haven’t yet attacked that site. In other words, each site periodically
gets a unique list of IPs to block **preemptively**.

#### GDPR

The BNS doesn’t collect personal data, and bots don’t have rights.

That said, the BNS only collects the minimum data required (time, IP, event), and
only for IPs that have behaved maliciously.

Of course, it is possible that some data is generated by _people_ behaving maliciously,
but the BNS has no way to differentiate – and nor should it: an attack is an attack.

#### Freemius

To work, the BNS **must** know:

 * which sites are running the blocklist add-on,
 * which version is in use,
 * and a shared secret for secure communication.

Freemius already provides all these, and _WP fail2ban_ already uses Freemius; why
reinvent the wheel?

Therefore, unlike the core _WP fail2ban_ plugin, you _must_ opt into Freemius for
the blocklist to work.

## 螢幕擷圖

 * [[
 * Dashboard widget

## 安裝方式

 1. Ensure [_WP fail2ban_](https://wordpress.org/plugins/wp-fail2ban/) is installed.**
    N.B.** Requires version **4.4.0** or later.
 2. Install via the Plugin Directory, or upload to your plugins directory.
 3. Activate the plugin through the ‘Plugins’ menu in WordPress.
 4. Opt into Freemius; the Blocklist will not work without without this.
 5. The Blocklist Network Service (BNS) uses the WordPress REST API to communicate.
    If there is another security plugin installed be sure it allows access to the blocklist
    endpoint: `/wp-json/wp-fail2ban/v1/blocklist`
 6. **Important:** ensure you set `maxretry = 1` in your `wordpress‑hard` or `wpf2b‑
    blocklist‑hard` jail; the add-on will not work otherwise.

Details of the configuration steps can be found [here](https://docs.wp-fail2ban.com/projects/wp-fail2ban-blocklist/?utm_source=wordpress.org&utm_medium=readme&utm_campaign=wp-fail2ban-addon-blocklist-2.2.2).

## 使用者評論

![](https://secure.gravatar.com/avatar/6bcc2d95170fd3f3053f630eeefe0b6b6176237f9ed00ea5fa9fcd683068d0e3?
s=60&d=retro&r=g)

### 󠀁[Essential for any WP website](https://wordpress.org/support/topic/essential-for-any-wp-website/)󠁿

 [Attila Bogozi](https://profiles.wordpress.org/waaab/) 2025 年 11 月 6 日

Setup is easy, usage is flawless. I recommend for everyone who is serious about 
WP security.

![](https://secure.gravatar.com/avatar/40202dae6497f7981139494e666627ad827be668871d2c305901e8381fcb517f?
s=60&d=retro&r=g)

### 󠀁[Prevenire e meglio che curare](https://wordpress.org/support/topic/prevenire-e-meglio-che-curare/)󠁿

 [Mac Boris Perc](https://profiles.wordpress.org/percboris/) 2024 年 5 月 27 日

WP fail2ban Blocklist – Superb Wordpress plugin Prevention is better than cure.

 [ 閱讀全部 1 則使用者評論 ](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/)

## 參與者及開發者

以下人員參與了開源軟體〈WP fail2ban Blocklist〉的開發相關工作。

參與者

 *   [ invisnet ](https://profiles.wordpress.org/invisnet/)

[將〈WP fail2ban Blocklist〉外掛本地化為台灣繁體中文版](https://translate.wordpress.org/projects/wp-plugins/wpf2b-addon-blocklist)

### 對開發相關資訊感興趣？

任何人均可[瀏覽程式碼](https://plugins.trac.wordpress.org/browser/wpf2b-addon-blocklist/)、
查看 [SVN 存放庫](https://plugins.svn.wordpress.org/wpf2b-addon-blocklist/)，或透過
[RSS](https://plugins.trac.wordpress.org/log/wpf2b-addon-blocklist/?limit=100&mode=stop_on_copy&format=rss)
訂閱[開發記錄](https://plugins.trac.wordpress.org/log/wpf2b-addon-blocklist/)。

## 變更記錄

#### 2.2.2

 * Fix issue with parsing jails which use journald.
 * Fix harmless warning with PHP 8.3.
 * Fix documentation links in Site Health checks.

#### 2.2.1

 * Fix issue with opting into Freemius (h/t @Nyanchovy).
 * Fix Site Health passing test reported as failing (h/t @Patmos).
 * Improve debug code.

#### 2.2.0

 * Add [`WP_FAIL2BAN_ADDON_BLOCKLIST_DEBUG`](https://docs.wp-fail2ban.com/projects/wp-fail2ban-blocklist/en/2.2/defines/constants/WP_FAIL2BAN_ADDON_BLOCKLIST_DEBUG.html?utm_source=wordpress.org&utm_medium=readme&utm_campaign=wp-fail2ban-addon-blocklist-2.2.2).
 * Add [`WP_FAIL2BAN_ADDON_BLOCKLIST_DEBUG_TRY_ALL_KEYS`](https://docs.wp-fail2ban.com/projects/wp-fail2ban-blocklist/en/2.2/defines/constants/WP_FAIL2BAN_ADDON_BLOCKLIST_DEBUG_TRY_ALL_KEYS.html?utm_source=wordpress.org&utm_medium=readme&utm_campaign=wp-fail2ban-addon-blocklist-2.2.2).
 * Improve i18n.

#### 2.1.1

 * Fix harmless warning with PHP 8.1.
 * Compatibility changes for upcoming `WPf2b` release.

#### 2.1.0

 * Add Site Health checks.
 * Fix REST authentication issue (CORS headers) with some web servers.

#### 2.0.1

 * Fix harmless warning in dashboard widget; appears only before first polling.
 * Fix REST authentication when both free and premium installed.
 * Fix help links.

#### 2.0.0

 * **IPv6 support.** (Requires WP fail2ban 5.0 or later).
 * Change filter filenames to start with `wpf2b-` instead of `wordpress-`.
 * Add queue info to admin dashboard widget.

#### 1.1.2

 * Add mouseover hints to dashboard widget.
 * Improve secret key lookup.

#### 1.1.1

 * Fix bug with secret key lookup.

#### 1.1.0

 * Add event queue info to dashboard widget.
 * Increase maximum queue to 16384 events.
 * Fix bug handling too many events.

#### 1.0.2

 * Minor bug-fix.

#### 1.0.1

 * Minor bug-fix.

#### 1.0.0

 * First WordPress directory release.

## 中繼資料

 *  版本 **2.2.2**
 *  最後更新 **1 年前**
 *  啟用安裝數 **4,000+**
 *  WordPress 版本需求 ** 4.9 或更新版本 **
 *  已測試相容的 WordPress 版本 **6.8.5**
 *  PHP 版本需求 ** 7.4 或更新版本 **
 *  語言
 * [English (US)](https://wordpress.org/plugins/wpf2b-addon-blocklist/)
 * 標籤:
 * [blocklist](https://tw.wordpress.org/plugins/tags/blocklist/)[fail2ban](https://tw.wordpress.org/plugins/tags/fail2ban/)
   [security](https://tw.wordpress.org/plugins/tags/security/)
 *  [進階檢視](https://tw.wordpress.org/plugins/wpf2b-addon-blocklist/advanced/)

## 評分

 5 星，滿分為 5 星

 *  [  2 個 5 星使用者評論     ](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/?filter=5)
 *  [  0 個 4 星使用者評論     ](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/?filter=4)
 *  [  0 個 3 星使用者評論     ](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/?filter=3)
 *  [  0 個 2 星使用者評論     ](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/?filter=2)
 *  [  0 個 1 星使用者評論     ](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/?filter=1)

[Your review](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/#new-post)

[查看全部使用者評論](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/reviews/)

## 參與者

 *   [ invisnet ](https://profiles.wordpress.org/invisnet/)

## 技術支援

使用者可在技術支援論壇提出意見反應或使用問題。

 [檢視技術支援論壇](https://wordpress.org/support/plugin/wpf2b-addon-blocklist/)