Skip to main content

Cloudflare Precursor watches behaviour instead of showing CAPTCHAs

· Do Minh Tuan · Business Hackers 🚀

Cloudflare Precursor watches behaviour instead of showing CAPTCHAs

Cloudflare recently launched Precursor, a client-side engine that watches how a visitor behaves and uses that to decide whether they are a bot. The pitch is that it replaces the CAPTCHA, that grid of traffic lights you have clicked through a thousand times, with something that runs quietly in the background for the whole session.

The timing makes sense. CAPTCHAs were designed around a gap between what humans and machines could do with an image. That gap has mostly closed. Modern vision models are good at those puzzles, and the ones that are not good can be solved by a person for a small fee. So the test is failing on both sides. It stops some bots and annoys a lot of humans.

What it looks at

Precursor runs code in the browser and looks at signals that are hard to fake without effort. How the mouse moves, whether it curves or goes in a straight line. How fast the page scrolls and whether it stops. The rhythm of typing, including the pauses and the corrections. A script that fills a form tends to do it at a perfectly even pace, and a person does not.

The interesting design choice is that the analysis is continuous rather than a single checkpoint. A traditional challenge asks once, at the door, and then trusts you for the rest of the visit. Cloudflare's approach keeps scoring. The company's framing is that this catches automated agents that get past an initial check and then behave like machines for the next twenty minutes.

There is a privacy question buried in this and the announcement does not fully answer it. Behavioural signals are a form of tracking. The claim is that processing happens client-side, in the browser, which limits what leaves the device, but any serious deployment will still send some score or signal to the edge. If you run a site in the EU, or you have a privacy team, that is a conversation to have before you turn it on, not after.

How I would wire it up

If you adopt this, treat the score as one input to a decision, not a verdict. Cloudflare attaches a bot score to requests, and your backend can use it. A score below a threshold might mean blocking, but for most sites the better move is to slow things down or require a second factor for the sensitive action, rather than blocking the whole session.

The pattern I would use is a small middleware that checks the score before expensive work. If the request is a product page, let it through. If it is checkout, a password reset, or anything that costs you money per call, check the score and apply a stricter rule. That keeps the friction where the risk is instead of on every page view.

One caveat about that header approach: the score is only trustworthy if requests actually reach your origin through the edge. If someone can hit your server directly, they can send any header value they like. Restrict origin access so the header means something, and log the cases where the header is missing, because a missing score is usually a sign that traffic took a route you did not intend.

There is also a cost question. Running analysis in the browser on every session adds JavaScript and main-thread work, and the people most affected are usually on older phones and slower connections, which is not where you want extra weight. Cloudflare is large enough to have optimised this, but I would measure page performance before and after switching it on rather than assume it is free.

Where I am sceptical

The post makes a conversion argument, that CAPTCHAs cost you sales because people abandon at the challenge. That is plausible and it matches how I feel when a checkout asks me to identify a bus. The specific percentages in these write-ups tend to come from a study of one site, and I would not plan a budget around them.

The bigger scepticism is about the arms race. Behavioural detection works because human input has texture that scripts do not. That advantage erodes as agents get better at imitating human input, and it erodes faster when the signals being measured are publicly described. Cloudflare can keep the thresholds private, but the general approach is now well known.

I would also want to know how it handles accessibility tools. Screen readers, switch access and keyboard-only navigation produce input that looks unusual by mouse-and-typing standards. A system tuned on typical desktop behaviour can punish the people who most need a frictionless experience. The announcement does not address this, and it is the first thing I would test.

What I would tell a founder

If you are losing signups at a CAPTCHA and you have evidence of it, test this. Run it in a mode where it scores but does not block, and compare the score distribution against what you know about your real users. If legitimate customers are landing in the low-score bucket, your thresholds are wrong, and you will find that out cheaply before anyone is locked out.

Keep a fallback. Any detection system will have false positives, and the recovery path needs to exist before you need it. A support form and a human who can unblock an account is unglamorous and it is what keeps a bad week from becoming a lost customer.

The thing I would watch next is not the bot detection itself. It is whether the challenge disappears from the internet entirely, or whether sites keep a puzzle as the last resort for the cases the model gets wrong.

Written with AI assistance, reviewed and edited by Do Minh Tuan.