Title: WTB Firewall
Author: wtbplugins
Published: <strong>2026 年 3 月 20 日</strong>
Last modified: 2026 年 4 月 25 日

---

搜索插件

![](https://ps.w.org/wtb-firewall/assets/banner-772x250.png?rev=3487434)

![](https://ps.w.org/wtb-firewall/assets/icon-256x256.png?rev=3487434)

# WTB Firewall

 作者：[wtbplugins](https://profiles.wordpress.org/wtbplugins/)

[下载](https://downloads.wordpress.org/plugin/wtb-firewall.1.1.1.zip)

 * [详情](https://cn.wordpress.org/plugins/wtb-firewall/#description)
 * [评价](https://cn.wordpress.org/plugins/wtb-firewall/#reviews)
 *  [安装](https://cn.wordpress.org/plugins/wtb-firewall/#installation)
 * [开发进展](https://cn.wordpress.org/plugins/wtb-firewall/#developers)

 [支持](https://wordpress.org/support/plugin/wtb-firewall/)

## 描述

WTB Firewall is a lightweight but powerful WordPress firewall plugin designed to
help you protect your site from unwanted visitors, brute-force attacks and malicious
traffic.

The plugin allows you to define clear access rules, automatically block suspicious
behaviour, and correctly detect real visitor IP addresses even when your site is
behind a proxy or CDN.

#### Core Features

 * Manual IP allow and block rules
 * Country-based access control
 * Automatic blocking after repeated authentication failures
 * Built-in rate limiting to protect your site from excessive requests and abuse
 * 404 monitoring to detect and block traffic generating repeated missing-page errors
 * Proxy support with trusted header detection
 * Lightweight design with minimal performance impact
 * Clean WordPress-native admin interface

#### Why use WTB Firewall?

Many WordPress security plugins include dozens of features that add complexity and
overhead. WTB Firewall focuses on essential firewall functionality so you can:

 * Stop brute-force login attempts
 * Restrict access from unwanted regions
 * Block abusive visitors quickly
 * Ensure accurate IP detection behind proxies or CDNs
 * Keep your site fast while improving security

#### Designed for Performance

WTB Firewall is built with performance and reliability in mind. Rules are processed
efficiently, unnecessary background tasks are avoided, and the plugin integrates
cleanly with WordPress without slowing down your site.

## 屏幕截图

 * [[
 * Easily block or allow connections from any country.
 * [[
 * Automatic blocking configuration for repeated authentication failures.
 * [[
 * Manual IP allow and block configuration screen.

## 安装

 1. Upload the plugin files to the /wp-content/plugins/wtb-firewall directory, or install
    the plugin through the WordPress plugins screen.
 2. Activate the plugin through the Plugins screen in WordPress.
 3. Open the firewall settings from the WordPress admin menu.
 4. Review the included quickstart guide to configure the firewall safely and correctly
    for your setup.

## 常见问题

### Does this plugin slow down my site?

No. WTB Firewall is designed to be lightweight and focuses only on essential firewall
functionality. It avoids heavy scans, background tasks and unnecessary processing.

### Can I block specific IP addresses?

Yes. You can manually allow or block individual IP addresses directly from the plugin
settings.

### Can I block visitors from specific countries?

Yes. The plugin supports country-based access rules so you can restrict or allow
traffic from selected regions.

### Does the plugin protect against brute-force login attacks?

Yes. WTB Firewall can automatically block visitors who fail authentication too many
times within a defined period.

### Will this work if my site is behind Cloudflare or another CDN?

Yes. The plugin supports proxies. It can detect real visitor IP addresses using 
trusted headers when your site is behind services like Cloudflare or load balancers.

### Can users fake their IP address through headers?

The plugin includes proxy handling logic and trusted header settings to help prevent
IP spoofing and ensure accurate detection when proxies are used.

### Is this a full security suite like some other plugins?

No. WTB Firewall focuses specifically on firewall functionality. It does not include
malware scanning or file integrity checks, which keeps it lightweight and efficient.

### Where can I get support?

You can ask questions in the WordPress.org support forum for this plugin. A quickstart
guide is included to help you get started, and full documentation will be published
on our website in the near future.

## 评价

此插件暂无评价。

## 贡献者及开发者

「WTB Firewall」是开源软件。 以下人员对此插件做出了贡献。

贡献者

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

[帮助将「WTB Firewall」翻译成简体中文。](https://translate.wordpress.org/projects/wp-plugins/wtb-firewall)

### 对开发感兴趣吗?

您可以[浏览代码](https://plugins.trac.wordpress.org/browser/wtb-firewall/)，查看
[SVN仓库](https://plugins.svn.wordpress.org/wtb-firewall/)，或通过[RSS](https://plugins.trac.wordpress.org/log/wtb-firewall/?limit=100&mode=stop_on_copy&format=rss)
订阅[开发日志](https://plugins.trac.wordpress.org/log/wtb-firewall/)。

## 更新日志

#### 1.1.1

 * Moved generating country rules to a wp-cron job.

#### 1.1

 * Added rate limiting to restrict excessive requests from a single IP.
 * Added 404 monitoring to detect and block IPs generating excessive 404 errors.

#### 1.0.1

 * Minor improvements to WAF script

#### 1.0.0

 * Initial release

## 额外信息

 *  版本 **1.1.1**
 *  最后更新：**1 月前**
 *  活跃安装数量 **不到10**
 *  WordPress 版本 ** 6.0 或更高版本 **
 *  已测试的最高版本为 **7.0**
 *  PHP 版本 ** 8.1 或更高版本 **
 *  语言
 * [English (US)](https://wordpress.org/plugins/wtb-firewall/)
 * 标签
 * [brute force protection](https://cn.wordpress.org/plugins/tags/brute-force-protection/)
   [firewall](https://cn.wordpress.org/plugins/tags/firewall/)[IP-blocking](https://cn.wordpress.org/plugins/tags/ip-blocking/)
   [security](https://cn.wordpress.org/plugins/tags/security/)[WAF](https://cn.wordpress.org/plugins/tags/waf/)
 *  [高级视图](https://cn.wordpress.org/plugins/wtb-firewall/advanced/)

## 评级

尚未提交反馈。

[Your review](https://wordpress.org/support/plugin/wtb-firewall/reviews/#new-post)

[查看全部评论](https://wordpress.org/support/plugin/wtb-firewall/reviews/)

## 贡献者

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

## 支持

有话要说吗？是否需要帮助？

 [查看支持论坛](https://wordpress.org/support/plugin/wtb-firewall/)