Skip to main content
Security Auditor — renders the audited page in a headless Chromium, looks for a visible cookie consent banner and checks that it lets visitors both accept and reject non-essential cookies.

Privacy

Visitors in the EU, the UK and many other places must be asked before non-essential cookies are set, and a real choice means a reject button, not only an accept one.

Rendered pages

Consent banners are injected by JavaScript, so the page is loaded in a real browser, the network is allowed to go idle and the accept button is clicked to count the cookies it sets.
A cookie consent banner is the first thing many visitors see, and the law in a growing number of jurisdictions says it has to offer a choice: accept the non-essential cookies, or reject them and keep browsing. A banner that only has an accept button, or a notice with no button at all, collects no valid consent, and a site with no banner that still sets tracking cookies is exposed to complaints and fines. This auditor loads the page the way a visitor does, finds the banner through the class names, ids, roles and ARIA labels that consent tools use, reads the labels of the buttons inside it, and reports what choice the visitor gets.

Preferences

This setting can be configured per monitored URL from the URL’s auditor configuration tab.

How it works

  1. Render — launches a headless Chromium as 37AuditsBot, navigates to the audited URL, waits for the network to go idle and then two more seconds so consent scripts can inject their banner. A blocked navigation (HTTP 403, HTTP 429 or a Cloudflare challenge) ends the audit with 590; a navigation that returns no response or an HTTP status of 400 or more ends it with 500; a browser failure, after one relaunch when Chromium crashes, ends it with 501.
  2. Find the banner — queries the bannerSelector preference when it is set, otherwise eighteen common selectors ([class*='cookie'], [id*='consent'], [class*='gdpr'], [role='dialog'], [aria-label*='cookie'] on an element holding a button, .cookie-banner, #cookieConsent and the like); hidden elements do not count. For each selector the visible matches are read until one holds buttons, so a privacy link ahead of the banner does not hide it. When no match holds a button, the auditor climbs from the class and id matches up to six levels to the nearest ancestor that does, stopping at main, header, footer, nav and body: the keyword may only have matched a part of the banner, such as an svg.lucide-cookie icon. A configured selector is never climbed from.
  3. Find the choices — reads the text of every button, a[role='button'] and input[type='button'] inside the banner and looks for accept keywords (accept, allow, agree, ok, enable, yes, continue), reject keywords (reject, decline, deny, disable, no, refuse, essential only, necessary only) and settings keywords (settings, preferences, customize, manage, options, choose). Links whose text or href mention privacy, policy, gdpr or data protection count as a privacy policy link.
  4. Count the cookies — records the cookies present after the page loaded, flags likely tracking cookies (_ga, analytics, track, _utm, facebook, google) set before any consent, and, when a banner with an accept option exists, clicks the accept button of the banner, waits two seconds and counts the cookies again.
  5. Rules — no visible banner fails (400); a banner with an accept option but no reject option (300), with a reject option but no accept option (301) or with neither (302) warns.
  6. Aggregate — FAIL wins over WARNING; when the banner offers both choices the audit is SUCCESS (200) and the message names the mechanism, the buttons and the cookie counts before and after accepting.

What it audits

Every row maps to one checkRule* method and one CheckCode, in the order the auditor runs them. CheckCode suffixes use status ranges: 200 success, 300–399 warning, 400–499 fail, 500–599 error. Every check carries the data the browser collected: hasConsentBanner, hasAcceptOption, hasRejectOption, hasSettingsOption, consentMechanism (None, Granular, Binary Choice, Accept Only or Banner Only), hasPrivacyPolicyLink, bannerText, availableOptions, detectedBannerSelectors, bannerSelector, bannerSelectorSource (user when the preference set the selector, otherwise auto), cookiesBeforeConsent, cookiesAfterAccept, cookiesAfterReject, their three counts and blocksNonEssentialByDefault.

Output documentation

Risks and considerations

  • The ePrivacy Directive, the GDPR and the UK PECR require consent before non-essential cookies (analytics, advertising, social media) are set, and regulators have said that consent is only valid when rejecting is as easy as accepting.
  • Consent collected through an accept-only banner can be declared invalid, which turns every cookie set under it into an unlawful one.
  • Similar rules exist outside Europe (Brazil’s LGPD, several US state laws), so the banner is rarely optional for a site with international visitors.

How the detection works, and its limits

  • The banner is found by selector: an element whose class or id contains cookie, consent, gdpr or privacy, that has role="dialog" or role="banner", or whose aria-label contains cookie or consent and that holds a button. A banner none of these match needs the bannerSelector preference. A site header with role="banner" or a privacy link with privacy in its class is matched too, so a page without a consent banner can read as having one.
  • The accept, reject and settings buttons are looked up by keyword inside the banner only. A banner whose buttons use other words is not recognised, and a banner rendered in an iframe shows no buttons, so it reads as 302.
  • The page is rendered with the bot’s user agent from one location, so a banner shown only to EU visitors, or hidden from bots, is not seen.
  • Only the accept button is clicked. The reject path is not exercised, so cookies set after rejecting are not measured; cookiesAfterReject repeats the cookies seen before consent.
  • Granular settings (Manage preferences) are recorded in hasSettingsOption and the Granular mechanism name but do not change the verdict.

Changes from the previous version

  • The accept, reject and settings buttons are read from inside the banner instead of the whole page, and the accept click stays inside it: an unrelated Yes or No button elsewhere no longer counts as a choice, so a page can move from 200 to a 30x warning.
  • Banners named only by aria-label are detected, and the bannerSelector preference covers the ones no built-in selector matches.
  • A page that answers HTTP 400 or more is now an ERROR (500) instead of being audited like any other page; a browser navigation that returns no response is also 500.
  • A browser failure that survives the relaunch is an ERROR with code 501 instead of a code-less check carrying the raw Playwright message.
  • Every check now carries the audited URL as its resource and a CheckCode; the verdict severities (no banner fails, a banner missing a choice warns, both choices pass) are unchanged.