🔥 Black Friday Sale: Get 65% OFF Any PageForge Pro Plan! Use code BF65 Claim Offer →
Compte Get it free
COOKR – Cookie Consent & Script Blocking icon
Activement maintenu Testé avec WP 7.1

COOKR – Cookie Consent & Script Blocking

GDPR cookie consent with server-side script blocking. Prevent Google Analytics, GTM, Meta Pixel and third-party embeds from loading before consent.

Installations actives<10Nouveau
Téléchargements · 30D147▲ +30.1% vs prev. 30d
Évaluation—0 avis
Score de santé64/100Bon
Téléchargements de tous les temps870Depuis mai 2026
Support résolu—Aucun fil de discussion récent
A besoin deWP 6.2PHP 7.4+
Téléchargements · 7j74▲ +174.1% week over week
Notre verdict

Choix solide

COOKR is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 5 days ago, and scores 64/100 on our health check.

  • Développé activement — Dernière mise à jour il y a 5 jours
  • Testé avec le dernier WordPress (7.1)
  • Petite base d'utilisateurs (<10 installations actives)
  • Très peu de critiques jusqu'à présent

Comment s'accumule-t-il ?

Côte à côte sur les installations, les mises à jour, les évaluations et le support

Téléchargements quotidiens

163248Sep 5Oct 19Dec 3
Hier1
Moyenne quotidienne (1 ans)5
Jour de pointe6417 Septembre 2026
12 Derniers mois872

Les pics de téléchargement suivent généralement une nouvelle version - chaque site qui met à jour automatiquement compte comme un téléchargement.

Classements

Where COOKR stands today

WordPress.org Classements de recherche

Position en direct dans la recherche de plugins, Top 100
Mot-cléPositionPlugins concurrentsCatégorie
consentement >100 5,027 Meilleurs plugins de consentement →
Bannière de biscuit >100 1,641 Meilleurs plugins de bannières de cookies →
GDPR >100 4,285 Meilleurs plugins RGPD →
Mode de consentement Google >100 1,460 Meilleurs plugins de mode de consentement Google →
intimité >100 10,000 Meilleurs plugins de confidentialité →

About COOKR – Cookie Consent & Script Blocking

From the official readme · v1.9.35

Description

GDPR cookie consent with real script blocking.

Block Google Analytics, Google Tag Manager, Meta Pixel, Hotjar, YouTube embeds, and other third-party services before they reach the browser.

Unlike JavaScript-based consent tools, blocked scripts never reach the browser at all.

Most cookie consent plugins display a banner and rely on JavaScript to stop tracking scripts. In many cases, those scripts can begin loading before the visitor has made a choice.

COOKR takes a different approach.

Scripts are blocked server-side before page delivery. Third-party services cannot execute until consent is explicitly granted. This helps website owners meet GDPR and TTDSG requirements more reliably.

Avoids the client-side race conditions common to JavaScript-only consent tools. No script guessing. No “hope it loads in time.”

Consent enforcement instead of consent theatre.

✓ Server-side script blocking — blocked before the browser receives them
✓ Google Consent Mode v2 support
✓ No external consent cloud
✓ No proxy infrastructure
✓ No visitor data sent to third parties
✓ Works entirely on your WordPress installation

Built for site owners, agencies, and developers who want real GDPR cookie consent enforcement.

COOKR CORE includes:

  • Consent banner & preferences UI
  • Server-side script interception via PHP output buffer
  • Auto-Blocker for third-party scripts and iframes
  • Runtime Inspector
  • CSP-aware restoration with nonce propagation
  • Google Prise en charge du mode de consentement v2
  • Full JavaScript API (window.cookrConsent)
  • Compatibility Center — live enforcement status plus a tested-stack matrix with honest VERIFIED/PARTIAL/UNKNOWN/FAILED states
  • Automatic optimizer exclusions — LiteSpeed, WP Rocket, Autoptimize, FlyingPress
  • Self-hosted operation — no external services required

COOKR RADR additionally includes:

  • Privacy Radar — runtime detection and classification of third-party services
  • Enforcement Verification Framework — structured protocol for proving enforcement claims
  • Curated signature database with automatic weekly updates

Comment cela fonctionne

COOKR intercepts scripts in the PHP output buffer using WP_HTML_Tag_Processor before delivery to the browser. Matching script and iframe tags are neutralised server-side and restored only after the visitor grants consent.

There is no client-side race condition because blocking happens before the browser receives the page.

