Lurker News
A few hours ago I switched my nameservers to Cloudflare in order to enable R2 bucket serving through my own subdomain, and I found out that it silently had injected a JS analytics snippet in my HTML-only JS-free site textlog.cc — I had to go to the Analytics dashboard, Add the site to the analytics and then disable the snippet. I find this approach entirely invasive, you should opt-in to features like that not have to opt-out. Just a warning out there to folks who might not be aware of this.

Comments (202) 49 threads

Earlier comments
purpleidea2 replies#
Yikes! I see this too:

kevincox2 replies#
Yup, I explicitly had all anaytics turned off. But had a few sites using Cloudflare for caching. Now I'm checking and seeing this on all of them. This is gross and unacceptable. "Caching" does not mean "modifying my site".
zx80803 replies#
MITM attack, that's what it is. Why is this not in the news? Ah, no one cares.
reaperducer#
Why is this not in the news?

Good point. There should be a place where hackers can get this kind of news. Some kind of Hacker News place.

zeafoamrun#
It takes a lot of trust to let a CDN be able to terminate TLS traffic for you and this doesn't exactly give the warm fuzzies.
ironmagma#
Cloudflare is essentially MITM as a service. What else would someone expect?
chrisweekly1 reply#
Adding a RUM beacon for observability / performance metrics capture, as an opt-out feature for free plans (opt-in for paid plans), is not exactly nefarious. Hopefully/presumably there was some communication before the change was rolled out.
matherial#
No. I was on a free plan for years and found out by accident. It's interesting that you set "nefarious" as the bar. I'd simply call it "sleazy".
stackghost#
I'm not seeing this on my site (if you want to check: https://stackgho.st), are you using their `strict` http settings? I.e. is your server terminating TLS or is theirs?

edit: perhaps it's only for sites added after that policy came into effect

corford#
If you're using free hosting and allowing that provider to mitm your origin's traffic, it seems a little naive to assume they wont eventually submit to temptation and start doing something like this.
windexh8er1 reply#
Isn't this well known when using CF as a proxy? Not sure how they would provide traffic / DDoS telemetry otherwise.
JoshTriplett2 replies#
They're serving the HTML, they have every ability to track individual web requests without modifying the content they're serving.
sscaryterry1 reply#
100% But this does not give you any useful personal data :)
JoshTriplett#
Or data for the increasingly invasive Cloudflare captcha.
windexh8er#
I understand how it technically could work. My response was more centric to the fact that CF has been doing this for a long time and you should probably know better when selecting a vendor / feature like this.

Again, this isn't anything new.

celsoazevedo1 reply#
Yes, they add the js if "web analytics" is enabled. I believe I had to manually enable it on my old sites though. Maybe it's enabled by default when adding new domains?
stagas1 reply#
No, I hadn’t enabled for any site. I had to enable first to turn it off.
nilram1 reply#
Maybe send it to them as a bug. Seems more like a mistake than malevolence.
PlotCitizen#
They have a blog post about it so they know what they're doing.

Load more comments