跳到正文
Skillpedia
安全75k · #3056

third-party-cookies

它能做什么

这项技能检查访客所在网站以外的域名设置了哪些 Cookie。适用于需要遵守隐私法规并减少追踪的网站所有者。

适用场景

  • ✓当网站加载的广告、分析或小组件会设置其他公司的 Cookie 的时候。
  • ✓当网站在开始追踪前没有 Cookie 同意步骤的时候。
  • ✓当你为 GDPR 或 CCPA 等隐私规则准备网站的时候。

技能链接

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/third-party-cookies/SKILL.md

复制后粘贴给你的 AI(Claude、ChatGPT 或 Cursor),让它按照说明操作。

使用方法

最简单的方法:复制下面的消息,粘贴给你的 AI。它会读取这个技能并按说明操作。

可直接粘贴的消息

请用这个技能帮我:https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/third-party-cookies/SKILL.md 阅读该链接中的 SKILL.md 文件,并在我的任务中按照它的说明来做。
想让你的 AI 自己找到这样的技能吗?安装免费的 Skillpedia MCP:只需一行,每次任务前它都会在 15,000+ 个技能中搜索。1 分钟完成安装 →

可以这样问 AI

“我的网站加载了很多外部脚本。请帮我检查哪些脚本会设置追踪 Cookie,以及是否需要用户同意。”

每周 5 个新技能,1 分钟读完。

工作原理

智能体会审查外部域名的 Cookie 和网络信息。然后它会建议删除不需要的脚本,或在它们设置 Cookie 之前征求用户同意。

技术内容(原始 SKILL.md)

作者在 GitHub 上的英文原文。

Avoid third-party cookies

Third-party cookies enable advertising networks to build detailed behavioral profiles of users across every site they visit — without users being aware. Regulatory penalties for non-compliance with GDPR reach up to 4% of global annual turnover.

Quick Reference

  • Third-party cookies are set by a domain other than the one the user is visiting — typically by ad networks, analytics, or embedded widgets
  • Chrome is removing third-party cookie support and all major browsers now block or restrict them
  • Use the Network DevTools panel to identify Set-Cookie headers from third-party domains
  • GDPR (EU), CCPA (California), and PECR (UK) require informed consent before setting non-essential cookies
  • Alternatives: first-party data collection, privacy-preserving analytics (Plausible, Fathom), server-side tracking

Check

Open the browser DevTools Network panel and Application panel (Cookies section). Identify all cookies set by domains other than the current domain. Check for tracking pixels, analytics scripts, and advertising tags that set cross-site cookies.

Fix

Audit and remove unnecessary third-party scripts. Replace cross-site tracking with privacy-preserving first-party analytics. Ensure any remaining third-party cookies are gated behind explicit user consent via a cookie consent mechanism.

Explain

Explain what third-party cookies are, how they enable cross-site tracking, why browsers are blocking them, and how GDPR/CCPA regulate their use.

Code Review

Review server config, headers, forms, and integration points related to Avoid third-party cookies. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response.


For full implementation details, code examples, and framework-specific guidance, see references/rule.md.

Rule page: https://frontendchecklist.io/rules/privacy/third-party-cookies

常见问题

什么是第三方 Cookie?

它是由访客所在网站以外的域名设置的 Cookie,通常来自广告网络或分析工具。

这与哪些隐私法律有关?

这项技能提到了欧盟的 GDPR、加州的 CCPA 以及英国的 PECR。

什么可以替代跨站追踪?

这项技能建议优先使用第一方数据、注重隐私的分析工具(例如 Plausible 或 Fathom),以及服务器端追踪。

详情

作者的原始描述

Use when reviewing a website for privacy compliance, third-party resource loading, or cookie consent implementation.

repo: thedaviddias/Front-End-Checklist

热度

GitHub 星标
75k
排名
#3056
许可证
MIT
更新时间
2026/10/31

这个技能有用吗?

0

登录 后即可投票。

评论

  • …

同一仓库的更多技能

相似技能