🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Account Get it free
Bypass Guard for Cloudflare icon
Actively maintained Tested with WP 7.1 #75 in cloudflare

Bypass Guard for Cloudflare

Blocks requests that bypass Cloudflare by requiring a secret token header. For hosts that offer no stronger origin protection.

Active installs10+10+ tier
Downloads · 30d97▼ -77.1% vs prev. 30d
Rating—0 reviews
Health score62/100Good
All-time downloads513Since Oct 2026
Support resolved—No recent threads
RequiresWP 6.2PHP 7.4+
Downloads · 7d19▼ -38.7% week over week
Our verdict

Solid choice

Bypass Guard for Cloudflare is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 months ago, and scores 62/100 on our health check.

  • Tested with the latest WordPress (7.1)
  • Small user base (10+ active installs)
  • Very few reviews so far

How does it stack up?

Side-by-side on installs, updates, ratings & support

Daily downloads

4590135Oct 5Nov 3Dec 3
Yesterday1
Daily average (1y)9
Peak day181Oct 6, 2026
Last 12 months521

Download spikes usually follow a new release — each site that auto-updates counts as a download.

Rankings

Where Bypass Guard for Cloudflare stands today

WordPress.org search rankings

Live position in the plugin search, top 100
KeywordPositionCompeting pluginsCategory
cloudflare >100 2,973 Best cloudflare plugins →
firewall >100 1,508 Best firewall plugins →
header >100 10,000 Best header plugins →
Origin >100 2,061 Best Origin plugins →
security >100 10,000 Best security plugins →

Version adoption

Share of active sites per release.

  • 1.0100.0%

About Bypass Guard for Cloudflare

From the official readme · v1.0.0

Description

The problem

Cloudflare protects your site only for traffic that goes through Cloudflare. If your server’s IP address leaks, attackers can send requests to it directly and skip Cloudflare’s protection entirely. The usual fixes require server or firewall access, which shared hosting providers often don’t give you.

The solution

Bypass Guard uses a shared secret to tell proxied traffic from direct traffic:

  1. The plugin generates a random secret token.
  2. You add a rule in Cloudflare that attaches this token to every request it forwards, in a header called BYPASS-GUARD-TOKEN.
  3. The plugin checks each WordPress request. If the header is missing or wrong, the request is answered with 403 Forbidden.

Because the header is added at Cloudflare’s edge, a request that hits the origin directly arrives without it, unless the sender already knows the token.

Built-in safety against locking yourself out

  • The filter cannot be switched on until the plugin has seen at least one request carrying the correct token. This proves your Cloudflare rule works before anything gets blocked.
  • Until then, the settings page shows a step by step setup guide with copy buttons for the header name and token.
  • WP-CLI commands are never filtered, so you always keep command line access.
  • Deactivating the plugin always switches the filter off.

Logging

Every blocked request is logged with its date and time, IP address, request method, URL and user agent. You can view and clear the log on the settings page. This helps you confirm that the filter works, spot scanners that found your server’s IP, and find legitimate services that were blocked by mistake.

The log keeps the 500 most recent entries, so a flood of requests cannot fill your database. Token values are never logged, not even incorrect ones.

The logged IP address is the one that actually connected to your server. Headers such as CF-Connecting-IP or X-Forwarded-For are ignored for blocked requests, because anyone bypassing Cloudflare can set them to any value.

Is this plugin right for you?

This plugin is a fallback for when better options are not available. Check with your host whether you can use either of these first:

  • Authenticated Origin Pulls (mutual TLS): your web server only accepts connections that present Cloudflare’s client certificate.
  • A firewall that only allows Cloudflare’s IP ranges: your server refuses connections from anywhere else.

Both work at the server or network level, protect everything (including images and cached pages) and do not depend on a shared secret. Many shared hosting plans allow neither, and that is the situation this plugin is built for. You can also use it alongside them as an extra layer.

Limitations

