Tor is a free, open-source software network that routes your internet traffic through three volunteer-run relays, encrypting it in layers so that no single relay knows both who you are and what you are accessing. This layered encryption, called onion routing, is the core of how Tor works.
What Is Tor and Where It Came From
Tor stands for The Onion Router. It began in the mid-1990s as a project by the U.S. Naval Research Laboratory to protect intelligence communications, and later moved to a nonprofit organization. Today, Tor is maintained by the Tor Project, a nonprofit that develops the software and supports the network. The network is run by thousands of volunteers who operate relays—servers that pass traffic along. Tor is used by journalists, activists, ordinary privacy-conscious users, and unfortunately also by criminals, which is why it attracts controversy. But technically, Tor is simply a tool for anonymizing internet traffic.
The core idea is to separate “who you are” from “what you do” online. When you use Tor, your internet service provider (ISP) can see that you are using Tor, but not which websites you visit. The websites you visit see a Tor exit node as the source, not your IP address.
How Onion Routing Works: Step by Step
When you open the Tor Browser and visit a website, your traffic takes a specific path:
- Your computer builds a circuit: The Tor client software selects three relays from the network: an entry guard (also called guard node), a middle relay, and an exit relay. The circuit is built incrementally, with each relay knowing only its predecessor and successor.
- Layered encryption: Your client encrypts the data in three layers, one for each relay. It sends the outermost layer to the entry guard.
- Entry guard decrypts one layer: The entry guard removes its layer and forwards the remaining data to the middle relay. The entry guard knows your IP address but not the final destination.
- Middle relay decrypts another layer: The middle relay removes its layer and forwards to the exit relay. It knows neither your IP nor the destination.
- Exit relay decrypts the final layer: The exit relay removes the last layer and sends the original request to the destination website. The exit relay knows the destination but not your IP address.
- Return traffic follows the same path in reverse, with each relay adding its layer of encryption back.
This is why it's called onion routing: the data is wrapped in layers like an onion, and each relay peels off one layer. No single relay knows both the source and the destination.
What Each Relay Knows (and Doesn't Know)
Understanding the privacy guarantees requires knowing what each party can see:
- Your ISP: Sees that you connect to the Tor network (to an entry guard), but not the content or destination.
- Entry guard: Knows your IP address and that you are using Tor, but not the destination or content (it's encrypted).
- Middle relay: Knows only that traffic is passing through; it cannot link you to the destination.
- Exit relay: Knows the destination and the content (unless you use end-to-end encryption like HTTPS), but not your IP address.
- Destination website: Sees the exit relay's IP address, not yours.
This separation is the key to Tor's anonymity. However, it's not perfect: if an adversary can observe both your entry guard and the exit relay (a global passive adversary), they could correlate traffic. Tor is designed to resist this, but it's a known limitation.
Hidden Services: Tor's Other Side
Tor also allows servers to be reachable without revealing their location, via “onion services” (formerly hidden services). These have addresses ending in .onion. When you visit an onion service, both you and the server build circuits to a rendezvous point, so neither knows the other's IP address. This provides strong anonymity for both parties. Onion services are used for secure whistleblowing platforms (like SecureDrop), but also for illicit marketplaces. The technology itself is neutral; its use varies.
Limitations and Common Misconceptions
Tor is not a magic wand for anonymity. Several important caveats:
- Exit node eavesdropping: If you visit an HTTP (unencrypted) site, the exit relay can read and modify the traffic. Always use HTTPS.
- Browser fingerprinting: The Tor Browser is designed to resist fingerprinting, but plugins or unusual settings can break this.
- Speed: Because traffic bounces through three relays worldwide, Tor is slower than a direct connection. It's not meant for streaming or large downloads.
- Not foolproof: If you log into a personal account (e.g., email, social media) while using Tor, you deanonymize yourself. Tor protects the transport, not your behavior.
- Malicious exit nodes: Some exit nodes are run by attackers. Using HTTPS mitigates this.
- Tor does not encrypt the entire operating system: It only anonymizes traffic that is routed through it. Other applications on your computer may bypass Tor.
A common misconception is that Tor is illegal. In most countries, using Tor is legal. However, using it for illegal activities is, of course, illegal. Some countries restrict or block Tor.
How to Use Tor Safely
For typical users, the safest way to use Tor is the Tor Browser Bundle, which pre-configures privacy settings. Steps:
- Download the Tor Browser from the official Tor Project website.
- Install and launch it. It connects to the Tor network automatically.
- Use the browser as you would any other, but be mindful: don't log into personal accounts, don't install add-ons, and don't open downloaded files while online.
- Ensure you use HTTPS everywhere (the browser includes HTTPS Everywhere by default in older versions; now it's built-in).
- For higher security, consider Tails, an operating system that routes all traffic through Tor.
Remember: Tor anonymizes your connection, but it cannot protect you if you voluntarily reveal identifying information.
Frequently Asked Questions
Is Tor completely anonymous?
No. Tor provides strong anonymity but not absolute. If you log into personal accounts, use unencrypted sites, or if an adversary can monitor both ends of your connection, you may be identified. It's one of the best tools available, but it requires careful use.
Can I use Tor for regular browsing?
Yes, but it will be slower. Many people use Tor for everyday privacy. However, some websites block Tor exit nodes, and services like banking may flag it. It's best for activities where anonymity matters.
Does Tor hide my traffic from my ISP?
Your ISP can see that you are using Tor, but not which sites you visit or what you do. They see encrypted traffic to an entry guard.
What is the difference between Tor and a VPN?
A VPN routes your traffic through a single server, which can see your traffic and your IP. Tor routes through three relays, and no single relay knows both. Tor is designed for anonymity; VPNs are designed for privacy from local networks and geo-unblocking. They can be combined, but that has trade-offs.
Is Tor legal?
In most countries, yes. Some countries restrict it. Using Tor for illegal activities is illegal everywhere.
Why is Tor slow?
Traffic passes through three relays, often across the globe, and each relay adds encryption overhead. The network is also volunteer-run, so capacity varies. Speed is the price of anonymity.