Currently Available: Need a skilled Software Developer for your next project?
Categories
DNS

Why Encrypted Client Hello Breaks Sites on Some ISPs and How to Control It in Cloudflare

When a visitor can load a Cloudflare-hosted site on one network, yet the browser times out on another, Encrypted Client Hello (ECH) may be part of the problem. ECH is a privacy feature in TLS, the protocol that encrypts HTTPS connections. It hides the name of the website a browser is requesting from the network equipment along the path, which can break filters and inspection systems that expect to see that name.

Other network problems can cause the same symptoms. Some networks block ECH directly, while others interfere with the DNS records a browser needs to use it, and some block Cloudflare IP addresses for unrelated reasons. If you own a site on Cloudflare, you can turn ECH off for your zone (Cloudflare’s term for a site’s settings) in the dashboard. Network administrators can also change how their DNS resolver, the server that looks up DNS records for clients, handles ECH information, though doing so affects everyone on that network and reduces their privacy.

What ECH hides from the network

Before a browser opens an HTTPS connection, it sends an initial TLS message called the ClientHello. Normally, this message includes Server Name Indication (SNI), which is the hostname the browser wants to reach. A server hosting many websites uses SNI to pick the right site to serve. Because SNI is sent in plain text during the TLS setup, known as the handshake, any network equipment along the path can read it too.

ECH changes this by encrypting the part of the ClientHello that holds the real hostname. The visible outer message carries a shared hostname instead. For Cloudflare sites with ECH enabled, Cloudflare documents cloudflare-ech.com as that outer SNI. Anyone watching the network can still see the server’s IP address and tell that the connection goes to Cloudflare, but they cannot see which specific Cloudflare-hosted site the browser requested. Cloudflare’s ECH documentation explains how the visible outer message and the encrypted inner message work together.

Browsers learn a site’s ECH settings from DNS HTTPS records, which store connection details for a domain. When a browser encrypts its DNS queries, it makes it harder for the local network to read or alter those records. ECH hides the hostname inside the TLS handshake, though it does not hide every detail about the connection. The DNS bootstrapping specification covers how DNS delivers ECH settings to browsers.

Why ECH-related failures vary by network

A network filter that expects to read the real SNI may fail when it encounters ECH. A network operator might block ECH on purpose, or older filtering gear might mishandle the unfamiliar TLS handshake. When that happens, the browser shows a connection error, a reset, or a timeout, even though the website and Cloudflare are both online and healthy.

A 2025 censorship study documented a clear case of this in Russia, where filtering equipment dropped connections to Cloudflare IP address ranges whenever the ClientHello contained both an ECH extension and the outer SNI cloudflare-ech.com. The same researchers also tested networks in Iran and China. In those countries, they found networks interfering with access to encrypted DNS services, instead of the same direct blocking of ECH handshakes. These results show that some networks do interfere with ECH, though they do not mean every ISP in those countries, or ISPs in general, blocks it. You can read the full findings in the FOCI 2025 measurements.

A DNS resolver can also break ECH before the browser even starts the TLS connection. If the resolver strips out or alters the HTTPS record that carries the site’s ECH settings, the browser may never get the information it needs to use ECH. What happens next depends on the browser and how its DNS is configured.

Some corporate and ISP networks use SNI to enforce website rules or inspect web traffic. Because ECH hides the hostname those tools look for, their rules may stop matching traffic as intended. Cloudflare notes that its own HTTP inspection uses SNI to match requests to policies, and in the setup Cloudflare documents, that inspection does not work with ECH. Network operators who depend on seeing hostnames have to account for this when they build their policies, as outlined in Cloudflare’s TLS decryption documentation.

A site can also fail to load because a network blocks Cloudflare IP address ranges outright. When an ISP blocks those IPs, visitors cannot reach the site whether ECH is on or off, so disabling ECH will not solve the problem. Cloudflare covers this separate Cloudflare IP-blocking failure mode in its troubleshooting guide.

How to check whether ECH is involved

Start by loading the site on the affected network and then on a different network. If the site loads on the second network, you know the two networks are behaving differently, though that test alone does not prove ECH is the cause.

Next, check whether the affected network’s DNS resolver returns the site’s HTTPS record, and check whether a filter or TLS-inspection device sits in the connection path. If you manage the site, turn off ECH temporarily in Cloudflare to see if the site starts working on the affected network. If it still fails, test DNS lookups and access to Cloudflare IP addresses separately. Keep in mind that the TLS ECH standard protects browsers against a network attacker trying to force an unsafe fallback that would expose the real hostname. If an ECH connection fails, the browser will not automatically retry with the real SNI in plain text.

How to turn ECH on or off in Cloudflare

If you own a site on Cloudflare, you can control ECH for your zone in the dashboard:

  1. Open the site’s zone in the Cloudflare dashboard.
  2. Go to SSL/TLS → Edge Certificates.
  3. Find Encrypted ClientHello (ECH) and choose the setting you want.

Cloudflare says ECH is enabled by default on Free zones. Customers on other plans can turn it on or off from the Edge Certificates page. This toggle only changes how Cloudflare handles ECH for your zone; it does not change an ISP’s filtering rules. Cloudflare details the setting and plan behavior in its ECH configuration instructions.

If you turn off ECH, you can restore access for visitors on networks that block or mishandle it, though the browser will then send the requested hostname in plain text during the TLS handshake where network observers can see it. Only make this change to fix ECH compatibility problems, since it will not help with DNS failures, IP blocking, or unrelated site errors.

Network administrators can also control whether their DNS resolver hands out ECH settings. Cloudflare documents suppressing ECH configuration inside HTTPS records, or having the resolver return no answer or NXDOMAIN for HTTPS queries. If an administrator alters HTTPS records, clients that validate DNSSEC (a system that verifies DNS answers are authentic) can run into errors. Administrators should weigh that risk before modifying records, and Cloudflare notes that dropping HTTPS responses may be a better option in that situation.

For Firefox, Cloudflare also documents the use-application-dns.net canary domain. A DNS resolver can return no answer or NXDOMAIN for this domain to tell Firefox not to use ECH. This signal applies to Firefox’s default encrypted-DNS behavior, so administrators should not assume it overrides a user who has manually configured encrypted DNS. Any change at the resolver affects clients across the network, and the exact behavior depends on each browser and its DNS settings.

What I'm building

Delegate tasks. Get software.

Give Vroni a GitHub issue, bug report, spec, or rough idea. It reads the repo, plans the change, writes code, runs checks, and works toward a review-ready pull request.

Take a look at vroni.com

Email updates

Usually a new article and a few links I found interesting.

No spam. Unsubscribe with one click.

Leave a Reply

Your email address will not be published. Required fields are marked *