The plugin runs inside WordPress, so it only sees requests that WordPress itself handles:

  • Static files (images, CSS, JavaScript, uploads) are usually served directly by the web server and stay reachable.
  • Page caches that run before plugins load are not filtered. This includes caching plugins using an advanced-cache.php drop-in and server-level caches such as LiteSpeed Cache, Varnish or nginx FastCGI cache. Cached pages may still be served to direct requests.
  • The token is a shared secret. Anyone who learns it can get past the filter. It is visible to site administrators, to anyone with database access and to anyone with access to your Cloudflare account.

If you can edit your server configuration or .htaccess file, checking the same header there as well closes the first two gaps.

Source code and contributions

Bypass Guard for Cloudflare is developed openly on GitHub. Bug reports, feature requests and pull requests are welcome:

https://github.com/agabor/bypass-guard-for-cloudflare

Disclaimer

Bypass Guard for Cloudflare is an independent open source project. It is not affiliated with, endorsed by or supported by Cloudflare, Inc. “Cloudflare” is a trademark of Cloudflare, Inc. and is used here only to describe the service this plugin works with. No Cloudflare logos, artwork or documentation are included in this plugin.

Installation

Before you start

Make sure that:

  • Your site’s DNS records are proxied in Cloudflare (orange cloud icon). DNS-only records send traffic straight to your server, so the header would never be added.
  • Your SSL/TLS encryption mode is Full (strict). In Flexible mode Cloudflare talks to your server over plain HTTP, which would send the token unencrypted with every request.
  • You have FTP, SFTP, file manager or WP-CLI access to your site, in case you need to disable the plugin manually (see the FAQ).

Step 1: Install the plugin

Install and activate it from the Plugins screen, or upload the bypass-guard-for-cloudflare folder to /wp-content/plugins/ and activate it. Then open Settings → Bypass Guard. You will see the header name and your generated token, each with a Copy button.

Step 2: Add the header in Cloudflare

Create a Request Header Transform Rule for your site that sets a static header on all incoming requests:

  • Header name: BYPASS-GUARD-TOKEN
  • Value: the token from the settings page

At the time of writing, you find this in the Cloudflare dashboard by opening your site (zone), going to Rules → Overview and choosing Create rule → Request Header Transform Rule. Give the rule any name, set the match condition to All incoming requests, choose Set static under the header modification, fill in the two values above and select Deploy. Cloudflare occasionally reorganises its dashboard; if these menu names do not match, look for “Transform Rules” in Cloudflare’s own documentation.

Step 3: Confirm detection

Reload the plugin’s settings page through your normal domain. Once a request with the correct token arrives, the Header Status changes to Detected and the Enable Filter button becomes available.

Step 4: Enable the filter and test it

Select Enable Filter. Then check that direct access is blocked by sending a request straight to your server’s IP address. For example, from a terminal:

curl -k -I --resolve example.com:443:203.0.113.10 https://example.com/

Replace example.com with your domain and 203.0.113.10 with your server’s real IP. The response should be 403 Forbidden, and the request should appear in the plugin’s log.

Changelog

Initial release.

1.0.0

  • Initial release.
  • Token generation, header detection and request filtering.
  • Token regeneration while the filter is disabled.
  • Built-in setup guide with copy buttons for the header name and token.
  • Logging of blocked requests, limited to the 500 most recent entries.

Full changelog on WordPress.org →

For developers

Is this your plugin? Show off the numbers.

Add a live badge to your site, docs or GitHub README. It updates on its own — no account needed.

Active installs badge Rating badge Health score badge

Best Bypass Guard for Cloudflare alternatives