Reliability

Your consent choices are applied precisely — analytics, marketing, and external media are gated independently, with no mixups between categories. You can withdraw consent at any time; it takes effect starting with your next page load.

COOKR is safe to use with page caching. The server-rendered HTML is always consent-neutral — a cached page never carries one visitor’s consent-based content into another visitor’s response.

If COOKR encounters an internal enforcement failure, it fails closed rather than silently serving unblocked trackers.

Scope of Enforcement

COOKR blocks known trackers that are present in the server-rendered HTML as standard external <script src> or <iframe> elements, before the visitor’s browser ever receives them.

It does not intercept arbitrary JavaScript behaviour at runtime. This includes: scripts and iframes created dynamically after page load, document.write()-based script injection, and tracker requests proxied through a first-party URL — COOKR matches known third-party hostnames, so a same-origin proxy path is invisible to that classification regardless of what it forwards to server-side.

One consequence worth knowing specifically: once a tag manager such as Google Tag Manager is itself permitted to run (its own <script src> was consented to and restored), whatever tags that container subsequently injects at runtime are outside COOKR’s enforcement scope. Configuring consent-aware tag firing inside the tag manager itself remains the site owner’s responsibility.

These are architectural limits of a server-side, markup-level blocker, not partial results. If your site loads trackers through any of the paths above, COOKR will not enforce consent on them — migrate them to standard external <script src>/<iframe> markup to bring them into scope.

Auto-Blocker

Enable in Settings. Off by default.

When enabled, COOKR rewrites matching script tags and iframe tags server-side — setting type="text/plain" and preserving original attributes in data-cookr-* attributes for restoration after consent.

Test after enabling when using WP Rocket, LiteSpeed Cache, NitroPack, or Cloudflare Rocket Loader.

Runtime Inspector

The Runtime Inspector exposes third-party runtime activity directly in the browser — blocked scripts, restored services, iframe activity, detected domains.

Enable in Settings. Append ?cookr_debug=1 to any frontend URL while logged in as administrator.

Compatibilité

COOKR is verified compatible with WP Rocket and Autoptimize. It is partially verified with LiteSpeed Cache — see the Compatibility Center for exactly which parts are confirmed. For other caching and optimization plugins, check your own site’s Compatibility Center before assuming full compatibility.

CSP-aware

COOKR never sends its own Content-Security-Policy header. It supports strict Content-Security-Policy setups without requiring unsafe-inline, provided your CSP layer supplies a nonce through the cookr_csp_nonce filter.

If your site runs a nonce-based script-src policy, hook the cookr_csp_nonce filter once with the nonce your CSP layer already generates for the response:

add_filter( 'cookr_csp_nonce', function () { return my_csp_plugin_get_nonce(); } );

COOKR then applies that single nonce consistently to its own scripts and to every dynamically-restored, consented tracker script. Without a hooked cookr_csp_nonce provider, COOKR’s own scripts and any restored tracker scripts will be blocked by a strict script-src policy with no 'unsafe-inline' — the Diagnostics self-test reports this explicitly (CSP nonce: pass/warn) rather than silently assuming it works.

Developer JS API

cookrConsent.has('analytics')
cookrConsent.require('marketing', callback)
cookrConsent.whenConsented('analytics').then(fn)
cookrConsent.on('consent' | 'change' | 'decline' | 'reset', handler)
cookrConsent.off(event, handler)
cookrConsent.getConsent()
cookrConsent.getExpiry()
cookrConsent.categories()
cookrConsent.reset()

Consent Categories

  • Necessary — Always active.
  • Analytics — GA, GTM, Matomo, Hotjar, Clarity, etc.
  • Marketing — Meta Pixel, Google Ads, TikTok, LinkedIn, etc.
  • External Media — YouTube, Vimeo, Google Maps, etc.

Does COOKR require an external cloud service?

No. COOKR runs entirely on your WordPress installation.

Does visitor consent data leave the server?

No. Consent data is stored locally on your site.

Is the Auto-Blocker enabled by default?

No. Enable and test it after installation, particularly when using caching or JavaScript optimization plugins.

Which services can be blocked?

Any third-party script or iframe matching configured domains, when present in the server-rendered page as a standard external <script src> or <iframe> element. Examples: Google Tag Manager, Meta Pixel, YouTube embeds, TikTok Analytics.

What about tags Google Tag Manager loads on its own?

