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 nginx
sudo nano /var/www/html/index.nginx-debian.html
- Paste your index.html contents
sudo service nginx restart
sudo apt install tor
sudo nano /etc/tor/torrc
- Uncomment:
RunAsDaemon 1
DataDirectory /var/lib/tor
HiddenServiceDir /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)