about · ua-tracer
what does a user agent actually fetch, follow & run?
About ua-tracer
ua-tracer was created by Paul Kinlan — a web developer, Chrome & Web Platform advocate, and builder of small instruments for understanding how the open web actually behaves.
You can find more of Paul's writing, projects, and experiments on paul.kinlan.me, and see the clean editorial aesthetic that inspired this interface over at aifoc.us. The complete source code is open at github.com/PaulKinlan/ua-tracer.
Why this was created
HTTP User-Agent strings are trivially self-reported and say almost nothing about what a client can actually do. Today the web is visited simultaneously by classic search indexers, LLM training crawlers, live AI retrieval agents, social preview unfurlers, headless browser harnesses, security scanners, and real human browsers.
ua-tracer measures capabilities directly rather than trusting labels: whether a visitor parses HTML only, follows nested CSS and <iframe> links, respects robots.txt, evaluates modern CSS media queries, negotiates Client Hints and media codecs, executes JavaScript / ES modules / WebAssembly / Web Workers, maintains realtime WebSockets or fetchLater() beacons, or actuates forms and WebMCP tools.
How it works
1. Per-load isolated trace tokens
Every GET / mints a fresh trace ID and per-request secret (/r/{id}/{secret}/…). That keeps unrelated visitors or scanners from guessing asset URLs and injecting synthetic subresource hits into someone else's trace.
2. Layered asset & runtime probes
The homepage embeds HTML links, <noscript> and Declarative Shadow DOM images, an alternate Markdown link, an <iframe>, <picture> (AVIF/WebP/1x/2x), a byte-range MP4 <video> with WebVTT captions, a 302 redirect, and external CSS/JS/Module/Wasm/Worker/WebSocket/SSE/fetchLater probes.
3. Zero-JS CSS Media Queries & @supports
Tiny CSS-only rules test Level 4 & Level 5 media queries (color scheme, viewport width, orientation, pointer precision, P3/HDR display, scripting, reduced motion/contrast/data), a curated @supports ladder (:has(), CSS anchor positioning, scroll-driven animations), and @media not all / media="print" traps.
4. Client Hints, WebMCP & Agent Forms
Accept-CH requests modern Sec-CH-* headers across subresources, while an accessible diagnostic form (toolname="submit_agent_probe") and imperative document.modelContext.registerTool probe record WebMCP and browser-automation actuation alongside explicit confirmation instructions.
5. Verification & anomaly detection
Claimed bots are checked solely against the edge peer address (CF-Connecting-IP) using daily-refreshed CIDR lists across 13 published operators, plus RFC 9421 Web Bot Auth Ed25519 signature verification and heuristics for datacenter browsers, HTTP/1.1 downgrades, and trap fetches.
6. Edge runtime & privacy
ua-tracer runs on Cloudflare Workers + Cloudflare D1. Credential-bearing headers (such as Cookie and Authorization) are automatically redacted before persistence, trace secrets are never exposed on public APIs, and there are no third-party trackers.
Explore the live corpus: Mint a trace · Browse traces · Reports & Media Queries · Compare agents · Security recon