How to Host Your Own Tor Hidden Service

This is a tutorial on how to securely host and run your own Tor hidden service.

First thing that's required is your own web server and secondly you need to  configure the server in such a way as to prevent any possible information leaks (most importantly your location!).

This tutorial makes use of whonix, which means any accidental leaks (DNS, IP etc.) are highly unlikely. For even better security consider using a dedicated machine for running your web server.

So go ahead, download Whonix Workstation + Gateway. Download VirtualBox,  import the .ova files and fire up your machines. 

On the Whonix Gateway
sudo nano /etc/tor/torrc
#make sure to add the following 2 lines to file, save and exit
HiddenServiceDir /var/lib/tor/hidden_service/ 
HiddenServicePort 80
How to Host Your Own TOR Hidden Service Restart Tor
sudo service tor@default reload
A a hostname (e.g. 123xuadfuhqwer.onion) has been created! You can obtain it by displaying the contents of the  "hostname" file.
sudo cat /var/lib/tor/hidden_service/hostname
Now that you are done with configuring the Whonix Gateway, switch over to the Whonix Workstation, where we will install our Linux web server. I recommend using lighttpd an open-source web server which has an especially low memory footprint.
sudo apt-get update
sudo apt-get install lighttpd
Browsing to your .onion address will now result in the default lighttpd "placeholder"  and you may proceed to get your content up and running. 
How to Host Your Own tor Hidden Service


  1. this is great! thank you.

  2. Is there really no port forwarding required?, I did everything as you put down, and it won't work.

  3. You should check your firewall settings, or maybe some other software is using the configured port.

  4. ... or .Onion is blocked by ISP

  5. Onion is blocked by isp


Post a Comment

Popular posts from this blog

How to be anonymous on the internet (99-100%)

Deep Web Link List (.onion)

Automatically Check The Raspberry Pi's Temperature (+Prevent Overheating)