Website capture bot
What the CookieBeam capture bot loads from your site, what it reads, and how to allow it through your site's protection.
Last updated:
CookieBeam captures a public homepage so the banner designer can show your banner on top of your own site, and so Match my website can suggest colours and fonts. It reads brand colours, fonts, shapes and logo candidates, and takes screenshots for the private designer preview. It doesn't sign in, click, submit forms or solve security challenges.
When a capture runs
- Automatically, when an editor opens the designer preview and the banner has no capture yet, or its capture is more than 30 days old. The preview starts at most one capture each time it opens.
- On request, when an editor refreshes the capture or uses Match my website.
Captures aren't scheduled. Nothing runs while nobody has the designer open.
What one capture does
A browser capture runs a real Chromium browser, so your page's JavaScript runs as it would for a visitor. One capture loads your homepage twice, or three times when the first load is slow:
- Desktop. The bot loads the page at 1440 by 900 pixels. It waits up to 15 seconds for network activity to settle. If that times out, it loads the page again and waits up to 10 seconds for the document.
- Tablet. It resizes the same page to 820 by 1180 pixels. This isn't another page load.
- Mobile. It loads the page again at 390 by 844 pixels with a mobile user agent.
A whole capture stops after 60 seconds.
Screenshots
Each screenshot shows the visible window at the top of the page, not the full page length. Screenshots are JPEG images. If the tablet or mobile screenshot fails, the capture still succeeds with the desktop one.
Hidden banners and pop-ups
The bot hides consent banners and large pop-ups before it takes a screenshot, so the preview shows your site and not another banner. To do that, it adds a style element marked data-cookiebeam-capture="hide" to its own copy of the page, and hides fixed overlays that cover a large share of the window. It bypasses the page's content security policy in that copy so the style applies. It never clicks a button to dismiss anything.
This only affects the page inside the capture browser. It doesn't change your site, and your visitors never see it.
Logo detection
The bot looks for an image or inline SVG near the top of the page and scores each candidate. A candidate scores higher when:
- its
alt,class,id,aria-labelorsrcmentions "logo" or "brand" - it links to your home page
- it sits inside a header or navigation element
- it sits further to the left
A candidate must start within the top 250 pixels of the page and be no larger than 600 by 300 pixels. A bigger image doesn't score higher. If nothing scores high enough, no logo is suggested.
What it doesn't load
The bot doesn't download audio or video. It refuses requests to private or internal network addresses. It dismisses JavaScript dialogs.
Identify capture requests
Browser captures use the bundled Chromium browser's actual major version in the user agent, followed by:
CookieBeamCapture/1.0 (+https://cookiebeam.com/capture-bot)
The mobile page load adds Mobile to the browser part of the user agent.
When the browser can't capture and CookieBeam reads your public HTML and styles directly, those requests use the same identifying token without claiming to be a browser. They parse styles without executing site scripts.
Two kinds of request don't carry the token:
- During a browser capture, the logo image is downloaded with no
User-Agentheader. - The designer loads your site's web fonts with an ordinary Chrome user agent.
A firewall rule that matches only the token blocks or misses those two. Requests made by the capture browser also send the header X-CookieBeam-Scanner: true.
Don't treat a user-agent token or a header as authentication: other clients can copy them.
Allow capture through your protection
In your CDN or WAF's bot settings, add a narrowly scoped rule that allows the user agent containing CookieBeamCapture to read your public homepage and its public styles and images. Apply your normal rate limits and keep login pages and private endpoints protected. Ask your firewall administrator to check whether an existing rule blocks those requests.
CookieBeam doesn't currently publish capture IP ranges. Don't assume requests come from a fixed address.
When the browser can't capture
CookieBeam stops when it recognises a bot challenge. It can read public HTML and styles directly instead, without a screenshot. It can also use a public web archive snapshot from the last twelve months; the designer labels that capture with its snapshot date. Archived styles can differ from your current site.
If neither source is usable, choose Continue with brand colours and enter your primary, background and text colours and a font. An optional logo URL uses the designer's existing safe logo download flow. Those inputs feed the same style suggestions, with no screenshot.