Two engineers run the same traffic through the same proxy. One says the provider cannot see anything because the site is HTTPS. The other pulls a connection log and reads the hostname off every session. Neither is wrong, and that is the problem.
The question "can the proxy see it?" has no single answer. It depends on which layer terminates where, and that is decided by the protocol you chose, not by the padlock in the address bar.
Three ways traffic crosses a proxy
There are three common shapes, and they hand over very different amounts of information.
Plaintext forwarding. The client sends a full request line with an absolute URI, such as GET http://example.com/a/b?q=1 HTTP/1.1. The proxy parses the URL, the headers, the cookies and the body, because it has to in order to forward them.
A CONNECT tunnel. The client asks for a TCP connection to example.com:443 and then speaks TLS inside it. The proxy can no longer parse requests. It forwards bytes and knows the endpoint, the timing and the volume.
SOCKS5. Defined in RFC 1928, this carries an address and a port and nothing else. It has no concept of a URL, a header or a method. The proxy is a transport, not an application gateway.
| What the intermediary handles | Plaintext forward | CONNECT tunnel | SOCKS5 |
|---|---|---|---|
| Request path and query string | Yes | No | No |
| Hostname | Yes | Yes | Yes, or no |
| Headers and cookies | Yes | No | No |
| Body content | Yes | No | No |
| Byte counts and timing | Yes | Yes | Yes |
Encryption covers the content, not the routing
TLS protects what is inside the connection: the HTTP request line, headers, cookies and body. It does not hide who you are talking to, because the network still has to deliver the packet somewhere.
The hostname shows up in the TLS ClientHello as the Server Name Indication field, in cleartext, before any key is exchanged. Encrypted Client Hello removes that, but deployment is still partial, so assume the name is visible. A CONNECT tunnel therefore reveals the domain even though it reveals nothing else.
DNS is the second place the name appears, and it is often the one people forget. If the client resolves locally, the name goes to your ISP's resolver and the proxy only ever sees an IP address. If the proxy resolves, the provider sees the name but your local resolver does not. Either way exactly one party outside your machine learns it, and which party that is depends on a configuration detail rather than a promise.
A fifteen-line look at what a proxy can log
The difference between the three modes is visible in the first few hundred bytes of a connection. This is enough to classify a session and decide what a hypothetical log line would contain.
def sniff(head: bytes): if head[:1] == b"\x05": # SOCKS5 greeting (RFC 1928) return "socks5", f"auth_methods={head[2:2 + head[1]].hex()}" line = head.split(b"\r\n", 1)[0].decode("latin-1") method, target, _ = line.split(" ", 2) if method == "CONNECT": # tunnel: endpoint only return "connect", target # example.com:443 host = next((h.split(":", 1)[1].strip() for h in head.decode("latin-1").split("\r\n") if h.lower().startswith("host:")), "?") return "forward", host + target # path and query included The third branch returns a full path with the query string attached, which is exactly the difference that matters in an audit.
Three levers that actually change the surface
Force HTTPS and remove the plaintext fallback. Many stacks still follow an http:// redirect the first time, and that first request carries the full path in the clear. Rewriting or blocking plaintext before it leaves the client removes an entire category of exposure.
Move name resolution to the side you trust more. With SOCKS5 you can send ATYP=0x03 with the domain and let the proxy resolve, or resolve locally and send ATYP=0x01 with an address. The traffic is identical in volume; only the observer changes. Pick deliberately instead of inheriting a default.
Do not install a self-signed root in the middle. A TLS-intercepting middlebox converts a tunnel back into plaintext forwarding, with all the fields in the table above readable again. If a tool asks you to trust a certificate to "make the proxy work", it is asking for exactly the access you were trying to avoid.
Five things this reasoning does not buy you
The exit IP is always visible to the target site. That is the whole point of using a proxy, and no protocol choice changes it.
A "no logs" claim cannot be verified from outside. What you can verify is behaviour: which fields appear in the client configuration, and whether a middlebox certificate is required.
Byte counts and timing survive every mode. An observer who cannot read a page can still tell that 4 MB moved at 14:02, and can often infer the type of activity from that shape.
ECH is not a blanket fix. It is deployed unevenly and can be disabled by a middlebox, so treating the hostname as hidden is unsafe until you test the specific path.
Fixing one artifact does not fix the others. Blocking SNI while leaving local DNS resolution in place simply moves the disclosure, and it usually moves it somewhere you are not looking.
FAQ
Can my proxy provider read my HTTPS traffic?
Not the content, assuming a real tunnel with no intercepted certificate. It can still see the destination hostname, the bytes transferred and the timing.
Does SOCKS5 hide the domain name?
It carries whatever address form the client sends. With a domain in the request the proxy sees the name; with a pre-resolved address it sees only the IP. The protocol does not decide, the client does.
Is ECH enough to keep the hostname private?
Only where both ends support it and nothing in the path strips it. Test the actual route rather than assuming the extension was negotiated.
Can a proxy tell which page I opened?
In plaintext forwarding, yes, including the query string. Inside a CONNECT tunnel or SOCKS5 session, only the host and port, unless something in the middle terminates TLS.
Choosing the right layer
The practical rule: pick the least capable protocol that still does the job. If the client only needs a TCP path, SOCKS5 exposes the least. Per-request policy costs visibility, and that trade should be explicit.
For the Chinese-language version of this layer-by-layer comparison, including the four billing fields every provider necessarily records, see what a proxy provider can actually see. If the next question is which address the target sees at the other end, the proxy IP knowledge base covers protocol support, address types and testing methods.
