Skip to main content

Why HTTPS Leaks Visited Domains: SNI & ECH Explained

Updated 5 min readMarkdown
Why HTTPS Leaks Visited Domains: SNI & ECH Explained

Quick Answer: The HTTPS padlock secures your data payload and specific URL paths, but your browser still transmits the destination domain in plaintext during the initial TLS handshake via Server Name Indication (SNI). Network administrators and ISPs can see which websites you visit until Encrypted Client Hello (ECH) is universally deployed across web servers and DNS.

That little padlock icon sitting in your browser's address bar feels like a bulletproof shield. We tell non-technical users and colleagues that it guarantees privacy, that every byte traveling across the wire is encrypted and unreadable to eavesdroppers.

That is mostly true, but there is a major catch right at the front door of every HTTPS connection.

Can someone on your network see which websites you visit over HTTPS?

Yes, anyone observing your network traffic can see the exact domain names you connect to, even over HTTPS. While the padlock guarantees that your specific URL path, headers, cookies, and page contents are encrypted, the initial connection message leaves the destination domain completely unencrypted.

Imagine sending a parcel through the mail. You can lock the contents inside a steel safe, but you still have to write the destination address on the outside of the box so the courier knows where to take it. If you sit on an office Wi-Fi network or coffee shop hotspot, the network operator cannot see that you are browsing a specific article or submitting a form, but they can see plain as day that you just connected to wikipedia.org or reddit.com.

Why does the initial TLS handshake leak your destination domain?

The domain leaks because of a mechanism called Server Name Indication (SNI), which requires the client to announce the domain it wants before encryption is established. A single server or content delivery network (CDN) IP address routinely hosts thousands of distinct websites, so the server needs to know which domain you want before it can return the correct TLS certificate.

Here is how that handshake sequence plays out:

  1. Your browser reaches out to an IP address and sends an initial unencrypted message called the ClientHello.
  2. Inside this ClientHello, your browser includes the SNI field containing the target domain (for example, en.wikipedia.org) in clear plaintext.
  3. The server at that IP inspects the name, grabs the matching certificate for Wikipedia, and sends it back to you.
  4. Once that exchange completes, the browser and server negotiate encryption keys, and every subsequent byte—including the URL path and payload—is encrypted.

If that same IP address also serves medium.com, the server cannot guess which certificate to serve unless your browser asks for it by name first. Because that initial request happens before keys are exchanged, your destination sits wide open on the local network.

Traffic Component Visibility on Local Network (Standard HTTPS) Visibility with Encrypted Client Hello (ECH)
Destination IP Address Visible Visible
Domain Name (SNI) Visible (Plaintext) Encrypted (Hidden)
Full URL Path & Query Params Encrypted (Hidden) Encrypted (Hidden)
Request Body & Cookies Encrypted (Hidden) Encrypted (Hidden)

What is Encrypted Client Hello (ECH) and why hasn't it fixed this yet?

Encrypted Client Hello (ECH) is a TLS 1.3 extension designed to encrypt the SNI field so network eavesdroppers cannot see the domain name you are requesting. It solves the chicken-and-egg problem by having the website publish its public encryption key in advance through DNS records.

When you navigate to a site supporting ECH, your browser queries DNS for an HTTPS resource record that includes the site's public key. The browser uses that key to encrypt the sensitive portion of the ClientHello before sending it to the server. The network snooper only sees a generic outer domain name (often the CDN provider), while the actual destination remains hidden inside the encrypted inner payload.

Modern browsers like Chrome and Firefox already support ECH out of the box. The bottleneck is the server-side ecosystem: websites must publish these specific DNS records and configure their edge infrastructure to terminate ECH handshakes. Outside of major CDNs like Cloudflare, most sites on the web have not implemented it yet.

Frequently Asked Questions

Does HTTPS hide the full URL path from my ISP?

Yes. The full URL path, query strings, headers, and request body are only sent after the TLS handshake completes. Your ISP or network admin can see the domain name (via SNI and DNS), but they cannot see /search?q=secret or the specific pages you view.

Does a VPN hide the SNI domain leak from my local network?

Yes. When you use a VPN, all network traffic from your machine is encrypted and tunneled directly to the VPN provider's server. Your local Wi-Fi router and ISP only see encrypted packets heading to the VPN's IP address; they cannot inspect the SNI or DNS requests inside the tunnel.

How can I verify if a site is using Encrypted Client Hello?

In modern versions of Chrome or Firefox, open the Developer Tools, go to the Network tab, click the primary document request, and inspect the Security or Response details. If active, the TLS connection details will explicitly state that Encrypted Client Hello was used for the handshake.

No comments yet. Be the first to comment.