本文へ移動
cccskills
無料GitHub で公開

universal-opt-out

Universal opt-out mechanism implementation across US state privacy laws. Covers Global Privacy Control (GPC) signal technical implementation, state-by-state recognition requirements, browser detection methods, authenticated vs unauthenticated handling, and compliance testing.

インストール方法を見る

含まれるファイル(5)

  • SKILL.md8.9 KB
  • assets/template.md1.4 KB
  • references/standards.md2.4 KB
  • references/workflows.md4.3 KB
  • scripts/process.py10.5 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Universal Opt-Out Mechanism Implementation

Overview

A universal opt-out mechanism is a browser or device-level signal that communicates a consumer's privacy preferences to websites and online services. The Global Privacy Control (GPC) is the leading universal opt-out mechanism, supported by major browsers (Firefox, Brave, DuckDuckGo) and browser extensions (Privacy Badger, Disconnect). Multiple US state privacy laws now require businesses to recognize and honor these signals.

GPC is defined in the Global Privacy Control specification (published by the GPC project), transmitted via the Sec-GPC: 1 HTTP header and the navigator.globalPrivacyControl JavaScript API.

State-by-State Requirements

StateLawSignal RequiredEffective DateScope
CaliforniaCCPA/CPRAYesJan 1, 2023Sale + Sharing
ColoradoCPAYesJul 1, 2024Targeted ads + Sale
ConnecticutCTDPAYesJan 1, 2025Targeted ads + Sale
MontanaMTDPAYesOct 1, 2025Targeted ads + Sale
TexasTDPSANot requiredN/AN/A
VirginiaVCDPANot requiredN/AN/A
OregonOCPANot requiredN/AN/A
KentuckyKPPANot requiredN/AN/A

GPC Technical Specification

HTTP Header

Sec-GPC: 1

The Sec-GPC header is a structured header with a bare item value of 1 (true) or absent (no preference expressed). The Sec- prefix indicates it is a fetch metadata header set by the browser, not by JavaScript.

JavaScript API

navigator.globalPrivacyControl  // boolean: true or undefined

The navigator.globalPrivacyControl property returns true if the user has enabled GPC in their browser or extension, or undefined if GPC is not active.

Detection Code

function detectGPC() {
    // Check JavaScript API
    const jsGPC = navigator.globalPrivacyControl === true;

    // The HTTP header is checked server-side
    // This function covers client-side detection only

    return {
        gpcEnabled: jsGPC,
        timestamp: new Date().toISOString(),
        userAgent: navigator.userAgent,
    };
}

Server-Side Detection (Node.js/Express example)

function checkGPCHeader(req) {
    const gpcHeader = req.headers['sec-gpc'];
    return gpcHeader === '1';
}

app.use((req, res, next) => {
    if (checkGPCHeader(req)) {
        req.gpcOptOut = true;
        // Apply opt-out before rendering page
        res.locals.suppressThirdPartyTags = true;
        res.locals.suppressCrossSiteBehavioralAds = true;
    }
    next();
});

Implementation Architecture

Layer 1: Signal Detection

HTTP Request Arrives
  │
  ├─► Server-Side Check
  │     └─ Parse Sec-GPC header from request
  │
  ├─► Client-Side Check (for SPAs)
  │     └─ Read navigator.globalPrivacyControl
  │
  └─► Combined Result
        ├─ GPC detected = true → Apply opt-out
        └─ GPC not detected → Normal processing

Layer 2: Scope Determination

StateSale Opt-OutSharing Opt-OutTargeted Ads Opt-OutProfiling Opt-Out
CaliforniaYesYesImplied (sharing = cross-context behavioral ads)No (separate)
ColoradoYesN/AYesNo (separate)
ConnecticutYesN/AYesNo (separate)
MontanaYesN/AYesNo (separate)

Layer 3: Consumer Identity Resolution

Authenticated Consumer (logged in):

  • Associate GPC opt-out with consumer account
  • Set persistent flag: sale_opt_out = true, targeted_ads_opt_out = true
  • Override any prior opt-in (most recent preference per CO Rule 5.13)
  • Persist across sessions and devices (account-level)

Unauthenticated Consumer (not logged in):

  • Apply opt-out to current browsing session
  • Set first-party session cookie to maintain state during session
  • Apply on each new session when GPC signal is present
  • Do not require identity verification

Layer 4: Enforcement

Upon detecting GPC signal, the system must:

  1. Suppress third-party advertising tags before page render:

    • AdReach Network pixel — BLOCKED
    • Cross-context behavioral advertising tags — BLOCKED
    • Retargeting/remarketing pixels — BLOCKED
    • Social media tracking widgets — BLOCKED
  2. Allow first-party processing:

    • First-party analytics (where data stays with controller or service provider under contract)
    • Essential functionality cookies (session, cart, security)
    • Contextual advertising (based on current page content, not behavioral profile)
  3. Update server-side systems:

    • Data sharing pipeline: suppress outbound feeds to third-party ad partners
    • CMP state: update consent management platform to reflect opt-out
    • Consumer profile: flag account (if authenticated) for persistent opt-out

Compliance Rules by State

California (CPPA Regulations §7025)

  • §7025(a): Must process opt-out preference signals as valid opt-out requests
  • §7025(b): Two-step opt-out process prohibited
  • §7025(c): Must not require consumer to verify identity
  • §7025(d): Must not display pop-up or notification questioning the signal
  • §7025(e): If consumer not identifiable, apply to browser/device
  • §7025(f): If authenticated user has different prior setting, GPC takes precedence as most recent expression
  • Scope: Sale AND sharing (cross-context behavioral advertising)

