Cluster 15 · CCPA / CPRA GPC · /.well-known/gpc.json

/.well-known/gpc.json Generator & Sec-GPC: 1 HTTP Header Handler Guide

Publish a compliant /.well-known/gpc.json support resource and honor Sec-GPC: 1 HTTP headers plus navigator.globalPrivacyControl for CCPA/CPRA opt-out of sale/sharing.

100% Browser-Side · Zero User-Data Upload · Strict CSP

Compliance & Pre-Consent Control Specification

Control / Signal Compliant Baseline Engineering & Privacy Rationale
/.well-known/gpc.json HTTP 200 · application/json W3C GPC spec machine-readable declaration `{ "gpc": true, "lastUpdate": "YYYY-MM-DD" }`
Request Header Sec-GPC: 1 Sent by GPC-enabled browsers (Firefox, Brave, DuckDuckGo, extensions) on every HTTP request
DOM Property navigator.globalPrivacyControl === true Client-side boolean signal checked before loading ad pixels or sale/sharing tags
Cache Header Vary: Sec-GPC Prevent CDNs from caching a GPC-suppressed or non-GPC response across users

W3C /.well-known/gpc.json Manifest

gpc.json
{
  "gpc": true,
  "lastUpdate": "2026-12-02",
  "organization": "Acme Cloud Inc.",
  "domain": "acme.example.com",
  "privacyPolicy": "https://acme.example.com/privacy",
  "contact": "[email protected]"
}

Client + Edge Sec-GPC: 1 Suppression Snippet

gpc-handler.ts
// Browser check before initializing ad/retargeting SDKs
if (typeof navigator !== "undefined" && navigator.globalPrivacyControl === true) {
  window.gtag?.("consent", "default", {
    ad_storage: "denied",
    ad_user_data: "denied",
    ad_personalization: "denied"
  });
  window.fbq?.("consent", "revoke");
}

Implementation Steps & Key Insights

  1. Generate and host `/.well-known/gpc.json` with `"gpc": true`, ISO date `lastUpdate`, and HTTP `Content-Type: application/json; charset=utf-8`.
  2. Inspect `navigator.globalPrivacyControl === true` in your `<head>` consent bootstrap before loading any ad pixels.
  3. Handle server-side `Sec-GPC: 1` headers cleanly and add `Vary: Sec-GPC` when HTML varies by GPC state.
  4. Update your Privacy Policy & 'Your Privacy Choices' footer UI to display `Opt-Out Signal Honored` when GPC is detected.
  • California CPRA enforcement (including Sephora & DoorDash settlements) explicitly penalizes sites that ignore `navigator.globalPrivacyControl` / `Sec-GPC: 1`.
  • Publishing `/.well-known/gpc.json` lets automated privacy auditors and browser extensions verify your site honors GPC declarations.
  • Always include `Vary: Sec-GPC` on edge responses if server templates strip ad scripts conditionally.

Common Pre-Consent Pitfalls

  • Publishing `/.well-known/gpc.json` that returns HTML 404 or `text/html` fallback instead of `application/json`.
  • Setting `gpc: true` in `gpc.json` while still firing Meta Pixel / Google Ads remarketing when `navigator.globalPrivacyControl === true`.
  • Forgetting to suppress server-side Conversions API / CAPI forwarding when `Sec-GPC: 1` is sent.
Verify Live: Audit your production site on consent.runglab.dev or grab the $39 ConsentCheck Compliance Pack. Not legal advice.

More GDPR, Consent Mode v2 & GPC Implementation Guides

← Back to GDPR & Consent Mode v2 Hub · ConsentCheck Live Audit → · $39 Compliance Pack → · Cluster 4: Security Headers → · Cluster 11: PCI & SRI →

Frequently Asked Questions

Is `/.well-known/gpc.json` legally required under CCPA/CPRA?

Honoring the GPC browser signal (`Sec-GPC: 1` / `navigator.globalPrivacyControl`) is legally enforced under CPRA and several US state laws; hosting `/.well-known/gpc.json` is the W3C standard mechanism to declare GPC support publicly.

Does honoring GPC replace an EU GDPR cookie banner?

No. CCPA/CPRA is an opt-out regime where GPC satisfies opt-out of sale/sharing, whereas EU GDPR/ePrivacy requires affirmative opt-in consent before non-essential cookies/trackers fire.

Can ConsentCheck inspect my live `/.well-known/gpc.json` and `Sec-GPC` handling?

Yes — run a live scan at https://consent.runglab.dev/?ref=tool-consent-cluster to check your `/.well-known/gpc.json`, pre-consent cookies, and Consent Mode v2.