Cloudflare analytics injection exposes the proxy trust boundary
An HTML-only site owner found a Cloudflare analytics script in the delivered page. The debate quickly became about configuration, consent, and what a reverse proxy is technically able to change.
Several users confirmed that Web Analytics can add JavaScript when Cloudflare is proxying traffic, while DNS-only domains do not pass through that HTML-rewriting path.
The sharper complaint was the control surface: one commenter said they had to enable analytics merely to find the setting that disables it.
DNS is not the same as the proxy
The alarming version of the report was that Cloudflare had injected code through DNS. Commenters supplied the missing technical boundary: a DNS-only domain does not give Cloudflare the page response, while a domain using its reverse proxy does. That distinction explains how the script can appear in an HTTPS page.
Cloudflare’s own RUM announcement was cited in the thread as context for Web Analytics. It did not settle the more important question: whether the feature was enabled deliberately, by a changed default, or through a dashboard state that was hard to inspect.
A proxy can change more than the page owner expects
One commenter reduced the issue to its trust model: if an intermediary can inject a script, it can alter the cleartext response it serves. That is a capability users accept for caching, security filters, and performance features, but it becomes conspicuous on a deliberately JavaScript-free site.
Another response pointed to a Content Security Policy that permits scripts only from specified origins. CSP is not a substitute for understanding a provider’s settings, but it makes unexpected browser-side code fail visibly.
The dashboard is part of the product promise
The thread was not unanimous: some users said Web Analytics had been explicitly enabled for their domains, and others saw no injected code on DNS-only setups. The shared concern was narrower and more actionable. A service that sits in the response path needs an obvious, auditable explanation of every feature that modifies that response.
Get breakdowns like this every day
The top Hacker News stories, unpacked — by email, Telegram, or RSS.
Claude Code users meet the end of a 50% quota lift
Anthropic’s temporary weekly Claude Code allowance ends on August 19. Hacker News readers who had forgotten the promotion treated the announcement as a sudden return to their actual capacity ceiling.