Seatext library / BotRefund evidence
What should I check before deploying empty font canvas detection?
Before deploying empty font canvas detection, verify your site handles false positives from privacy browsers, ensure you have a fallback challenge for flagged traffic, and confirm detection runs before critical page logic.
✓ Built for advertisers who need clear, refund-ready traffic evidence.

Deploying empty font canvas detection is a powerful way to identify headless bots that fail to render system fonts correctly. This technique works by checking if the browser can successfully draw text onto a canvas element using specific font metrics. However, because some privacy-focused browsers or hardened extensions can mimic or block these signals, you must validate your strategy to avoid locking out legitimate users.
To ensure a smooth rollout, you should verify that your site can handle false positives from privacy-centric browsers. You must also have a robust fallback challenge (like a CAPTCHA or JavaScript challenge) for traffic flagged as suspicious. Finally, ensure the detection script executes before any critical page logic runs to prevent bots from interacting with your site before detection.
Readiness Checklist for Font Detection
- Privacy Browser Audit: Identify if your users use browsers like Brave, Firefox (with strict tracking protection), or extensions that zero out canvas data.
- Fallback Mechanism: Never block traffic based on a single signal. Have a secondary challenge ready to verify humans who are incorrectly flagged.
- Execution Priority: Ensure the detection script is placed in the head or very early in the body to catch bots before they submit forms or click buttons.
- False Positive Baseline: Establish what an "empty" result looks like in your specific environment versus a legitimate privacy-hardened user.
- Impact Analysis: Measure the performance overhead of the canvas operation on your Core Web Vitals, specifically Total Blocking Time.
How Font Canvas Detection Works
Font canvas detection relies on the subtle ways different browsers and operating systems render text. When a browser draws text to a canvas, it calculates the exact pixel width and height of characters based on the installed fonts. A real human browser with standard system fonts will produce a specific, pixel-perfect result.
Automated bots, particularly headless browsers, often lack a full rendering engine or system-level font libraries. When these bots are asked to draw text with a specific font, they may return an empty canvas or use a generic fallback font that results in different pixel dimensions. By comparing the expected pixel output against a known "human-like" signature, you can identify non-human traffic.
This signal is one of many independent checks. BotRefund uses over 110 signals to build a reliable picture of whether a visit is human or automated. A single anomaly is not a bot verdict. The empty font canvas check looks for a mismatch that a real browsing session does not normally create. Virtual machines and spoofed profiles can claim one device while their graphics, fonts, audio, or processor behavior tells another story.
Why Signal Correlation Matters
If you ignore bot detection, your advertising campaigns suffer from "pixel poisoning." Modern ad platforms like Google Performance Max and Meta Advantage+ use machine learning to find users likely to convert. If bots trigger "Add to Cart" events or form submissions, the algorithm learns to target those profiles (the bots) instead of real customers.
This creates a feedback loop where your budget is drained on invalid clicks that deliver zero pipeline. Detecting these bots at the edge prevents the tracking pixel from ever firing—preserving the integrity of your machine learning models and ensuring your ROAS is based on actual human behavior.
Accuracy comes from corroboration, not a single browser tell. BotRefund feeds this signal into its prediction AI, evaluating the holistic picture across browser integrity, network origin, hardware fingerprints, and user telemetry. By corroborating all factors together, it identifies invalid clicks with 99% precision.
Common Bot Detection Methods and Trade-offs
There are several ways to approach bots, ranging from simple user-agent checks to complex hardware-based de-masking and behavioral analysis. Each has a different trade-off regarding accuracy and implementation effort.
| Method | Best Fit | Effort | Accuracy |
|---|---|---|---|
| User-Agent Check | Basic filtering | Low | Easily spoofed |
| Canvas/Font Detection | Headless bots | Medium | High |
| Behavioral Analysis | Advanced scrapers | High | Very High |
| CAPTCHA/Challenge | High-risk traffic | Medium | Absolute (for humans) |
Choose User-Agent checks only if you want to filter out the most basic script-kids. Use canvas and font detection if you want to catch headless browsers without interrupting the user experience with heavy behavioral tracking.
Decision Framework for Deployment
When deciding how to integrate these checks, follow this framework:
- Identify the Baseline: Run your detection in "log-only" mode for one week. See how many legitimate users trigger the empty font signal.
- Define the Threshold: Determine if a single empty canvas is a bot or if you need a combination of canvas and GPU signals.
- Set the Action: Decide what to do. A low score might trigger a silent JS challenge, while a high score might trigger a hard CAPTCHA.
- Monitor Conversion: Track if your conversion rates drop after deployment. If they do, your false positive rate is too high.
BotRefund keeps this signal as evidence—not a verdict—and cross-checks it against independent browser, network, device, and behavior data. This approach ensures that privacy tools, travel, corporate networks, and unusual devices that produce unexpected behavior for genuine people are not mistakenly blocked.
Limitations and Exceptions
Font canvas detection is not a silver bullet. Privacy-conscious users often use "stealth" extensions that intentionally randomize canvas data to prevent fingerprinting, which can look like a bot signature. Additionally, advanced bot farms using tools like Puppeteer or Playwright can use stealth plugins to mimic real rendering environments.
This advice does not apply if you are targeting a very niche audience where you control the browser environment (like internal corporate apps). In those cases, you can be much more aggressive with blocking rules.
BotRefund's edge AI prediction weighs the complete multi-layer pattern instead of relying on a fragile static rule. This means that even if a bot mimics one signal, the combination of over 110 independent checks—including hardware and GPU fingerprinting—makes evasion much harder.
Frequently Asked Questions
Why do some browsers return an empty canvas?
This usually happens in headless environments where the GPU is not present, or when privacy extensions intentionally block the canvas API to prevent fingerprinting.
Can a bot spoof font canvas detection?
Yes, advanced bots can use plugins to mimic real rendering data, which is why correlating canvas with other signals like GPU and behavior is more effective.
What is the cost of implementing this detection?
The cost is primarily engineering time to integrate the script and monitor for false positives to ensure you aren't accidentally blocking your best customers.
How should I compare canvas detection to CAPTCHA?
Canvas detection is a passive signal used to identify bots, while CAPTCHA is an active challenge used to verify humans after suspicion arises.
What happens if I only use font canvas detection without other signals?
You risk high false positive rates. Privacy browsers and extensions can trigger the signal, blocking real users. Always combine with other checks like GPU fingerprinting and behavioral analysis.
How long does it take to set up empty font canvas detection?
With a solution like BotRefund, setup can be as fast as 60 seconds via a single Cloudflare edge script. The script runs with zero critical rendering path delay (0ms latency).
Can this detection help recover ad spend from bots?
Yes. By identifying invalid traffic at the edge, you can prevent bot clicks from triggering conversion pixels. This preserves your ad platform's machine learning models and supports refund claims with Google and Meta. BotRefund reports an 83% refund claim approval rate.
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.