Creating an onion site isn't as hard as it sounds, but doing it securely requires more than just installing Tor. Here's the process.
Prerequisites
A server (VPS or dedicated machine), Tor installed, a web server (Apache/Nginx), and basic Linux knowledge. For maximum security, consider running on Tails or Whonix.
Install Tor
Download Tor from torproject.org and install it. For a hidden service, you'll run `tor` as a service and configure it to forward traffic to your web server.
Configure the Hidden Service
Edit torrc to add:
HiddenServiceDir /var/lib/tor/my_site/
HiddenServicePort 80 127.0.0.1:8080
Restart Tor, your .onion address will be in /var/lib/tor/my_site/hostname.
Set Up the Web Server
Configure Apache or Nginx to listen on 127.0.0.1:8080 (or whatever port you chose). The hidden service forwards Tor traffic to this local port, your server never touches the public internet directly.
Security Essentials
Disable logging, use HTTPS if possible (self-signed certs work), strip metadata from files, and never reveal your real IP or location. Regularly update Tor and your OS.
Testing
Access your .onion site through Tor Browser to verify it works. Check that your real IP isn't exposed in headers or logs.
The Reality
Onion sites are easy to set up but hard to run securely. Every mistake, a leaked IP, a logged timestamp, a reused credential, can deanonymize you. If you're serious about anonymity, invest in proper OPSEC or don't bother.
Comments 0