How to set up a TOR hidden service
I had no idea setting up a .onion TOR hidden service is so easy. If you want to do it on a raspberry pi, it’s:
sudo apt install nginxsudo nano /var/www/html/index.nginx-debian.html- Paste your index.html contents
sudo service nginx restartsudo apt install torsudo nano /etc/tor/torrc- Uncomment:
RunAsDaemon 1DataDirectory /var/lib/torHiddenServiceDir /var/lib/tor/http_hs/HiddenServicePort 80 127.0.0.1:80
- Uncomment:
sudo service tor restart- Get the onion link
sudo cat /var/lib/tor/hidden_service/hostname
(I’m not saying this is safe or secure - I don’t know - I’m just surprised it’s this easy)