Cookie Blocking | Consenta Cookie Consent

WordPress Cookie Blocking — 3 Layers

Block cookies reliably on 3 layers: document.cookie override, HTTP header filtering and MutationObserver for scripts and iframes. No consent — no cookie.

14-day money-back · Cancel anytime · GDPR-compliant · Local in WordPress

Consenta WordPress Cookie Consent Dashboard
FLASH SALE — NOCHFLASH SALE — --:--:-- Agency Lifetime — 149 € 499 € Agency Lifetime — 149 € 499 € Jetzt sichern →Get the deal →
3
Blocking layers
100%
GDPR-compliant
0
Cookies without consent
500+
Known cookie domains

What is Cookie Blocking?

Cookie Blocking prevents cookies from being set before the user has actively consented. Consenta blocks on 3 layers simultaneously: JavaScript document.cookie is overridden, HTTP Set-Cookie headers are filtered, and a MutationObserver removes scripts and iframes in real time.

Features

3 Layers of Cookie Blocking

document.cookie Override

Overrides the native document.cookie setter so cookies are only written after explicit consent.

HTTP-Header-Filterung

Filters Set-Cookie headers at server level via Service Worker, preventing server-side cookies without consent.

MutationObserver

Monitors the DOM in real time and removes scripts and iframes that would set cookies without consent.

Service Worker

Intercepts all fetch(), XHR, beacon and dynamic import requests at the network level. Blocks requests to non-consented third-party domains with HTTP 451. Activates automatically in full consent mode.

Domain-Blocking

Completely blocks requests to known tracking domains until the user consents to the respective category.

Wildcard-Support

Supports wildcard patterns like *.google-analytics.com for flexible domain rules.

How it works

Cookie Blocking in 3 Steps

1

Activate cookies

Define in the Consenta dashboard which cookies your website sets and which services are behind them.

2

Assign domains

Assign each cookie domain to a consent category: Essential, Functional, Statistics, Marketing, External or Social.

3

Choose mode

Choose between strict blocking (no cookie without consent) or optional mode with fallback behavior.

Consenta vs. Others

Why Consenta Cookie Blocking?

Feature Consenta Other plugins
document.cookie override
HTTP header filtering
MutationObserver partial
Service Worker
Wildcard domains
Local in WordPress
Pricing

Subscribe monthly or pay once.

🔥 FLASH SALE — --:--:--
Agency Lifetime — 499 € 149 €
All Agency features, unlimited sites, no further costs.
Get Lifetime
Monthly Yearly 3 months free
STARTER
Starter
3
/month
cancel monthly · 1 WordPress site
27
/year
2.25 €/mo · 3 months free
  • 1 WordPress site
  • Consent dialog & banner
  • Cookie & script blocking
  • Cookie scanner
  • Google Consent Mode v2
  • IAB TCF 2.0
  • GPC signal (Do Not Sell)
  • Live editor (colors, logo)
  • Import/export
  • Email support
Buy now

Cancel anytime

AGENCY & FREELANCER
Agency
12
/month
cancel monthly · unlimited sites
108
/year
9 €/mo · 3 months free
  • Unlimited WordPress sites
  • Everything in Pro
  • Multi-site central dashboard
  • REST API access
  • Branded reports
  • Custom consent texts
  • Dedicated support
  • + White-Label Addon from 20 €/month · available separately
Start Agency

Cancel anytime · 14-day money back

FAQ

Questions about Cookie Blocking

Are all cookies really blocked?
Yes. Consenta blocks on 3 layers simultaneously — document.cookie, HTTP headers and DOM injection. No cookie is set without explicit consent.
Does this work with Google Analytics?
Yes. Google Analytics, Facebook Pixel, Hotjar and all common tracking tools are automatically blocked until the user consents.
What happens when the user declines?
All non-essential cookies and scripts remain blocked. Only technically necessary cookies are set.
Can I add custom domains?
Yes. You can define any domains and wildcard patterns and assign them to a consent category.
Consent Dialog Cookie Banner Consent Widget Google Consent Mode v2 IAB TCF Cookie Scanner Consent Logs Geolocation Multi-Site White-Label A/B Testing Statistics Per-Service Consent WooCommerce WCAG 2.1 AA Auto-Scan Multi-Language REST API Consent Proof IP Anonymisation Gutenberg Block CMP Import Consent History Service Worker Blocking CCPA / CPRA CSV Export RTL Support WP Privacy Tools PDF Export HMAC Consent Cookie GDPR Compliant All Features

No Cookie Without Consent.

3 blocking layers · document.cookie override · MutationObserver · Service Worker · GDPR-compliant

Get started — from 3 €/mo All features

14-day money-back guarantee · Cancel anytime · Available in 30+ languages