All cloudflare plugins →
Alternatives
Rank Plugin Active installs Rating Updated Health
1 Simple CAPTCHA with Cloudflare Turnstile Simple CAPTCHA with Cloudflare Turnstile Add Cloudflare Turnstile to WordPress, WooCommerce, Contact Forms & more. The… by Elliot Sowersby / RelyWP 200K+ ★★★★★★★★★★ 4.7 (267) 2 weeks ago 90
2 Cloudflare Cloudflare All of Cloudflare’s performance and security benefits in a simple one-click install. by Cloudflare 200K+ ★★★★★★★★★★ 3.5 (181) 2 months ago 70
3 Flexible SSL for CloudFlare Flexible SSL for CloudFlare Fix For Redirect Loops on WordPress with CloudFlare's Flexible/Universal SSL. by Paul 100K+ ★★★★★★★★★★ 4.8 (51) 3 weeks ago 91
4 Super Page Cache – Cloudflare Cache, Page Speed & Core Web Vitals Super Page Cache Boost PageSpeed, SEO, and Core Web Vitals with full page caching, JS/CSS optimization… by Optimole 70K+ ★★★★★★★★★★ 4.8 (522) 2 weeks ago 93
5 Login Security Captcha Login Security Captcha Secure WordPress login, registration, and comment form with Google reCAPTCHA or Cloudflare… by ScriptsTown 10K+ ★★★★★★★★★★ 4.9 (20) 1 week ago 90
6 RunCache – Full-Page, Object, and Edge Caching RunCache – Full-Page, Object, and Edge Caching The free WordPress caching plugin: server-level full page cache on NGINX, Apache or… by RunCloud 4K+ ★★★★★★★★★★ No reviews 2 weeks ago 61
7 Cloudflare SSL by Weslink Cloudflare SSL by Weslink Plugin to enable CloudFlare Flexible SSL for Wordpress and to prevent the Redirect Loop by Christofer Weßeling 2K+ ★★★★★★★★★★ 5 (6) 8 years ago 40
8 App for Cloudflare® App for Cloudflare® All things Cloudflare (caching, flexible SSL, Turnstile, settings, rules, analytics, media… by digitalpoint 1K+ ★★★★★★★★★★ 4.7 (14) 3 weeks ago 85
9 Servebolt Optimizer Servebolt Optimizer This plugin implements Servebolt's WordPress best practices, and connects your site to the… by Servebolt 1K+ ★★★★★★★★★★ 5 (5) 5 months ago 67
10 GeoTargeting Lite – WordPress Geolocation GeoTargeting Lite – WordPress Geolocation GeoTargeting for WordPress will let you country-target your content based on users IP's and… by Damian 1K+ ★★★★★★★★★★ 3.9 (32) 4 years ago 39

FAQ

Bypass Guard for Cloudflare: quick answers

Straight answers, pulled from live WordPress.org data.

Source: WordPress.org

Is Bypass Guard for Cloudflare free?

Yes. Bypass Guard for Cloudflare is free to download and use from the official WordPress.org plugin directory.

Is Bypass Guard for Cloudflare safe to use in 2026?

Bypass Guard for Cloudflare is a solid plugin choice in 2026, with a few things worth checking first. It runs on 10+ sites and was last updated 2 months ago, and scores 62/100 on our health check.

How many websites use Bypass Guard for Cloudflare?

Bypass Guard for Cloudflare is active on 10+ WordPress websites and has been downloaded 513 times since it launched in October 2026. It was downloaded 97 times in the last 30 days.

Does Bypass Guard for Cloudflare work with WordPress 7.1?

Yes. The developer has tested Bypass Guard for Cloudflare up to WordPress 7.1.5, the latest release. It requires WordPress 6.2 or newer.

What PHP version does Bypass Guard for Cloudflare need?

Bypass Guard for Cloudflare requires PHP 7.4 or higher. Most hosts run PHP 8.x today, so it works on any modern WordPress hosting.

When was Bypass Guard for Cloudflare last updated?

The latest version, 1.0.0, was released on October 5, 2026 (2 months ago).

Who makes Bypass Guard for Cloudflare?

Bypass Guard for Cloudflare is developed and maintained by Gabor Angyal.

What are the best alternatives to Bypass Guard for Cloudflare?

The most popular alternatives to Bypass Guard for Cloudflare are Simple CAPTCHA with Cloudfl… (200K+ installs), Cloudflare (200K+ installs) and Flexible SSL for CloudFlare (100K+ installs).

Powered by PageForge

One template and a spreadsheet. A real page for every search.

PageForge turns each row of a CSV into a WordPress page with its own title, URL, SEO fields and schema, built on the layout you already designed. Free on WordPress.org.

  • CSV and XLSX, plus Google Sheets on Professional and Enterprise
  • Its own title, URL, SEO fields and schema for every page
  • Works with the block editor, Elementor, Divi and Avada
  • Free on WordPress.org, no credit card

↑↓ to move↵ to open