Skillpedia
الأمان75k · #2788

cookie-consent

ما الذي تفعله

تتحقق هذه المهارة من أن الموقع يطلب الموافقة قبل وضع ملفات تعريف الارتباط غير الضرورية، مثل وسوم التحليلات أو الإعلانات. وهي موجهة إلى أصحاب المواقع الذين يجب أن يلتزموا بقواعد الخصوصية في أماكن مثل الاتحاد الأوروبي.

متى تستخدمها

  • ✓عندما يضع موقعك ملفات تعريف ارتباط للتحليلات أو الإعلانات لزوار من الاتحاد الأوروبي.
  • ✓عندما تُحمَّل سكربتات التتبع قبل أن يوافق الزائر.
  • ✓عندما تحتاج إلى طريقة يغيّر بها الزوار اختيارهم أو يسحبونه.

رابط المهارة

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

انسخه والصقه في الذكاء الاصطناعي الذي تستخدمه (Claude أو ChatGPT أو Cursor) واطلب منه اتباع التعليمات.

طريقة الاستخدام

أسهل طريقة: انسخ الرسالة والصقها في الذكاء الاصطناعي الذي تستخدمه. سيقرأ المهارة وينفّذ تعليماتها.

رسالة جاهزة للصق

استخدم هذه المهارة لمساعدتي: https://github.com/thedaviddias/Front-End-Checklist/blob/main/skills/cookie-consent/SKILL.md اقرأ ملف SKILL.md في هذا الرابط ونفّذ تعليماته لمهمتي.
تريد أن يجد الذكاء الاصطناعي مهارات مثل هذه بنفسه؟ثبّت خادم Skillpedia MCP المجاني: سطر واحد، ويبحث في 15,000+ مهارة قبل كل مهمة.ثبّته في دقيقة واحدة →

مثال على ما تطلبه من الذكاء الاصطناعي

“أضف إلى موقعي شريط ملفات تعريف الارتباط يحجب التحليلات حتى يضغط الزوار على قبول.”

5 مهارات جديدة كل أسبوع. قراءة في دقيقة واحدة.

كيف تعمل

يتحقق الوكيل من أن السكربتات غير الضرورية تبقى محجوبة حتى يقبل الزائر تلك الفئة، ويضيف طريقة لتغيير التفضيلات لاحقًا، عادة عبر أداة موافقة.

المحتوى التقني (ملف SKILL.md الأصلي)

النص الأصلي من المؤلف، مباشرة من GitHub.

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

الأسئلة الشائعة

أي ملفات تعريف الارتباط لا تحتاج إلى موافقة؟

ملفات الضرورة القصوى، مثل ملفات الجلسة والأمان وتسجيل الدخول.

هل يُعد المربع المحدد مسبقًا موافقة؟

لا. تقول المهارة إن المربعات المحددة مسبقًا ليست موافقة صالحة.

كم يمكن أن تبلغ غرامات GDPR؟

تذكر المهارة أنها قد تصل إلى 20 مليون يورو أو 4 بالمئة من الإيرادات السنوية العالمية.

التفاصيل

الوصف الأصلي من المؤلف

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

الشعبية

نجوم GitHub
75k
الترتيب
#2788
الترخيص
MIT
آخر تحديث
31‏/10‏/2026

هل هذه المهارة مفيدة؟

0

سجّل الدخول للتصويت.

التعليقات

  • …

المزيد من المهارات من هذا المستودع

مهارات مشابهة