Drupal is a registered trademark of Dries Buytaert
drupal 11.3.7 Update released for Drupal core (11.3.7)! drupal 11.2.11 Update released for Drupal core (11.2.11)! drupal 10.6.7 Update released for Drupal core (10.6.7)! drupal 10.5.9 Update released for Drupal core (10.5.9)! cms 2.1.1 Update released for Drupal core (2.1.1)! drupal 11.3.6 Update released for Drupal core (11.3.6)! drupal 10.6.6 Update released for Drupal core (10.6.6)! cms 2.1.0 Update released for Drupal core (2.1.0)! bootstrap 8.x-3.40 Minor update available for theme bootstrap (8.x-3.40). menu_link_attributes 8.x-1.7 Minor update available for module menu_link_attributes (8.x-1.7). eca 3.1.1 Minor update available for module eca (3.1.1). layout_paragraphs 2.1.3 Minor update available for module layout_paragraphs (2.1.3). ai 1.3.3 Minor update available for module ai (1.3.3). ai 1.2.14 Minor update available for module ai (1.2.14). node_revision_delete 2.0.3 Minor update available for module node_revision_delete (2.0.3). moderated_content_bulk_publish 2.0.52 Minor update available for module moderated_content_bulk_publish (2.0.52). klaro 3.0.10 Minor update available for module klaro (3.0.10). klaro 3.0.9 Minor update available for module klaro (3.0.9). layout_paragraphs 2.1.2 Minor update available for module layout_paragraphs (2.1.2). geofield_map 11.1.8 Minor update available for module geofield_map (11.1.8).

cookie_content_blocker

526 sites Security covered
View on drupal.org

This module will help you prevent the loading of specific parts and related scripts of a page until consent for placing Cookies and related technologies is given. This module is primarily intended to support compliance with the GDPR.

Unlike similar modules, Cookie Content Blocker prevents the rendering of specific content and scripts at server level instead of removing it after it was already rendered on the client side. This way we can guarantee that no tracking or cookies can be placed before consent is given.

A client-side approach for injecting the consented content is chosen to be able to provide out-of-the-box compatibility with external caching systems like Varnish.

This module provides:

  1. An API to block content that should not be displayed before the user gives consent
  2. Integration with Core Media and OEmbed to block third party content, like YouTube or Vimeo
  3. Integration with Core CKEditor to help editors block (third party) content

Example:

Usages

Some examples of parts of your site content that should potentially be blocked until consent is given because they may leak personal data and/or allow cross site/device tracking:

  • (Google) Maps,
  • (Facebook/Twitter, AddThis, AddToAny, etc.) social share buttons,
  • (Youtube/Vimeo) video's
  • Webfonts,
  • .. all other kinds of third party scripts, pixels or embedded content.

With this module you won't need a complete Cookie wall, but is designed to integrate well with Cookie Manager like Cookiebot or EU Cookie Compliance Blocked parts of your content will dynamically be loaded and shown only after giving consent. No page refresh is needed and no additional calls are made to the back-end.

Documentation

Please read the documentation to further your understanding on how to use the Cookie Content Blocker module and it's submodule(s).

Activity

Total releases
7
First release
Dec 2024
Latest release
1 month ago
Release cadence
76 days
Stability
71% stable

Release Timeline

Releases

Version Type Release date
2.x-dev Dev Mar 3, 2026
2.6.x-dev Dev Feb 27, 2026
2.6.1 Stable Dec 20, 2025
2.6.0 Stable Nov 11, 2025
2.5.0 Stable May 22, 2025
2.4.2 Stable Jan 22, 2025
2.4.1 Stable Dec 5, 2024