COOKR gates GTM’s own <script src> load — GTM itself will not run before consent. Once a visitor consents and GTM is restored, tags that GTM subsequently injects at runtime are outside COOKR’s enforcement scope; that’s a tag manager configuration question, not something a markup-level blocker can see. See “Scope of Enforcement” above for the full picture.

Does COOKR support Google Consent Mode v2?

Yes. Enable in settings when using GTM or GA4.

How do I inspect runtime activity?

Enable the Runtime Inspector in settings and append ?cookr_debug=1 to any frontend URL while logged in as administrator.

Does COOKR store personal data?

The consent log stores a hashed IP (not the raw IP address), consent choices, and a timestamp. The raw IP address is never stored.

Is COOKR compatible with strict CSP?

Yes, if your site’s CSP layer supplies a nonce. COOKR does not generate or send its own CSP, and it cannot see a nonce your CSP-generating plugin creates unless you connect the two: hook the cookr_csp_nonce filter once to return that nonce. COOKR then applies it consistently to its own scripts and to every dynamically-restored, consented tracker script. Without that filter hooked, a strict script-src policy with no 'unsafe-inline' will block COOKR’s own scripts as well as any restored trackers — check Settings → Diagnostics, which reports the CSP nonce check explicitly rather than assuming success.

Will COOKR work with caching plugins such as LiteSpeed Cache, WP Rocket, or Cloudflare?

Yes, but always test after enabling script optimization features such as JavaScript combine, defer, delay, or Rocket Loader. COOKR performs script blocking server-side, but aggressive optimization plugins may alter script delivery and should be verified on your site.

COOKR automatically excludes itself and the tracker scripts it blocks from LiteSpeed Cache, WP Rocket, Autoptimize, and FlyingPress’s JavaScript optimization pipelines — no configuration required. Check the Compatibility Center (COOKR → Compatibility) for the current tested/verified status of your specific stack.

Does COOKR require HTTPS?

Yes. COOKR requires HTTPS for consent state to persist correctly across page loads. Modern browsers restrict cookie behaviour on HTTP origins — on HTTP, the consent cookie may not persist, causing the banner to reappear on every page load. HTTPS is also a legal recommendation under GDPR for any site collecting consent.

What WordPress version is required?

WordPress 6.2 or higher. COOKR uses WP_HTML_Tag_Processor for safe, attribute-aware script rewriting, introduced in WP 6.2.

Services externes

This plugin does not connect to any external service by default.

The auto-blocker contains a built-in list of known third-party domains (such as googletagmanager.com, connect.facebook.net, maps.googleapis.com, etc.) that is used purely as a local reference to identify and block scripts before consent. No data is sent to these domains by this plugin — the list is pattern-matching data stored locally in the plugin code.

Journal de modifications

Patch release. Fixes LiteSpeed Cache JS Combine compatibility issue that could prevent the consent banner from rendering. Adds automatic optimizer exclusions for LiteSpeed, WP Rocket, Autoptimize, and FlyingPress.

1.9.35

  • Added: optional per-site wording for the four consent categories (Necessary, Analytics/Statistics, Marketing, External media) — a label and a description each, under Settings > Texts > “Consent categories”. Empty fields keep COOKR’s built-in language defaults, so existing installations render exactly as before; nothing site-specific is hard-coded in the plugin.
  • New regression test (tests/test-category-text-overrides.php): the new options are sanitised and reach cookrConfig.textOverrides; with nothing set every override is empty; the built-in category defaults in cookr.js are unchanged.
  • Compatibility: tested with WordPress 7.2-RC3 and 7.1.5 on PHP 7.4, 8.2 and 8.6 (activation, consent banner, accept/decline/individual choices, script blocking and activation, REST endpoints, administration, Runtime Inspector, upgrade from 1.9.33) with debugging enabled: no warnings, notices or deprecations. No code changes were needed. “Tested up to” is now declared only in this readme (the duplicate in the plugin header was removed, as the official Plugin Check requires).

