This project is not covered by Drupal’s security advisory policy.
Global Privacy Control will make a Drupal site honor the Global Privacy Control (GPC) opt-out signal. For visitors whose browser sends it, the services you mark as selling, sharing or targeted advertising stay off in Klaro, EU Cookie Compliance or COOKiES, and Google Consent Mode's advertising signals are denied.
Status: No release yet. The module is under active development; the first beta follows once its automated test suite and an independent review pass.
This module is developed with AI assistance. The maintainer reviews and tests every release before publishing it.
Planned for 1.0
About a dozen US states' privacy laws require businesses to honor the signal, and California's Opt Me Out Act requires browsers to offer an opt-out preference signal from 1 January 2027. None of this is released yet. The first release will provide:
Detection that keeps pages cacheable
- Detection in the browser (
navigator.globalPrivacyControl). Pages are not varied on theSec-GPCrequest header, so cached pages stay shared. - A server-side helper for the places that must read the signal on the server, which adds the right cache context when it is used.
Consent managers
- Adapters, as submodules, for Klaro, EU Cookie Compliance and COOKiES. In each, you choose which of that library's configured services or categories count as sale, sharing or targeted advertising.
- For GPC visitors those services are denied, and stay denied when the visitor clicks "Accept all". A site can choose instead to allow explicit opt-in to one service at a time, after a notice.
- Adapters designed so that each could be offered to its consent manager as a merge request.
Signals and notices
- A Google Consent Mode v2 update that denies
ad_storage,ad_user_dataandad_personalization. - An optional "Opt-out preference signal honored" notice, as California's regulations call for, with configurable text and placement.
/.well-known/gpc.json, as the GPC specification describes, when enabled.
The module helps a site act on the signal. Whether a site meets a particular law is a question for its own legal advice.
Requirements
Planned for the first release:
- Drupal 11.3 or later, or Drupal 12.
- PHP 8.3 or later.
- For the adapters, one or more of Klaro Cookie & Consent Management, EU Cookie Compliance and COOKiES Consent Management. Each adapter needs its consent manager installed.
Installation
Installation instructions arrive with the first release. For the first beta, the commands will be:
composer require 'drupal/global_privacy_control:^1.0@beta' drush en global_privacy_control
Configuration and permissions
Not final yet. This section will list each settings page and each permission, by its real label, with the first release.
The settings will let you choose, for each installed consent manager, which of its own configured services count as sale, sharing or targeted advertising.
Similar projects
Checked on drupal.org in November 2026.
- Klaro Cookie & Consent Management (the consent manager in Drupal CMS), EU Cookie Compliance and COOKiES Consent Management are the consent managers this module works with, not alternatives to it. Their latest releases, checked in November 2026, contain no GPC handling. If your consent manager adds GPC support itself, use that.
- Global Privacy Control JSON file serves
/.well-known/gpc.jsonand nothing else. It has only a development release, for Drupal 9 and 10. - Google Tag and Klaro's Consent Mode services already set Google Consent Mode defaults. This module only changes the advertising signals for visitors who send GPC.
Support and maintenance
Report bugs, ask for features and comment on the planned scope in the issue queue. Each release will have notes describing what changed.
This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.
A read-only mirror is on GitHub at DanePete/drupal-global-privacy-control. It will mirror the drupal.org repository once code is published there; development and issues stay on drupal.org.
Maintainer
Created and maintained by deadnorth (Dead North).
Project information
- Project categories: Integrations, Security
- Created by deadnorth on , updated
This project is not covered by the security advisory policy.
Use at your own risk! It may have publicly disclosed vulnerabilities.
