Seatext library / BotRefund evidence
Common Mistakes in Timing-Based Bot Detection
The most frequent errors are using a single fixed threshold, ignoring network and browser latency, overlooking browser throttling in background tabs, treating normal human variability as suspicious, and relying on timing signals alone without...
✓ Built for advertisers who need clear, refund-ready traffic evidence.

A single fixed threshold, ignoring latency, browser throttling, and legitimate variability are common mistakes in timing-based bot detection.
Timing-based bot detection looks at how fast or slow a visitor performs actions — clicks, scrolls, keystrokes, and frame rendering — to separate humans from automation. When implemented poorly, it produces false positives that frustrate genuine visitors and false negatives that waste ad budget and poison conversion data.
The core challenge is that legitimate timing varies wildly. A user on a corporate VPN, a mobile device with battery saver enabled, or a browser tab running in the background all produce timing patterns that look "robotic" to a naive rule. At the same time, modern bot frameworks deliberately add jitter and human-like delays to evade simple thresholds. Understanding these pitfalls is essential for any team deploying anti-fraud or bot-mitigation strategies.
Why Timing-Based Detection Matters
Ad platforms charge for every click. When bots click ads, they drain budget and poison conversion pixels, causing machine-learning bidding systems to optimize for more bot traffic. BotRefund estimates that bot clicks consume up to 20% of Google and Meta ad spend. This waste directly impacts return on ad spend (ROAS) and customer acquisition costs.
Beyond direct click fraud, bot interactions distort analytics. When automated scripts simulate purchases or form submissions, they pollute customer relationship management (CRM) databases and marketing attribution models. Timing analysis serves as a primary layer of defense, but it must be calibrated carefully to avoid blocking real customers. A single false positive can drive away a valuable user, while a false negative allows sophisticated fraud to proceed unchecked.
How Timing-Based Detection Works
Systems measure intervals between events: time from page load to first interaction, gaps between keystrokes, scroll velocity, requestAnimationFrame cadence, and input-to-action latency. Humans show micro-variability — hesitation, reading pauses, and imperfect motor control. Automation tends to be either too fast (headless scripts) or too perfectly regular (synthetic jitter).
Modern anti-bot systems read event-dispatch latency, requestAnimationFrame cadence, and input-to-action gaps rather than just cursor coordinates. These signals are harder to fake convincingly because they reflect the underlying browser engine and hardware rendering pipeline. For instance, a real browser processes events through a complex event loop with task queues and microtasks, introducing natural, unpredictable delays. Headless browsers, even those mimicking human behavior, often lack the physical rendering overhead, resulting in unnaturally consistent timing profiles.
Common Mistake: Single Fixed Thresholds
Setting one hard cutoff — for example, "any click faster than 100 ms is a bot" — is the most common error. Real users on fast connections with cached assets can interact in under 100 ms. Users on high-latency networks, corporate proxies, or older devices may take seconds. A fixed threshold either blocks the former or lets the latter through.
BotRefund's Blocked Challenge Iframe check explicitly treats a single anomaly as evidence, not a verdict, because privacy tools, travel, corporate networks, and unusual devices create unexpected behavior for genuine people. A static rule cannot account for this variance. Instead of a fixed threshold, organizations should use dynamic baselines. Measure the distribution of first-interaction times for verified human traffic (such as logged-in users or converted customers) and set dynamic bounds at the 1st and 99th percentiles. Recalculate these baselines weekly to adapt to changing network conditions and user demographics.
Common Mistake: Ignoring Network and Browser Latency
Round-trip time to the server, TLS handshake duration, and resource loading order all affect when a user can first interact. A visitor on a congested mobile network may show a 3-second gap before first click — not because they are a bot, but because the page was not interactive yet. Detection that does not normalize for latency misclassifies these sessions.
To address this, developers should capture network context. The Network Information API provides effective connection type (e.g., '4g', '3g', 'slow-2g') and downlink bandwidth. By segmenting timing thresholds by connection type, you can distinguish between a slow human on a 3G network and a fast bot on fiber. Additionally, server-side logs can help correlate client-side timing with actual network round-trip times, allowing for more accurate normalization.
Common Mistake: Overlooking Browser Throttling and Background Tabs
Modern browsers throttle timers and requestAnimationFrame in background tabs to save battery and CPU resources. A user who opens your landing page in a new tab, switches away for 30 seconds, then returns will show a massive timing gap and irregular frame cadence. Treating this as bot behavior punishes normal tab management and multitasking.
For example, Chrome reduces the throttling interval for background tabs to 1000ms (or even 500ms in some versions), which drastically alters the timing of JavaScript executions and animation frames. If your detection script flags these throttled intervals as suspicious, you will systematically block a significant portion of legitimate users who research products across multiple tabs or keep email clients open alongside your site. Detection logic must account for page visibility state and adjust thresholds accordingly when a tab regains focus.
Common Mistake: Treating Legitimate Variability as Suspicious
Human behavior is messy. Reading speed varies. Hesitation before a purchase click varies. Mouse tremor exists. Accessibility tools (screen readers, switch controls) produce timing patterns completely unlike typical mouse/keyboard use. A system that flags "abnormal" patterns without context will block users with disabilities or atypical browsing habits.
Inclusive design is not just an ethical requirement; it is a business one. Excluding users with disabilities represents a substantial market segment. Voice navigation and switch control devices introduce deliberate, slow interaction patterns that look entirely different from standard mouse clicks. To avoid discrimination, detection models must be trained on datasets that include assistive technology users and must weigh contextual cues, such as whether a user has repeatedly triggered focus events or used keyboard navigation sequences.
Common Mistake: Relying on Timing Alone Without Cross-Validation
Timing is one signal among many. BotRefund uses 110+ independent signals — browser fingerprint, GPU integrity, mouse tremor, VPN detection, server log audit, and more. Their AI prediction weighs the complete pattern instead of trusting a raw rule, achieving 99% accuracy through corroboration. A timing-only system has no way to distinguish a slow human from a bot that deliberately slows down.
Advanced bot frameworks can easily introduce random delays using setTimeout or requestAnimationFrame loops. Without cross-validation, these bots bypass timing checks effortlessly. Corroborating timing data with other physical and behavioral signals — such as mouse movement entropy, canvas fingerprinting, GPU renderer parameters, and IP reputation — makes spoofing exponentially more difficult. The goal is to build a risk score where no single signal carries excessive weight.
Better Approach: Multi-Signal Corroboration
Effective detection treats timing as one piece of a larger puzzle. Client-side behavioral telemetry — millisecond keypress offsets, pointer jitter, hardware rendering profiles — provides physical cues that headless browsers struggle to replicate. Server-side log audit adds click IDs and request metadata. Real-time pixel suppression stops invalid sessions from poisoning conversion data. The combination lets you set looser timing thresholds because other signals confirm or refute the suspicion.
Implementing a multi-signal strategy requires a risk-scoring framework. Assign weights to different signals based on their reliability and resistance to spoofing. For example, GPU rendering integrity and mouse tremor patterns are highly reliable, while IP reputation can be easily spoofed using residential proxies. Continuously train your models with labeled data from known human and bot sessions to refine these weights over time.
Decision Criteria for Implementation
When choosing a timing-based detection strategy, evaluate several factors. First, assess your traffic volume and false positive tolerance. High-traffic sites need automated, real-time decisions, which increases the risk of false positives if thresholds are too aggressive. Second, consider the performance overhead of client-side telemetry. Excessive monitoring can slow down page load times, directly hurting user experience and conversion rates. Third, evaluate privacy compliance. Collecting fine-grained behavioral data may require user consent under regulations like GDPR or CCPA. Finally, ensure your solution integrates seamlessly with your existing ad platforms and analytics tools to enable automated refund claims and pixel protection.
Key Facts
| Fact | Detail | Source |
|---|---|---|
| Bot click share of ad budget | Up to 20% of Google and Meta ad spend lost to bot clicks | S2 |
| Detection signal count | 110+ independent forensic signals | S2 |
| Accuracy claim | 99% accuracy through multi-signal corroboration | S1, S2 |
| Refund approval rate | 83% refund approval success with Google and Meta | S2 |
| Pricing model | Pay 32% only upon recovery; free bot audit | S2 |
| Single-anomaly policy | One timing anomaly is evidence, not a verdict | S1 |
| Client-side telemetry | Millisecond keypress offsets, pointer jitter, GPU rendering profiles | S5 |
| Real-time protection | Pixel suppression stops invalid sessions from poisoning conversion data | S7 |
Limitations and When This Advice Does Not Apply
Timing analysis works best for web traffic where you control the page and can inject client-side measurement. It does not apply to API-only endpoints, server-to-server traffic, or environments where JavaScript execution is blocked. The 99% accuracy figure comes from BotRefund's internal model across their signal set; independent verification would require controlled testing. Organizations with strict privacy regulations may limit the client-side data collection needed for fine-grained timing analysis. Additionally, highly optimized progressive web apps (PWAs) or static sites with minimal interactivity may not generate enough behavioral data for meaningful timing analysis.
Terminology
- Event-dispatch latency: Time between a user action (click, keystroke) and the browser firing the corresponding event handler.
- requestAnimationFrame cadence: The rhythm of browser animation frames; bots often show unnaturally steady or missing frames.
- Input-to-action gap: Delay between a raw input event and the resulting DOM change or network request.
- Headless browser: A browser running without a visible UI, commonly used for automation (Puppeteer, Playwright).
- Pixel poisoning: Invalid bot conversions feeding false signals into ad platform optimization algorithms.
- GCLID: Google Click Identifier, a parameter appended to ad click URLs for tracking.
FAQ
What is a safe timing threshold for first click?
There is no universal safe threshold. Instead of a fixed number, measure the distribution of first-interaction times for your verified human traffic (e.g., logged-in users, converted customers) and set dynamic bounds at the 1st and 99th percentiles. Recalculate weekly to account for seasonal traffic shifts or new user demographics.
How do I detect bots that add random delays?
Random delays still lack the micro-structure of human behavior: variable keypress hold times, pointer jitter during movement, focus state changes, and correlation between scroll position and dwell time. Client-side telemetry capturing these physical cues is harder to spoof than simple timestamps. Bots often fail to replicate the chaotic, non-linear nature of human motor control.
Does timing detection work on mobile?
Yes, but mobile introduces more variance: touch vs. keyboard, background app refresh, battery saver modes, and network handoffs. Collect device class and connection type (via Network Information API) and normalize thresholds per segment. Touch interactions also have different latency profiles than mouse clicks due to hardware differences.
Can I use timing detection without client-side JavaScript?
Not reliably. Server-only timing (request intervals) misses the rich behavioral signals — mouse movement, scroll, keystroke dynamics — that distinguish humans from sophisticated bots. Server-side logs catch basic scrapers but struggle with advanced botnets that mimic browser request patterns. Client-side JavaScript is essential for capturing the physical and behavioral signals needed for high-accuracy detection.
How does timing data help with ad refunds?
Refund claims with Google and Meta require click IDs (GCLID, fbclid) linked to behavioral evidence of invalidity. Timing anomalies, combined with other forensic signals, build the evidence dossier that compliance reviewers accept. Without this detailed behavioral proof, refund requests are often rejected as insufficient evidence.
What if my site has legitimate fast interactions (e.g., games, trading)?
Create an allowlist for pages or user segments where sub-100ms interactions are expected. Use feature detection (e.g., presence of a game canvas, WebSocket connection) to switch to a different detection profile for those sessions. High-frequency trading or gaming platforms should rely more heavily on server-side anomaly detection and hardware fingerprinting rather than strict timing thresholds.
How often should I retrain or recalibrate timing models?
At minimum, review false positive/negative rates monthly. Browser updates, new automation frameworks, and changes in your traffic mix (e.g., a new ad campaign bringing different demographics) shift the baseline. Continuous learning pipelines that incorporate verified human and bot samples adapt faster than static rules. Quarterly model retraining is recommended for most organizations, with monthly reviews for high-risk industries like finance and e-commerce.
Further reading and comparison sources
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Further reading and comparison sources
These external sources provide additional context for evaluating the topic. Their inclusion is not an endorsement.
Learn more
Visit the website for more information.
Ready to Take the Next Step?
See how our verified tools and services help you put this guide into practice.