Hosting this site on the Dark Web
It seems like something of a rite of passage for cybersecurity professionals to have a presence on the dark web. Since this site was always intended as a space to explore my interests and passion in this field, setting up an onion version of the GitBook felt like a natural next step.
If you're interested in viewing this site over Tor, it's available here: aj5odewu3ahr7skiz3g4wlm4wliskzdinyprmq5gzbz2fmov7hf37wad.onion
Objective
Given the use case and intended audience for this site, hosting a dedicated dark web version and syncing content to it is inefficient. This site serves static content only, so a simple reverse proxy via Nginx to the existing GitBook instance is sufficient.
The goal is to create a low-cost, low-maintenance .onion proxy to the public site. This approach is minimalistic, reliable, and surprisingly easy to set up.
Method
Provision a Debian/Ubuntu VM. Any cloud provider will suffice. For this example, I used Google Cloud’s free tier to spin up a Debian VM.
Update and upgrade the machine
sudo apt update && sudo apt upgrade -y, then configure automatic updates:
sudo apt install unattended-upgrades apt-listchanges
sudo dpkg-reconfigure --priority=low unattended-upgradesBe sure to change configurations files of the auto update packages to suit the sites target uptime and risk appetite.
Install Tor:
sudo apt install torEdit Tor's configuration file
/etc/tor/torrcwith the following:
Install Nginx web server:
Configure server to handle incoming traffic and redirect to target site. Create the file:
/etc/nginx/sites-available/tor_proxy
Enable the configuration:
Check for errors:
Reload Nginx:
Start and enable Tor:
Obtain the sites
.oniondomain:
Once this setup is complete, your .onion domain will act as a dark web mirror of your GitBook site via reverse proxy. It’s a simple and effective way to maintain a dark web presence with minimal overhead.
Last updated