Linux 软件免费装
Banner图

WAF Manager for Cloudflare

开发者 ja1me4
nahnuplugins
更新时间 2026年10月29日 04:21
PHP版本: 8.0 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

security firewall cloudflare hardening waf

下载

1.0.26 1.0.22 1.0.23 1.0.24 1.0.24.1 1.0.25

详情介绍:

This is the WordPress.org edition, and it contains the WAF Rules Builder only. The full version, WP WAF Manager, adds DNS management, zone analytics, zone controls and cache purge, bot control, SSL monitoring, Cloudflare alerts and health checks, Turnstile widget management, Page Rules migration, IP access rules, security events, email routing, white-label client reports, and multi-account support. It is available free on GitHub, or from wpwafmanager.com for automatic updates and priority support. The full version is fully compatible with this edition and runs on the same site. WAF Manager for Cloudflare deploys a proven set of Cloudflare WAF (Web Application Firewall) custom rules to your Cloudflare zones from your WordPress admin. You choose what each rule allows, blocks or challenges with checkboxes, and the plugin writes the Cloudflare expressions and deploys them in the correct order. The five rules Based on the open-source wafrules.com ruleset, updated to the October 24, 2026 release:
  1. Allow Good Bots (Skip). Allows every Cloudflare verified bot, or only the categories you pick, plus services matched by the IP lists they publish (ManageWP, WP Umbrella, ShortPixel, Patchstack and more), Let's Encrypt, your own server IPs, an IP allowlist, custom user agents and custom Cloudflare expressions. It runs first so nothing below blocks legitimate traffic, while Cloudflare's managed rules still protect it.
  2. Block Aggressive Crawlers & WordPress Paths (Block). Blocks aggressive crawlers and exploit scanners (SQLMap, Nikto, Masscan, Nmap), generic bot patterns, curl scripts (with an exception list for your API and webhook hostnames), and sensitive WordPress paths (xmlrpc.php, wp-config, install.php, readme.html, license.txt) in any letter case.
  3. Block or Challenge Web Hosts / TOR & Exploit URIs. Blocks or challenges traffic from hosting and VPS networks (DigitalOcean, Linode, Vultr, Hetzner, OVH, Contabo and more), three networks known for WordPress attack traffic and TOR exit nodes, and blocks six groups of exploit URIs: time-delay and UNION SQL injection, file inclusion, legacy exploits, other CMS probes and XSS.
  4. Challenge Large Providers / Country (Managed Challenge). Challenges traffic from AWS, Google Cloud and Azure, and optionally visitors from outside the countries you select.
  5. Challenge VPN Connections & wp-login (Managed Challenge). Challenges known VPN providers and protects the WordPress login page.
Each rule can be switched on or off and fine-tuned without writing any Cloudflare syntax. Builder features Settings Requirements External services This plugin connects to the Cloudflare API to read your zones and to create, read, and deploy WAF rules on your behalf. This service is required for the plugin to function: without a Cloudflare account and API credentials, the plugin has nothing to manage. Requests are sent to the Cloudflare API at https://api.cloudflare.com only from your WordPress admin, and only when you take an action that requires it: verifying credentials, testing the connection, listing your zones, listing existing rules, or deploying rules. The data sent consists of the Cloudflare credentials you enter (an API Token, or an account email plus Global API Key), the zone IDs you select, and the WAF rule definitions you build in the plugin. No data about your site's visitors and no personal data about your WordPress users is sent. The plugin does not send data to any other third-party service. Cloudflare is a third-party service operated by Cloudflare, Inc. By using this plugin to connect to Cloudflare, you are subject to their terms and policies: Trademarks This plugin is independent and is not affiliated with, endorsed by, or sponsored by Cloudflare, Inc. Cloudflare is a registered trademark of Cloudflare, Inc., referenced here only to describe what this plugin is compatible with. No endorsement or affiliation is implied.

安装:

  1. In WordPress, go to Plugins > Add New, search for "WAF Manager for Cloudflare", then install and activate it.
  2. Open WAF Manager in the admin sidebar.
  3. Enter your Cloudflare API Token and click Verify & Save.
  4. Review the five rules, click Save Settings, then Deploy Rules to Your Sites and choose your zones.
Creating your API Token
  1. Visit Cloudflare API Tokens.
  2. Click Create Token and start from a Custom Token.
  3. Add permissions: Zone > WAF > Edit and Zone > Zone > Read.
  4. Set Zone Resources to "All zones", or to the zones you want to manage.
  5. Copy the token into the plugin and click Verify & Save.

屏幕截图:

  • Rule 2 (Block Aggressive Crawlers & WordPress Paths): block crawlers, exploit scanners, and sensitive WordPress paths with checkboxes.
  • Rules 3 and 4: block or challenge web hosting networks and TOR exit nodes, and challenge the large cloud providers.
  • Rule 5 (Challenge VPN Connections & wp-login): managed challenge for known VPN providers and the WordPress login page.

升级注意事项:

1.0.26 WAF rules updated to the October 24, 2026 wafrules.com release: curl blocking in Rule 2, three attack hosting networks in Rule 3 and the latest WP Umbrella IPs. Your settings are updated automatically; deploy again to apply them. Also adds SVG icons, country flags and region maps. 1.0.25 Updates the five WAF rules to the October 2026 wafrules.com release. Your settings are converted automatically. Deploy again to apply the new rules; your other custom Cloudflare rules are now kept. 1.0.24.1 Important: fixes a fatal error caused by incorrect files in the 1.0.23 download. Update now. 1.0.24 Fixes loading on PHP 8.0, stops credentials being sent to the browser, and improves layout on laptops, large monitors and phones.

常见问题:

Will deploying replace rules I already created in Cloudflare?

No. Deploying replaces only this plugin's own rules (named "[CF WAF] ...") and keeps your other custom rules on the zone, placed after the plugin's rules so Rule 1 still runs first. If you want a clean zone, tick "Replace all custom rules in the zone" before deploying; you will be asked to confirm. Managed rules, rate limiting rules and other Cloudflare settings are not changed either way.

My Free zone says it has no room for more rules.

The Cloudflare Free plan allows five custom rules in total, and this plugin uses five. If the zone already has rules of its own, either remove them in Cloudflare or deploy with "Replace all custom rules in the zone".

Does this work on Cloudflare Free plans?

Yes. When Cloudflare restricts a rule phase on your plan, the plugin removes it and retries so the deploy still succeeds.

Do I need to know the Cloudflare expression language?

No. Every rule is built from checkboxes, and the plugin writes the expressions for you. You can review them on the Expressions tab before deploying.

A service I use is being blocked. What do I do?

In Cloudflare, check Security > Analytics > Events to see which rule blocked it. Then allow it in Rule 1: turn on its bot category or service, or add its IP addresses (preferred, since user agents are easy to fake), user agent or a Custom Allow Expression, and deploy again.

Is my API token stored securely?

Credentials are encrypted at rest using libsodium (sodium_crypto_secretbox), with a key derived from your site's AUTH_KEY salt, so the key is unique to your site and is never stored in the database. Credentials are saved with autoload disabled and are never sent back to the browser. Use a scoped API Token with only the permissions listed above rather than your Global API Key.

I updated and some user agents moved. Why?

The October 2026 ruleset no longer allows services by user agent, because a user agent is easy to fake. Services Cloudflare verifies are covered by "Allow every Cloudflare verified bot", and services that publish their IP addresses have their own switch. Services that do neither, such as UpdraftPlus and BackupBuddy, were moved into Custom User Agents to Allow so nothing stops working, and a notice on the WAF Rules screen lists them.

Can I keep my credentials out of the database?

Yes. Define them in wp-config.php and the plugin uses them read-only: define( 'WPWAF_API_TOKEN', 'your-cloudflare-api-token' ); Or, with a Global API Key: define( 'WPWAF_API_EMAIL', 'you@example.com' ); define( 'WPWAF_API_KEY', 'your-global-api-key' );

What happens when I delete the plugin?

By default all plugin data is kept, which is safe for testing or temporary removal. To remove everything on delete, turn off "Keep data on uninstall" in Settings before deleting the plugin.

更新日志:

1.0.26 1.0.25 1.0.24.1 1.0.24 1.0.23 1.0.22 1.0.21