How Our Anti-Bot Detector Works, and Why It Opens a Browser

UNDETECTED LABS3 MIN READ
On this page

Paste a URL into the Anti-Bot Detector and it names the bot protection on that site. Behind it is a Chromium browser on our server that opens the page and looks for the cookies, headers and scripts each vendor leaves. A plain HTTP request is much cheaper to run. On eight sites from our benchmark, it also missed Kasada on two and Akamai on one.

What happens to the URL

First the site checks what you typed. Only public domains over http or https get through: no IP addresses, custom ports or logins in the URL. Each domain’s result is kept for 30 days. If someone checked it recently you get that result at once, and it doesn’t use up any of your 5 fresh checks an hour.

New domains wait in a queue on our server. Three checks run at once and up to 20 can wait. A check that takes longer than 70 seconds is dropped. Before starting, the server resolves the domain and turns it down if any of its addresses is private or reserved.

The browser

Each check gets a fresh Chromium context, started through Playwright with a window on a virtual display. It sends a Windows Chrome User-Agent, an en-US locale and a 1920×1080 viewport. Images, media and fonts are dropped, since vendor scripts and cookies don’t depend on them.

The browser waits for the HTML to be parsed, then checks the cookie jar once a second for up to four seconds and stops as soon as a known anti-bot cookie shows up. After that it saves the response status and headers, the cookie names, the final HTML, the script URLs and the final address after redirects.

What it matches

Source Examples
Cookies _abck, bm_sz (Akamai), KP_UIDz (Kasada), _px3 (PerimeterX), datadome, visid_incap_ (Imperva), aws-waf-token, __cf_bm
Headers x-datadome, x-kpsdk-ct, x-iinfo
Scripts captcha-delivery.com, px-cdn.net, /ips.js, /cdn-cgi/challenge-platform, awswaf
Page text “Press & Hold”, “Incapsula incident”, Cloudflare’s challenge pages

The rules cover the vendors above. Each page also goes through Wappalyzer’s open-source database, the enthec/webappanalyzer fork. That gives the CDN and the rest of the stack, and anything it files under Security, such as a bot manager our rules don’t know, joins the list. If the status is a blocking one like 403, 429 or 503, or the page is a challenge, the result is marked as challenged.

Browser or plain request

We put eight homepages through the Detector, and through curl from the same server with the same User-Agent. curl followed redirects, but it ran no JavaScript and loaded nothing else.

Site Detector Plain request found
nike.com Akamai Bot Manager, Kasada Kasada (KPSDK in the HTML)
ticketmaster.com Kasada nothing
wizzair.com Kasada nothing
mrporter.com Akamai Bot Manager nothing
gamestop.com Imperva, Cloudflare Cloudflare
hermes.com DataDome, Cloudflare DataDome, Cloudflare
zillow.com PerimeterX PerimeterX
priceline.com PerimeterX, Cloudflare PerimeterX, Cloudflare

The plain request missed the bot manager entirely on three sites and missed a second vendor on two more. Kasada is the clearest case. Ticketmaster and Wizz Air sent back normal HTML with no Kasada cookie or header, and KP_UIDz only appeared after the browser ran Kasada’s script. Akamai’s _abck and bm_sz on Mr Porter and Imperva’s visid_incap_ on GameStop also only showed up in the browser.

Being blocked still counts

Our server sits in a data center, so the checker looks like a bot to these sites. Hermès, Zillow, Priceline and Mr Porter answered it with a 403. That still works for detection: the block pages carry the vendor’s marks, like the x-datadome header on Hermès or PerimeterX’s challenge page on Zillow, and the result says the site challenged us.

The flip side is that the Detector sees what a fresh visitor from a server sees on the first page. A site that only protects its login or checkout, or a vendor that leaves no cookie, header or script on the homepage, won’t show up. When nothing matches, the tool says it found nothing rather than guessing.