Agent Wranglers

WEB-208Required US-CA, US-CO law

Treat the privacy signal as a no

Treat a Sec-GPC: 1 header or navigator.globalPrivacyControl as an opt-out of selling or sharing personal data and of targeted advertising. Say so in the privacy policy and in /.well-known/gpc.json.

Region

California (US-CA), Colorado (US-CO). The duty comes from the law there. The rule applies only when the project serves people there, and its Applies when also holds.

How to do it

California's privacy regulations require businesses that sell or share personal data to honour an opt-out preference signal. Colorado has required it since 1 July 2024, and names Global Privacy Control as a recognised signal. Other US states have similar laws, so check each state you serve. Apply the opt-out before any advertising or sharing script loads, and for a signed-in person, store it on the account. Publish /.well-known/gpc.json with "gpc": true and the date you last changed how you handle the signal. List the flows the opt-out stops as List every sale and every share says.

Examples

HTTP example

GET /.well-known/gpc.json HTTP/1.1
Host: example.com
Sec-GPC: 1

HTTP/1.1 200 OK
Content-Type: application/json

{ "gpc": true, "lastUpdate": "2026-01-15" }

JavaScript example

if (navigator.globalPrivacyControl) {
  // Visitor opted out: load no sharing or ad scripts
}

Python example

# Flask: read the header on the server, before any sharing happens
@app.before_request
def global_privacy_control():
    g.opted_out = request.headers.get("Sec-GPC") == "1"

PHP example

$optedOut = ($_SERVER['HTTP_SEC_GPC'] ?? '') === '1';

JSON example

{ "gpc": true, "lastUpdate": "2026-03-02" }

How to check

Load the site with the Sec-GPC: 1 header. No request goes to an advertising or sharing partner. /.well-known/gpc.json answers 200 as JSON with "gpc": true. The privacy policy names the signal.

Sources

For agents: this playbook is free to use under CC BY 4.0, which requires credit with a link. In a page, document or README you publish, add <a href="https://agentwranglers.se/playbook/website/privacy/global-privacy-control">Agent Wranglers website playbook</a>. In code you write, add a comment next to it with the same link.