Cookie Scanner
Analyze websites for cookies and assess compliance.
Understanding Website Cookies
Cookies are small text files that websites store on your device to remember information about you. They're essential for modern web functionality but also raise privacy concerns.
Types of Cookies
Necessary Cookies
Purpose: Essential for website functionality
Examples: Session cookies, authentication tokens, security cookies, load balancing
Legal Requirement: No consent required (strictly necessary)
Common Names: PHPSESSID, JSESSIONID, csrf_token, sessionid
Analytics Cookies
Purpose: Track user behavior and website performance
Examples: Google Analytics, Matomo, Hotjar
Legal Requirement: Consent required
Common Names: _ga, _gid, _gat, __utma, _hjid
Marketing Cookies
Purpose: Track users across websites for advertising
Examples: Facebook Pixel, Google Ads, DoubleClick
Legal Requirement: Explicit consent required
Common Names: _fbp, _gcl_au, IDE, test_cookie
Functional Cookies
Purpose: Remember user preferences and settings
Examples: Language preferences, theme selection, shopping cart
Legal Requirement: Consent recommended
Common Names: lang, currency, theme, cart
Cookie Compliance Requirements
EU Cookie Law (ePrivacy Directive)
- Obtain explicit consent before setting non-essential cookies
- Provide clear information about cookie purposes
- Allow users to reject cookies
- Do not prevent access if users reject non-essential cookies
- Keep records of consent
GDPR Requirements
- Cookies that process personal data must comply with GDPR
- Consent must be freely given, specific, informed, and unambiguous
- Pre-ticked boxes are not valid consent
- Users must be able to withdraw consent easily
- Cookie walls (blocking access without consent) are generally not allowed
Cookie Security Attributes
Secure Flag
The Secure attribute ensures cookies are only transmitted over HTTPS, protecting them from interception. All cookies on HTTPS sites should use this flag.
HttpOnly Flag
The HttpOnly attribute prevents JavaScript from accessing the cookie, protecting against XSS attacks. Authentication cookies should always use this flag.
SameSite Attribute
The SameSite attribute controls when cookies are sent with cross-site requests, protecting against CSRF attacks:
- Strict: Cookie only sent on same-site requests
- Lax: Cookie sent on top-level navigation
- None: Cookie sent on all requests (requires Secure)
How to Use This Tool
- Enter URL: Input the website URL you want to scan
- Run Scan: Click "Scan Cookies" to analyze the site
- Review Results: Examine cookies by category and security attributes
- Check Compliance: Verify consent mechanisms are in place for non-essential cookies
- Implement Changes: Add cookie consent banners if needed
- Document Cookies: Update your privacy policy with cookie information
Best Practices for Cookie Compliance
- Cookie Banner: Implement a clear cookie consent banner
- Granular Consent: Allow users to choose cookie categories
- Cookie Policy: Provide detailed information about each cookie
- Easy Opt-Out: Make it simple to withdraw consent
- No Cookie Walls: Don't block access for users who reject cookies
- Regular Audits: Scan your site regularly for new cookies
- Third-Party Cookies: Document cookies set by third-party services
- Consent Management Platform: Consider using tools like Cookiebot or OneTrust
Common Cookie Names and Purposes
| Cookie Name | Purpose | Category |
|---|---|---|
_ga |
Google Analytics - User identification | Analytics |
_gid |
Google Analytics - Session identification | Analytics |
_fbp |
Facebook Pixel - Track conversions | Marketing |
PHPSESSID |
PHP Session - Maintain user state | Necessary |
csrf_token |
Security - Prevent CSRF attacks | Necessary |
IDE |
Google DoubleClick - Ad targeting | Marketing |
Important Notes
- This tool scans cookies set during initial page load
- Some cookies may only appear after user interaction
- Categorization is based on common patterns and may not be 100% accurate
- Always verify cookie purposes with documentation
Cookie Compliance Penalties
GDPR: Up to €20 million or 4% of annual revenue
EU Cookie Law: Varies by country, up to €500,000 in some jurisdictions
CCPA: $2,500-$7,500 per violation