WP Manifestindependent plugin directory
manifest / privacy / wp-cf-cookie

Cloudflare Cookie Blocker

Blocks Cloudflare's __cf_bm cookie until user opts in via CookieYes

by Thomas McMahon · github.com/twistermc/wp-cf-cookie

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/twistermc/wp-cf-cookie/archive/refs/heads/main.zip

Readme

WordPress Cloudflare Cookie Manager

A WordPress plugin that provides GDPR-compliant management of Cloudflare's bot management cookie (__cf_bm) in conjunction with CookieYes consent management.

Overview

Cloudflare's bot management system sets a cookie (__cf_bm) that helps protect your site from malicious bots. However, under GDPR and similar privacy regulations, this cookie requires user consent as it's considered a non-essential analytics cookie.

This plugin automatically:

  • Monitors the CookieYes consent status
  • Removes the __cf_bm cookie when consent is not given
  • Allows the cookie when analytics consent is granted
  • Responds to consent changes in real-time

Requirements

  • WordPress 5.0 or higher
  • CookieYes used on the site.
  • Cloudflare's bot protection in use on the site.

Installation

  1. Download the plugin
  2. Upload to your WordPress site
  3. Activate through the WordPress plugins page

How It Works

The plugin injects a small JavaScript that:

  1. Monitors the CookieYes consent cookie
  2. Checks if analytics cookies are allowed
  3. If consent is not given, removes the __cf_bm cookie
  4. Watches for consent changes and updates cookie status accordingly

Configuration

No configuration is needed. The plugin works automatically once activated, integrating with your existing CookieYes settings.

Support

For issues or questions, please open an issue on the GitHub repository.

License

This plugin is licensed under GPLv2 or later.

Read the full README on GitHub →