1.9.34

  • Privacy/accuracy fix: the server-rendered Google Consent Mode v2 default state (gtag('consent','default',...), fired in <head> before GTM/GA4 loads) used to read the visitor’s own consent cookie and bake the resulting granted/denied state directly into that server-rendered output. Any full-page cache that captured a response generated for an already-consented visitor — a site owner’s own browser, an accessibility-remediation cache, WP Rocket, LiteSpeed, ESI, or any future one — froze that visitor’s “granted” state into the cached HTML and served it to every subsequent visitor, including ones with no cookie at all. Found live on an install using a third-party accessibility plugin’s full-page HTML cache: fresh, cookie-less visitors were served a cached “granted” default with nothing to correct it, since the client-side restore path (cookr.js‘s init()) only fires a correcting update when it independently finds a stored consent cookie for the current visitor. Fixed by always emitting “denied” server-side, identically for every request, regardless of any existing cookie — safe to cache by construction, no cache needs to vary by cookie for this output. Restoring a real returning visitor’s actual consent remains entirely cookr.js‘s job via a genuine update event on page load, which was already correct and needed no change.
  • Fixed: the same default-state block was accidentally duplicated verbatim in the admin-only includes file, registered on the same wp_enqueue_scripts hook at the same priority — meaning the default consent script ran twice on every single front-end page load. Removed the duplicate; the real logic lives only in the main plugin file.
  • New regression test (tests/test-gcm-default-cache-safe.php): asserts the emitted default is “denied” for every signal and byte-identical across a no-cookie, a fully-granted-cookie, a denied-cookie, and a malformed-cookie scenario.

1.9.33

  • Docs: added a “Reliability” section (consent accuracy, cache safety, fail-safe enforcement) and a “Compatibility” section (named only where the Compatibility Center currently supports the claim — WP Rocket and Autoptimize verified, LiteSpeed Cache explicitly partial). Tightened the CSP-aware section’s opening sentence to put the cookr_csp_nonce requirement up front rather than reading as automatic. No functional changes — every claim added here already has a corresponding live Compatibility Center status, per this week’s trust-testing program.

1.9.32

  • Added: Compatibility Center now includes an “Enforcement Fail-Safe” check — verifies the fail-closed fallback mechanism (added in the enforcement rearchitecture) is present and correctly wired on this installation, and reports any recorded fallback events. This is the check that licenses the product claim that COOKR never silently serves unblocked trackers on an internal failure. Also adds an informational “Update channel” row (CORE: confirms updates flow through WP.org as usual; RADR: reports the update-service’s reachability — this never affects the main enforcement status, by design).

1.9.31

  • Fixed: cookr_fallback_events (enforcement fail-closed fallback history, introduced in 1.9.30) was missing from the uninstall cleanup list — an orphaned option left behind on a full uninstall with “preserve data” off. Found during upgrade-safety testing.

1.9.30

  • Security/privacy fix: COOKR’s enforcement now fails closed instead of open. Previously, if the script/iframe rewrite pass threw for any reason (a plugin conflict, an edge case in the HTML parser, a future bug), COOKR served the original, completely unblocked page to every visitor — including ones with zero consent — with no visible signal beyond a debug-log line gated behind WP_DEBUG_LOG (off by default in production). Found via a controlled failure test, confirmed live. Replaced with a three-stage chain: the normal rewrite, an independent emergency fallback that conservatively neutralises every cross-origin <script>/<iframe> (deliberately not reusing the classifier or parser that may have just failed), and — if even that fails — a minimal privacy-safe response with zero third-party resources instead of the original page. The Runtime Inspector’s own scanning is now strictly best-effort and can never affect enforcement. A persistent, WP_DEBUG-independent admin notice and a new Diagnostics check surface if this fallback is ever triggered.

Journal des modifications complet sur WordPress.org →

Captures d'écran

COOKR – Cookie Consent & Script Blocking screenshot
COOKR – Cookie Consent & Script Blocking screenshot
COOKR – Cookie Consent & Script Blocking screenshot
COOKR – Cookie Consent & Script Blocking screenshot
COOKR – Cookie Consent & Script Blocking screenshot
COOKR – Cookie Consent & Script Blocking screenshot
COOKR – Cookie Consent & Script Blocking screenshot

Pour les développeurs

Est-ce votre plugin ? Montrez les chiffres.

Ajoutez un badge en direct à votre site, docs ou github readme. Il se met à jour par lui-même - aucun compte n'est nécessaire.

Badge d'installations actives Badge Badge de score de santé

Best COOKR alternatives

