hn.today

Self-Hosting on the Dark Web

david.alvarezrosa.com350 points115 comments
Screenshot of Self-Hosting on the Dark Web

A step-by-step guide to hosting a personal website as a Tor hidden service, explaining why Tor gives anonymity and how to configure a self-hosted site to live on a .onion address. It highlights that hidden services remove the need for certificate authorities and DNS and hide the server IP by deriving the address from a key and relying on Tor’s encrypted relay network. The write-up encourages supporting the Tor Project and notes the privacy benefits of volunteer relays while stressing operational details that preserve security and anonymity.

Practically, set up Tor to point a hidden service directory at a local web port, ensure that directory is dedicated and owned by Tor with strict permissions, restart Tor and read the generated .onion hostname. Configure the web server to listen on localhost (the forwarded port) without TLS because Tor handles encryption. For static sites, build a second copy with the onion base URL so links resolve correctly when served over Tor; the author uses Hugo to build both clearnet and Tor targets automatically and rsyncs each build to separate web roots. The post includes the exact config and an example .onion address to connect with Tor Browser.

Read on david.alvarezrosa.com115 comments on Hacker News

Summary generated by AI from the linked article. hn.today is not affiliated with Hacker News or Y Combinator.

More in Security

The daily digest

Today's best Hacker News stories, summarized and screenshotted, one email a day.