# Detecting Bot Behavior with Cloudflare Precursor

Continuous client-side signals block automated traffic.

- **Source:** [Cloudflare Blog](https://blog.cloudflare.com)
- **Published:** 2026-07-13
- **Topic:** [Data & AI](https://brifing.si/c/data-ai)
- **Original article:** <https://blog.cloudflare.com/introducing-precursor/>
- **On Brifing:** https://brifing.si/s/a4931739-768d-4f5c-b50d-d91dc625b055

## A New Approach to Bot Detection

Cloudflare introduced Precursor, a new system for bot detection. It continuously collects behavioral signals on the client side to distinguish automated traffic from human traffic. Precursor monitors user interactions with web applications, making it easier to detect bots.

## Integration with Turnstile

Precursor complements Cloudflare's existing Turnstile system. Turnstile operates as a risk-based managed challenge, replacing CAPTCHA. Precursor extends Turnstile's protection across the entire web application, providing more comprehensive security.

## The Power of Behavioral Signals

Modern bots can mimic human behavior briefly. However, replicating consistent human behavior over time is challenging. Precursor captures these behavioral signals, making it easier to detect bots. This means fewer interruptions for genuine users.

## Analyzing Mouse Movements

Precursor detects bots by analyzing mouse movements. Human mouse movements have physical constraints, while bots perform mathematically ideal movements. These differences are detected by Precursor, helping to distinguish bots.

## Injection and Collection Layer

Precursor automatically injects a lightweight JavaScript into the web application. This script collects interaction signals such as mouse movements, keyboard activity, and focus changes. The collected data is then sent to the evaluation layer for analysis.

## Evaluation Layer

Precursor's evaluation layer analyzes incoming data to detect bots. This layer cross-references data such as mouse movements with page visibility. This process makes bot detection more accurate.

## Session Integration

Precursor data is accumulated on a session basis. This allows a user's entire interaction to be evaluated in a single session. This approach makes bot detection more reliable.

## A New Era in Security

Cloudflare's Precursor system heralds a new era in bot detection. By continuously analyzing behavioral signals, this system enhances the security of web applications. Precursor increases the cost of automation for bot developers, further strengthening security.

## Sources covering this story

- https://blog.cloudflare.com/introducing-precursor/ — 

---

_Summary written by Brifing from the original reporting. Copyright in the original article belongs to its publisher; read the full piece at the link above._