All consent plugins →
Alternatives
Rang Plugin Installations actives Évaluation Mise à jour Santé
1 CookieAdmin – Bannière de consentement aux cookies CookieAdmin – Bannière de consentement aux cookies CookieAdmin fournit une bannière de consentement aux cookies facile à configurer avec le RGPD, le CCPA et l'Inde… par Softaculous 400K+ ★★★★★★★★★★ 5 (3) il y a 7 jours 77
2 Consentement WP API Consentement WP API Consentement simple API Pour lire et enregistrer la catégorie de consentement actuelle. par Rogier Lankhorst 300K+ ★★★★★★★★★★ 5 (2) Il ya 3 jours 76
3 TermesFeed AutoTerms : générateur de politique de confidentialité, consentement aux cookies, RGPD, CCPA, Conditions générales de vente, Disclaimer, Politique de cookies, CLUF TermesFeed AutoTerms : générateur de politique de confidentialité, Cookie Conse… Solution de conformité tout-en-un de TermsFeed : générateur de politique de confidentialité, T&CS, affilié… par TermesFeed 70K+ ★★★★★★★★★★ 4.7 (246) Il y a 2 mois 75
4 Asesor de Cookies RGPD para normativa europea Asesor de Cookies RGPD para normativa europea Gestiona el consentimiento de cookies con banner, inventario, scripts por categoría y… by cdoral 20K+ ★★★★★★★★★★ 3.9 (59) il y a 4 jours 74
5 Consentement des cookies de Pressidium Consentement des cookies de Pressidium Bannière légère, conviviale et personnalisable de consentement aux cookies pour vous aider à respecter… par pressidium 10K+ ★★★★★★★★★★ 4.7 (41) il y a 1 mois 74
6 Cookie Bar Cookie Bar Cookie Bar allows you to discreetly inform visitors that your website uses cookies. by Brontobytes 10K+ ★★★★★★★★★★ 4.9 (23) il y a 4 mois 64
7 Cookie-script.com Cookie-script.com Cookie-script.com WordPress plugin. par Csarturas 10K+ ★★★★★★★★★★ 3.1 (14) il y a 1 mois 61
8 Axeptio – Cookie Banner – GDPR Consent & Compliance with a friendly touch Axeptio Axeptio | GDPR Cookie Banner - An Immersive Compliance Experience by Axeptio 8K+ ★★★★★★★★★★ 5 (4) Il y a 3 mois 64
9 Gestionnaire de cookies FAZ Gestionnaire de cookies FAZ Free cookie consent with GDPR, CCPA, ePrivacy, Google Consent Mode v2, IAB TCF v2.3, and… by fabiodalez 3K+ ★★★★★★★★★★ 5 (31) Il y a 2 semaines 86
10 Designil PDPA Thailand Designil PDPA Thailand Popup สำหรับขอ Consent ที่รองรับความต้องการของ PDPA มีระบบจัดการคุกกี้อย่างเป็นระบบ… by Aum Watcharapon 2K+ ★★★★★★★★★★ Aucun avis Il y a 6 mois 50

FAQ

COOKR: quick answers

Réponses directes, extraites des données en direct WordPress.org.

Source : WordPress.org

Is COOKR free?

Yes. COOKR is free to download and use from the official WordPress.org plugin directory.

Is COOKR safe to use in 2026?

COOKR is a solid plugin choice in 2026, with a few things worth checking first. Was last updated 5 days ago, and scores 64/100 on our health check.

How many websites use COOKR?

COOKR is active on <10 WordPress websites and has been downloaded 870 times since it launched in May 2026. It was downloaded 147 times in the last 30 days.

Does COOKR work with WordPress 7.1?

Yes. The developer has tested COOKR up to WordPress 7.2, the latest release. It requires WordPress 6.2 or newer.

What PHP version does COOKR need?

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

When was COOKR last updated?

The latest version, 1.9.35, was released on November 29, 2026 (5 days ago).

Who makes COOKR?

COOKR is developed and maintained by danjed.

What are the best alternatives to COOKR?

The most popular alternatives to COOKR are CookieAdmin (400K+ installs), WP Consent API (300K+ installs) and TermsFeed AutoTerms: Privac… (70K+ installs).

Propulsé par PageForge

Un modèle et une feuille de calcul. Une vraie page pour chaque recherche.

PageForge transforme chaque ligne d'un CSV en une page WordPress avec son propre titre, URL, SEO et schéma, construit sur la mise en page que vous Déjà conçu. Gratuit sur WordPress.org.

  • CSV et XLSX, plus Google Sheets sur les professionnels et les entreprises
  • Son propre titre, URL, SEO champs et schéma pour chaque page
  • Fonctionne avec l'éditeur de blocs, Elementor, Divi et Avada
  • Gratuit sur WordPress.org, pas de carte de crédit

↑↓ bouger↵ ouvrir