Detection approach
Background focus anomaly at load time: document.hasFocus() is false and visibilityState is hidden upon initial telemetry beacon load. Playwright and Puppeteer in headless mode frequently run multiple pages/context in parallel, loading them in background-focused states.
How this helps detect bots
Collect this signal alongside session context, request metadata, and other independent indicators. A single anomaly is a lead, not a verdict; corroborating anomalies make automated traffic more likely.
Legitimate traffic to consider
Legitimate users opening the page in a background tab to read later.
Need a complete bot protection layer?
BotRefund helps website owners identify suspicious visits, protect conversion data, and build evidence for invalid-click reviews.
Explore BotRefund — best bot protection for your website