跳至内容
WordPress.org

China 简体中文

  • 主题
  • 插件
  • 新闻
    • 文档
    • 论坛
  • 关于
  • 获取 WordPress
获取 WordPress
WordPress.org

Plugin Directory

WTB Firewall

  • 提交插件
  • 我的收藏
  • 登录
  • 提交插件
  • 我的收藏
  • 登录

WTB Firewall

作者:wtbplugins
下载
  • 详情
  • 评价
  • 安装
  • 开发进展
支持

描述

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.
Easily block or allow connections from any country.
Automatic blocking configuration for repeated authentication failures.
Automatic blocking configuration for repeated authentication failures.
Manual IP allow and block configuration screen.
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.

评价

Great firewall plugin

hakuwp80 2026 年 8 月 18 日
Super easy to use and configure. My site got constantly flooded with bots from Singapore and China. This plugin took care of it easily.

Simple, efficient and practical and light

wpdanilo 2026 年 6 月 18 日
Wtb Firewall does everything it says on the tin: it filters out “annoying” IPs, imposes a general access limit, 404 errors, searches for obtuse bots and does it efficiently and simply, without weighing down Wordpress. Thanks for this software!
阅读所有2条评价

贡献者及开发者

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

贡献者
  • wtbplugins

帮助将「WTB Firewall」翻译成简体中文。

对开发感兴趣吗?

您可以浏览代码,查看SVN仓库,或通过RSS订阅开发日志。

更新日志

1.1.4

  • Fixed an issue that could occasionally prevent blocked requests from being logged correctly.

1.1.3

  • Updated the included country IP database.

1.1.2

  • Updated the included country IP database.

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.4
  • 最后更新:2 周前
  • 活跃安装数量 不到10
  • WordPress 版本 6.0 或更高版本
  • 已测试的最高版本为 7.0.4
  • PHP 版本 8.1 或更高版本
  • 语言
    English (US)
  • 标签
    bot blockingcountry blockingfirewalllogin protectionsecurity
  • 高级视图

评级

5 星(最高 5 星)。
  • 2 条 5 星评价 5 星 2
  • 0 条 4 星评价 4 星 0
  • 0 条 3 星评价 3 星 0
  • 0 条 2 星评价 2 星 0
  • 0 条 1 星评价 1 星 0

您的评价

查看全部评论

贡献者

  • wtbplugins

支持

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

查看支持论坛

  • 关于
  • 新闻
  • 主机
  • 隐私
  • 陈列窗
  • 主题
  • 插件
  • 区块样板
  • 学习
  • 支持
  • 开发者
  • WordPress.tv ↗︎
  • 参与
  • 活动
  • 捐赠 ↗
  • Swag ↗
  • WordPress.com ↗
  • Matt ↗
  • bbPress ↗
  • BuddyPress ↗
WordPress.org
WordPress.org

China 简体中文

  • 关注我们的 X(原 Twitter)账号
  • 访问我们的 Bluesky 账号
  • 关注我们的 Mastodon 账号
  • 访问我们的 Threads 账号
  • 访问我们的 Facebook 公共主页
  • 关注我们的 Instagram 账号
  • 关注我们的 LinkedIn 主页
  • 访问我们的 TikTok 账号
  • 访问我们的 YouTube 频道
  • 访问我们的 Tumblr 账号
代码如诗
The WordPress® trademark is the intellectual property of the WordPress Foundation.