Cloudflare Cookie Blocker
Blocks Cloudflare's __cf_bm cookie until user opts in via CookieYes
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.zipReadme
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
- Download the plugin
- Upload to your WordPress site
- Activate through the WordPress plugins page
How It Works
The plugin injects a small JavaScript that:
- Monitors the CookieYes consent cookie
- Checks if analytics cookies are allowed
- If consent is not given, removes the __cf_bm cookie
- 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.