Cloudflare Precursor Extends Bot Detection Beyond Browser Checks
TL;DR — Key Takeaways
- Bot detection is becoming continuous. Precursor watches the entire session, not just a single challenge.
- Human-like clicks are no longer enough. Cloudflare looks for behavioral inconsistencies that emerge over time.
- A passed challenge is not permanent. Suspicious activity can trigger reverification during the same session.
Bots and AI agents are getting better at passing the same browser checks websites use to distinguish human visitors from automated traffic. More capable automated tools can execute JavaScript, control browsers and pass some CAPTCHA checks. To help manage this, Cloudflare has introduced Precursor, a browser-based verification system designed to detect automation by analyzing behavior across an entire website session.
Precursor can identify patterns that are difficult to reproduce consistently over time, even when each individual action appears plausible, Cloudflare said. When a customer enables Precursor, the company injects a compact, obfuscated JavaScript bundle into the site’s HTML responses as they pass through its network, dynamically assembling the bundle each time. The script collects signals including pointer movement, keyboard timing and rhythm, changes in browser focus, and page visibility. It buffers that information in the browser and periodically sends it to Cloudflare’s edge network for evaluation.
The company said its evaluators compare those signals to identify inconsistencies, such as pointer activity while a page is not visible or keyboard events occurring when no text field has focus. Cursor behavior may also expose automation through perfectly straight paths, repeatable velocities or unusually precise clicks, while human movements are more likely to include corrections, overshoots and changes in timing. Examining those characteristics across an entire session could make it harder for automated tools to evade detection by adding random variation to individual actions.
Precursor’s findings feed into Cloudflare’s bot score, challenge decisions and security rules. The system also integrates with the cf_clearance cookie, which stores a visitor’s session clearance state. Based on its ongoing evaluation, Precursor may reduce or invalidate that clearance, trigger another challenge or reverify the visitor during the same session. Because behavioral data accumulates throughout the session, Cloudflare said bots cannot reset their behavioral signatures simply by refreshing the page or starting over with a new challenge.
The new feature supersedes Cloudflare’s JavaScript Detections capability, which customers are advised to disable after enabling Precursor. It does not replace challenge pages and is intended to complement Turnstile. Customers can choose a background mode that avoids an interstitial challenge but may not fully verify every session, or a stricter mode that challenges visitors without a valid session. Different modes can be applied to specific paths, such as checkout pages.
Because Precursor analyzes behavior throughout a session, Cloudflare’s handling of the collected data has important privacy implications. The company said it records keyboard timing and rhythm rather than the keys pressed and does not tie behavioral signals to user accounts, login identities or persistent profiles. Those signals are used internally by Cloudflare’s bot detection systems and are not exposed in customer dashboards. Customers instead receive session analytics showing where journeys diverge from expected behavior, including activity that occurs between individual HTTP requests.
Cloudflare has not yet published quantitative accuracy, false-positive or latency results for Precursor, leaving questions about how reliably it distinguishes humans from advanced automation or how much overhead its continuous browser monitoring adds. Precursor is rolling out as an optional feature of Cloudflare Enterprise Bot Management and can be enabled from the Cloudflare dashboard without application changes, with customers choosing between background monitoring and stricter session verification.
Frequently Asked Questions
What is Cloudflare Precursor?
Precursor is a browser-based bot detection system that analyzes user behavior throughout an entire website session to distinguish humans from automated traffic.
What signals does Precursor analyze?
It examines signals such as pointer movement, keyboard timing, browser focus and page visibility. Cloudflare says it records typing rhythm rather than the specific keys pressed.
How is Precursor different from a CAPTCHA?
A CAPTCHA tests a visitor at a specific moment. Precursor continuously evaluates behavior across the session and can trigger another challenge if activity later appears automated.

