Cloudflare Hides Your Origin Server's Weak Security
What Cloudflare Doesn't Tell You
Cloudflare gives visitors TLS, IPv6, and post-quantum encryption, but the link from Cloudflare to the origin server can be unencrypted and IPv4-only. The dashboard rarely warns administrators, and Cloudflare's own docs say it prefers IPv4 for origin requests even when IPv6 is available. The author argues Cloudflare should surface these gaps and push website owners to modernize instead of letting them hide behind the proxy.
For proxied DNS records that have both an IPv6 and IPv4 origin address, Cloudflare will prefer the IPv4 address when connecting to your origin server.
- jgrahamc
> One of my biggest problems with this is the fact that Cloudflare doesn't do enough to notify website administrators about these issues.
I think we made a very large effort to make sure our customers were using TLS to the origin.
In 2022, we released the SSL/TLS Recommender (https://blog.cloudflare.com/ssl-tls-recommender) which helps a customer figure out what settings they can use for their origin connection. This is a bigger deal than you might think at Cloudflare scale because end customers aren't always in control of their TLS configuration on their server (e.g. imagine they are using a WordPress hosting company).
In 2024, we had confidence that at scale the recommender worked and announced we were going to automatically set the TLS level for origin connections (https://blog.cloudflare.com/introducing-automatic-ssl-tls-se...).
In 2025, we followed up on that with a review of how that roll out had gone and announced post-quantum origin connections (https://blog.cloudflare.com/automatically-secure).
Doing something at Cloudflare scale is always... weird. For example, we'd see situations where a customer had configured HTTP to their origin and if we switched to HTTPS automatically we'd get different content! You can read about those issues in this 2020 research paper: https://www.cs.umd.edu/~dml/papers/https_tma20.pdf
- huijzer
My biggest problem with Cloudflare is that most people do not need DDoS protection, and that choosing Cloudflare lowers uptime when compared to a simple VPS at reliable provider. Like GitHub and other massive providers, it’s just very common for one of the parts of that massive system to go haywire and take the whole thing down for a few hours. Datacenters with VPSes as far as I know don’t often go down.
- viraptor
> they actively prefer IPv4 over IPv6 when making origin server requests
This feels extremely irrelevant. If you want IPv6, you can disable IPv4. Why would you expose both for CloudFlare to choose from? What's the actual problem here?
- e63f67dd-065b
> I also believe the industry should consider adding functionality so CDNs and other intermediate networks can expose origin TLS connection information alongside their own. This would allow users and network researchers to better understand the encryption state of the entire path and hold website owners accountable for bad security practices. A similar mechanism could expose which IP version is being used to communicate with the origin server.
The whole point of cloudflare is to shield origin servers from the internet, why would I want them to expose more info about origins than they currently do?
- Thaxll
"But Cloudflare's connection to the origin server might be entirely unencrypted and rely exclusively on IPv4"
Cloudflare can generate a certificate to connect to the origin server, you should use that.
- dktbs
In my experience, Cloudflare will pretty loudly encourage users to set up Full strict encryption to origins.
- Velocifyer
If you have both equivelent IPv4 to origin and IPv6 to origin, IPv4 to origin saves 4 bytes per packet of overhead. (Remember, the internet runs on layer 2 packets of 1500 bytes, after layer 2 overhead)
If you want IPv6 to origin (EG to bypass NAT), then you can still tell it do to that by setting a proxied AAAA and deleting the A.
- sholladay
I think most people who use Cloudflare ought to be using Cloudflare Tunnel to make the connection to the origin server, instead of just proxied DNS. That won’t work for everyone, but it should be presented as the default. Doing so would solve the underlying concerns here and allow a lot of firewalls to remain closed.