Colorado (4 CCR 904-3, Rule 5.11)

  • Rule 5.10: Must recognize universal opt-out mechanisms
  • Rule 5.11: Must not display pop-up, interstitial, or other mechanism questioning signal
  • Rule 5.12: Authenticated = account-level; unauthenticated = session-level
  • Rule 5.13: Most recently expressed preference prevails on conflict
  • Rule 5.14: AG biennial review of recognized mechanisms
  • Scope: Targeted advertising AND sale
  • Requirement: Mechanism must be affirmatively selected by consumer (not default)

Connecticut (§42-520(a)(6))

  • Must recognize universal opt-out mechanisms starting January 1, 2025
  • Same principles as Colorado: no verification, no pop-ups
  • Scope: Targeted advertising AND sale

Montana (§30-14-2808(3))

  • Must recognize universal opt-out mechanisms starting October 1, 2025
  • Same principles as Colorado and Connecticut
  • Scope: Targeted advertising AND sale

Testing Protocol

Test 1: GPC Signal Detection

  • Install GPC-enabled browser (Brave, Firefox with GPC extension)
  • Visit website
  • Verify server logs show Sec-GPC: 1 header detected
  • Verify client-side navigator.globalPrivacyControl === true

Test 2: Tag Suppression

  • With GPC enabled: verify third-party advertising tags do NOT fire
  • Without GPC: verify third-party advertising tags fire normally
  • Inspect network requests to confirm suppression

Test 3: Authenticated vs. Unauthenticated

  • Visit with GPC while logged out: verify session-level opt-out
  • Log in with GPC: verify account-level opt-out persists
  • Log in without GPC after prior GPC opt-out: verify prior opt-out persists (account-level)

Test 4: No Pop-Up or Interstitial

  • Visit with GPC: verify no pop-up asks to confirm or modify signal
  • Verify consent banner does not override or question GPC signal

Test 5: Conflict Resolution

  • Set account preference to opt-in to sale/targeted ads
  • Visit with GPC enabled
  • Verify GPC takes precedence (opt-out applied)

Liberty Commerce Inc. Implementation

Technology stack: Consent management platform (CMP) with GPC signal handler, tag management system (TMS) with server-side control, privacy operations dashboard.

Architecture:

  1. Edge proxy detects Sec-GPC: 1 header on incoming requests
  2. Request metadata includes gpc_opt_out: true flag
  3. TMS evaluates flag before injecting any tags
  4. CMP state updated for session/account
  5. Server-side data sharing pipeline checks flag before transmitting to third parties
  6. Compliance dashboard reports GPC detection rates and opt-out volume

Key Regulatory References

  • CPPA Regulations §7025 — Opt-out preference signals
  • Colorado AG Regulations 4 CCR 904-3, Rule 5 — Universal opt-out mechanism
  • Conn. Gen. Stat. §42-520(a)(6) — Universal opt-out recognition
  • MCA §30-14-2808(3) — Universal opt-out recognition
  • Global Privacy Control Specification v1.0 (globalprivacycontrol.org)
  • W3C Community Group: GPC specification
  • In re Sephora Inc. (2022) — $1.2M settlement for failure to honor GPC

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Implements 42 CFR Part 2 protections for substance use disorder patient records. Covers written consent requirements stricter than HIPAA, re-disclosure prohibition, court order procedures, qualified service organization agreements, and 2024 amendments aligning Part 2 with HIPAA. Keywords: 42 CFR Part 2, substance use disorder, SUD records, re-disclosure, consent, Part 2 amendments.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Guides assessment of third-country adequacy decisions under GDPR Article 45 for international data transfers. Covers the current EC adequacy decisions list, adequacy assessment criteria, partial adequacy handling, and monitoring of adequacy decision reviews. Keywords: adequacy decision, Article 45, third country, adequate protection, EC adequacy list.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Implements age-gating mechanisms for online services to restrict access based on user age. Covers hard gates versus soft gates, neutral age prompts, re-verification triggers, circumvention prevention, and regulatory requirements under GDPR, COPPA, UK Online Safety Act, and DSA. Keywords: age gate, age restriction, neutral prompt, children, online services, access control.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Evaluates and implements age estimation and verification technologies for online services. Covers facial age estimation, digital ID verification, self-declaration with risk assessment, AI-based age estimation, and the accuracy versus privacy tradeoff. Includes ICO guidance and euCONSENT framework. Keywords: age verification, age estimation, facial analysis, digital ID, children, online safety.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Preparing EU AI Act compliance documentation for high-risk AI systems. Covers Annex III classification, technical documentation under Art. 11, conformity assessment, risk management systems, and CE marking requirements. Keywords: EU AI Act, high-risk AI, Annex III, conformity assessment, CE marking.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

Implements GDPR Art. 22 automated decision-making and AI Act Art. 14 human oversight requirements for AI systems. Covers identification of solely automated decisions, meaningful human intervention design, logic explanation mechanisms, and contestation procedures. Keywords: Art. 22, automated decision, human oversight, AI Act, profiling, contestation.

日本語の概要は準備中です。原文の説明を表示しています。

mukul975/Privacy-Data-Protection-Skills3032026年3月17日 更新

mukul975 のスキルをすべて見る

このスキルの問題を報告する