What Is a Tor Hidden Service?

A Tor hidden service, officially known as an Onion service, is a network service or website that operates entirely within the Tor network to provide mutual anonymity and end-to-end encryption. Unlike traditional web services that expose their public IP address to direct traffic, hidden services allow publishers to host websites, messaging platforms, or databases without revealing their physical location, network address, or server identity to visitors or internet service providers. This article explains how Tor hidden services work, their primary security benefits, and their practical use cases.

The Core Concept of Onion Services

In a standard internet connection, a client sends a request directly to a server’s IP address, allowing both parties—and any network intermediaries—to identify who is communicating with whom. Tor hidden services disrupt this model by establishing connections through the Tor overlay network.

Hidden services are identified by special addresses ending with the .onion top-level domain (for example, expyuz5wqqfdgah56...onion). These addresses are not standard domain names resolved by the traditional Domain Name System (DNS). Instead, an onion address is a cryptographic public key generated automatically when the service is configured. Because the address itself contains the public key, connections to onion services are self-authenticating and inherently encrypted.

How a Tor Hidden Service Works

The connection between a user and an onion service relies on a multi-step cryptographic handshake:

  1. Setting Up Introduction Points: When a hidden service starts, it chooses several random Tor relays to act as its “introduction points” and builds encrypted circuits to them.
  2. Publishing a Service Descriptor: The service signs a descriptor containing its public key and the list of its introduction points, then publishes this descriptor to Tor’s distributed hash table (DHT).
  3. Client Lookup: When a user enters a .onion address into a Tor-enabled browser, the client retrieves the service descriptor using the address as the lookup key.
  4. Establishing a Rendezvous Point: The client selects an independent Tor relay to serve as a “rendezvous point,” builds a circuit to it, and assigns a one-time secret authorization token.
  5. Connecting Through Introduction Points: The client sends an encrypted message to one of the service’s introduction points, asking it to forward the rendezvous point details and the secret token to the hidden service.
  6. The Rendezvous: The hidden service connects to the chosen rendezvous point via its own multi-hop circuit. The rendezvous point joins the two circuits together without knowing the identity or IP address of either party.

Through this design, the client never learns the server’s IP address, and the server never learns the client’s IP address.

Key Benefits of Tor Hidden Services

Common Use Cases

Tor hidden services are used in a variety of contexts where privacy, security, and resistance to censorship are paramount: