global-privacy-control
БесплатноЗапускает вложенные скриптыНе проверенImplementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e). Covers Sec-GPC HTTP header detection, JavaScript…
от onfire7777★ 17 звёзд на GitHubОб этом скилле
Implementing Global Privacy Control (GPC)
Overview
Global Privacy Control (GPC) is a browser-level signal that communicates a user's privacy preference to opt out of the sale or sharing of their personal information. The GPC specification defines both an HTTP header (Sec-GPC: 1) and a JavaScript API (navigator.globalPrivacyControl) for transmitting this signal.
Under California Privacy Rights Act (CPRA) Section 1798.135(e), businesses must treat GPC signals as valid opt-out requests. The California Attorney General confirmed this enforcement position in the Sephora settlement (August 2022, $1.2 million fine), which was the first enforcement action involving GPC signals.
Legal Requirements by State
California — CPRA (effective January 1, 2023)
- Section 1798.135(e): A business that collects consumers' personal information shall treat the consumer's use of an opt-out preference signal as a valid request to opt out of sale/sharing under Section 1798.120.
- AG Regulation 11 CCR 7025(b): If a business collects personal information from consumers online, the business shall treat an opt-out preference signal as a valid request to opt-out of sale/sharing for that browser or device and any consumer profile associated with that browser or device.
- Sephora Settlement (August 2022): California AG fined Sephora $1.2 million for failing to honor GPC signals, among other violations.
Colorado — Colorado Privacy Act (CPA, effective July 1, 2024)
- Section 6-1-1306(1)(a)(IV)(A): Consumers may exercise the right to opt out through an opt-out preference signal sent by a platform, technology, or mechanism on behalf of the consumer, to the extent technically feasible.
- CPA Rules 4.6: Controllers must recognize universal opt-out mechanisms by July 1, 2024.
Connecticut — Connecticut Data Privacy Act (CTDPA, effective July 1, 2023)
- Section 42-520(b)(5): Beginning January 1, 2025, controllers must recognize universal opt-out mechanisms for the sale of personal data and targeted advertising.
Montana — Montana Consumer Data Privacy Act (effective October 1, 2024)
- Section 30-14-2807: Controllers must recognize opt-out preference signals as valid opt-out requests for the sale of personal data and targeted advertising.
Texas — Texas Data Privacy and Security Act (TDPSA, effective July 1, 2024)
- Section 541.055: Controllers must allow consumers to opt out of the sale of personal data and targeted advertising. Universal opt-out mechanisms must be honored beginning January 1, 2025.
Oregon — Oregon Consumer Privacy Act (effective July 1, 2024)
- Section 646A.578: Controllers shall provide a method by which consumers can opt out that includes recognition of opt-out preference signals.
GPC Technical Specification
HTTP Header Detection
The GPC signal is transmitted as an HTTP request header:
Sec-GPC: 1
This header is set by the browser (or browser extension) on every HTTP request when the user has enabled GPC. The header is absent (not set to 0) when GPC is not enabled.
JavaScript API Detection
The GPC signal is also available via the JavaScript DOM API:
// Check if GPC is supported and enabled
if (navigator.globalPrivacyControl === true) {
// User has opted out — do not sell/share personal information
// Do not load non-essential tracking scripts
// Set internal opt-out flag for this user
}
Key considerations:
navigator.globalPrivacyControlreturnstruewhen GPC is enablednavigator.globalPrivacyControlreturnsfalseorundefinedwhen GPC is not enabled or not supported- Check should occur before loading any tracking or advertising scripts
Server-Side Detection (HTTP Header)
On the server side, check for the Sec-GPC header in incoming requests:
If Sec-GPC header is present AND equals "1":
→ Set opt-out flag for this session/user
→ Do not initiate sale or sharing of personal information
→ Do not load third-party tracking pixels
→ Log GPC signal receipt for compliance records
Implementation Architecture at CloudVault SaaS Inc.
Client-Side Detection
CloudVault SaaS Inc. checks GPC at two points:
Page Load: Before initializing any analytics or advertising SDKs, check
navigator.globalPrivacyControl. Iftrue, suppress non-essential tracking.Consent Banner Interaction: If GPC is detected, pre-select the "Opt Out of Sale/Sharing" option in the cookie consent banner and display a notice: "We detected your Global Privacy Control signal. Your opt-out preference has been applied."
Server-Side Processing
The CloudVault SaaS Inc. backend middleware:
- Inspects every incoming HTTP request for the
Sec-GPC: 1header. - If detected, sets a session-level flag
gpc_opt_out = true. - If the request is associated with an authenticated user, propagates the opt-out to the user's consent record for applicable purposes (sale/sha
Установить global-privacy-control в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл global-privacy-control?
Implementation guide for Global Privacy Control (GPC) automated opt-out signal per CPRA Section 1798.135(e). Covers Sec-GPC HTTP header detection, JavaScript navigator.globalPrivacyControl API, and state-specific requirements for CA, CO, CT, MT, TX, and OR. Includes server-side detection code and compliance mapping.
Как установить скилл global-privacy-control?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл global-privacy-control запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic