# ConsentCheck by RungLab

> Instant **GDPR, ePrivacy, CCPA GPC & Google Consent Mode v2 Auditor** + **$39 Fix Pack** (6 production-ready HTML, TypeScript edge middleware, GPC JSON, Cookie Policy, CI Python & remediation summary files).

ConsentCheck audits any public website URL via an SSRF-hardened Cloudflare Worker (`<= 14` subrequests, fail-closed DoH IP checks blocking private/NAT64/IPv4-mapped/IMDS ranges, 4.5s timeout, 512 KiB HTML cap, max 4 redirects) or analyzes pasted HTML, `Set-Cookie` lines & `gpc.json` with **zero outbound requests** (`POST /api/audit-html`).

## Endpoints & Product
- [ConsentCheck Web App](https://consent.runglab.dev/): Live URL scanner, Paste HTML mode, Consent Mode v2 & GPC Lab simulator, Before->After `$39` Fix Pack uplift card & 6-file sample pack preview modal
- [API Health](https://consent-api.runglab.dev/health): `{ ok: true, service: "consentcheck-api", version: "1.0.0" }`
- [Live Audit API (GET)](https://consent-api.runglab.dev/api/audit?url=https://stripe.com): Returns 0..100 readiness score, Grade `A+..F`, 6 checks, findings `CC-001..CC-009`, and `beforeAfterPreview`
- [Paste HTML Audit API (POST)](https://consent-api.runglab.dev/api/audit-html): Zero-network analysis accepting `{ url?, html, setCookies?, gpcJson?, rawHeaders? }`
- [ConsentCheck $39 6-File Fix Pack (Creem)](https://www.creem.io/product/prod_1IMYBd0F6lWg0s2YWn3epm): One-time `$39` pack (`consent-mode-v2-head.html`, `cookie-security-middleware.ts`, `gpc.json`, `cookie-policy.md`, `ci-consent-audit.py`, `REMEDIATION_SUMMARY.md`)

## 100-Point Privacy & Consent Rubric (6 Deterministic Checks)
- **Check 1 — Google Consent Mode v2 (25 pts)**: Detects GA4 (`gtag`), GTM (`gtm.js`), Google Ads (`AW-`, `doubleclick`) and verifies all 4 v2 defaults (`ad_storage`, `analytics_storage`, `ad_user_data`, `ad_personalization`) are `'denied'` before tags fire.
- **Check 2 — Pre-Consent Tracker Gating (25 pts)**: Inspects Meta, LinkedIn, TikTok, HubSpot, Intercom, Segment, PostHog, Mixpanel, Hotjar, Clarity, Amplitude, FullStory, Heap, Criteo, Taboola, Twitter/X, Bing & Google tags for `type="text/plain"`, `data-cookieconsent`, `data-consent` (excluding `data-ot-ignore`) + CMP detection + privacy-first cookieless recognition (Plausible, Fathom, Umami, Simple Analytics).
- **Check 3 — Pre-Consent `Set-Cookie` Hygiene (20 pts)**: Flags pre-consent tracking cookies (`_ga`, `_gid`, `_fbp`, `_fbc`, `_gcl_au`, `hubspotutk`, `ajs_anonymous_id`, `_hjSession`, `_clck`, `_ttp`, `li_gc`, `MUID`) and checks `Secure`, `SameSite`, `HttpOnly`.
- **Check 4 — CCPA Global Privacy Control `/.well-known/gpc.json` (10 pts)**: Live fetch verifying HTTP 200 JSON with `gpc: true`.
- **Check 5 — Privacy / Cookie Policy & Opt-Out Links (10 pts)**: Checks HTML links for Privacy Policy, Cookie Policy / Cookie Settings, and `"Your Privacy Choices"` / `"Do Not Sell"` opt-out links.
- **Check 6 — Privacy Transport & Referrer Hygiene (10 pts)**: Checks HTTPS, strong HSTS, strict `Referrer-Policy`, and `Permissions-Policy`.

## RungLab Ecosystem
- [RungLab Home](https://runglab.dev): Developer security & compliance suite
- [CheckoutShield PCI](https://pci.runglab.dev): PCI DSS v4.0.1 Req 6.4.3 & 11.6.1 payment-page auditor
- [AIAct50 Ready](https://ai50.runglab.dev): EU AI Act Article 50 transparency & provenance auditor
- [TrustCenter Lite](https://trust.runglab.dev): B2B SOC 2 Lite trust page & procurement readiness auditor
- [WebhookSLA Guard](https://webhook.runglab.dev): B2B API & webhook HMAC-SHA256 / RateLimit auditor
- [RungLab GDPR Consent Mode v2 Generator](https://tools.runglab.dev/gdpr-consent-mode-v2/): Free client-side Consent Mode v2 helper
- [Support & PayPal Invoice Fallback](mailto:support@runglab.dev?subject=ConsentCheck%20%2439%20Fix%20Pack%20Order): PayPal invoice upon delivery & fulfillment support

## Machine-Readable Discovery & Docs
- [Documentation & Quickstart](https://consent.runglab.dev/docs): cURL, TypeScript & Python examples (`https://consent.runglab.dev/sdk`)
- [Pricing & Quotas](https://consent.runglab.dev/pricing): USD pricing & rate limits (`https://consent.runglab.dev/api/pricing`)
- [AGENTS.md](https://consent.runglab.dev/AGENTS.md) · [MCP Discovery](https://consent.runglab.dev/.well-known/mcp.json) · [AgentHermes](https://consent.runglab.dev/.well-known/agent-hermes.json)
- [OpenAPI 3.1](https://consent.runglab.dev/openapi.json) · [Auth Policy](https://consent.runglab.dev/auth.md) · [Status](https://consent.runglab.dev/status) · [SLA](https://consent.runglab.dev/sla) · [Support](https://consent.runglab.dev/support)
