Chuyển đến nội dung
Skillpedia
Bảo mật75k · #2788

cookie-consent

Skill này làm gì

Skill này kiểm tra xem website có xin đồng ý trước khi đặt cookie không thiết yếu, như thẻ phân tích hoặc quảng cáo hay không. Skill dành cho chủ website phải tuân thủ quy định bảo mật ở những nơi như EU.

Khi nào nên dùng

  • ✓Khi website đặt cookie phân tích hoặc quảng cáo cho người xem ở EU.
  • ✓Khi script theo dõi được tải trước khi người xem đồng ý.
  • ✓Khi bạn cần cách để người xem thay đổi hoặc rút lại lựa chọn của họ.

Liên kết skill

https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/cookie-consent/SKILL.md

Sao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.

Cách dùng

Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.

Tin nhắn có sẵn để dán

Hãy dùng skill này để giúp tôi: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/cookie-consent/SKILL.md Đọc tệp SKILL.md tại liên kết đó và làm theo hướng dẫn cho việc của tôi.
Bạn muốn AI tự tìm những skill như thế này?Cài MCP Skillpedia miễn phí: chỉ một dòng, và AI sẽ tìm trong 15.000+ skill trước mỗi việc.Cài đặt trong 1 phút →

Ví dụ cách nhờ AI

“Hãy thêm banner cookie vào website của tôi để chặn phân tích cho đến khi người xem nhấn chấp nhận.”

5 skill mới mỗi tuần. Đọc chỉ 1 phút.

Cách hoạt động

Agent kiểm tra các script không thiết yếu vẫn bị chặn cho đến khi người xem chấp nhận nhóm đó, và thêm cách thay đổi tùy chọn sau này, thường qua một công cụ quản lý đồng ý.

Nội dung kỹ thuật (SKILL.md gốc)

Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.

Show a cookie consent notice

GDPR violations can result in fines up to €20 million or 4% of global annual turnover. Regulators across the EU have actively fined organizations for deploying tracking cookies without valid consent.

Quick Reference

  • GDPR requires consent before setting non-essential cookies (analytics, advertising, personalization)
  • Essential/strictly necessary cookies (session, security, login) do not require consent
  • Consent must be freely given, specific, informed, and unambiguous — pre-ticked boxes are invalid
  • Users must be able to withdraw consent as easily as they gave it
  • Scripts and pixels must not load until the user has actively accepted their category
  • Non-essential trackers must stay blocked until consent and after revocation

Check

Check whether the site displays a cookie consent notice before setting non-essential cookies. Verify that analytics, advertising, and tracking scripts do not load until the user has actively accepted. Check whether users can reject non-essential cookies without losing access to content.

Fix

Implement a cookie consent management platform (CMP) that blocks non-essential scripts until consent is granted. Configure analytics and tracking tags to initialize only after explicit consent. Provide a mechanism for users to change their consent preferences at any time.

Explain

Explain what GDPR requires for cookie consent, the difference between essential and non-essential cookies, why pre-ticked boxes are invalid consent, and what a technically compliant consent implementation looks like.

Code Review

Review server config, headers, forms, and integration points related to Show a cookie consent notice. Flag exact responses, cookies, or browser behaviors that violate the rule, and verify them against the effective production-like response. Check that tracker initialization is gated on consent and that a persistent "change cookie settings" path exists after the banner is gone.


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

Rule page: https://frontendchecklist.io/rules/privacy/cookie-consent

Câu hỏi thường gặp

Những cookie nào không cần đồng ý?

Cookie thiết yếu tuyệt đối, như cookie cho phiên, bảo mật và đăng nhập.

Ô được chọn sẵn có được coi là đồng ý không?

Không. Skill nói ô được chọn sẵn không phải là sự đồng ý hợp lệ.

Tiền phạt GDPR có thể lớn đến mức nào?

Skill lưu ý có thể lên tới 20 triệu euro hoặc 4 phần trăm doanh thu toàn cầu hằng năm.

Chi tiết

Mô tả gốc của tác giả

Use when reviewing a website for GDPR/CCPA compliance, specifically whether cookie consent is obtained before non-essential cookies are set.

repo: thedaviddias/Front-End-Checklist

Độ phổ biến

Sao GitHub
75k
Vị trí xếp hạng
#2788
Giấy phép
MIT
Cập nhật
31/10/2026

Skill này có hữu ích không?

0

Đăng nhập để bình chọn.

Bình luận

  • …

Thêm skill từ kho mã này

Skill tương tự