Website Spec
← Privacy
Recommended

Global Privacy Control (GPC)

Global Privacy Control is a browser-level signal that tells websites the user opts out of the sale or sharing of their personal data. California and Colorado require sites to honour it.

What it is

Global Privacy Control (GPC) is a simple machine-readable signal that a user — through their browser, an extension, or a privacy-focused tool like DuckDuckGo or Brave — broadcasts to every site they visit. It says: I do not want my personal data sold or shared.

The signal is sent two ways:

Both are read-only and trivial to detect server-side or client-side.

Why it matters

Under the California Consumer Privacy Act (CCPA/CPRA), the California Attorney General has confirmed that GPC is a valid opt-out signal that businesses must honour. Enforcement has followed — Sephora paid \$1.2 million in 2022 in part for failing to process GPC signals. The Colorado Privacy Act explicitly lists GPC-style universal opt-out mechanisms as a required path from July 2024 onward. Connecticut and several other states have followed.

GPC does not replace cookie banners under EU law, because the EU regime is opt-in rather than opt-out. But it is a strong privacy signal everywhere, and respecting it costs almost nothing.

How to implement

Detect the signal on every request:

// Client-side
if (navigator.globalPrivacyControl) {
  // user has opted out
}
# Server-side (any language)
if request.headers.get("Sec-GPC") == "1":
    opt_out = True

When the signal is present:

For sites that serve both EU and US users, GPC should be treated as one of several inputs alongside cookie consent and any in-product privacy settings. The strictest preference wins.

Common mistakes

Sources