Bulletproof VPS for Tor Onion Services: Setup and Security Guide
Running a Tor hidden service (.onion) on bulletproof VPS combines two layers of protection: the Tor network hides the server's IP address from users and network observers, while bulletproof hosting protects against hosting provider termination due to content or abuse complaints.
Need this done for your project?
We implement, you ship. Async, documented, done in days.
Tor Hidden Service Configuration
Setting up a Tor hidden service on AnubizHost Linux VPS:
Install Tor:apt install tor
Configure /etc/tor/torrc:HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80
Start Tor:systemctl restart tor
Get your .onion address:cat /var/lib/tor/hidden_service/hostname
Run web server locally: Nginx or Apache listening on 127.0.0.1:80 only. Never expose your actual web server port to the public internet - route all traffic through Tor.
Generate vanity .onion address (optional): Use mkp224o to generate a .onion address with a specific prefix. Computational cost: approximately 1 hour to generate a 6-character prefix on modern hardware.
Security Hardening for .onion Services
Security measures for hidden service operators:
- No clearnet exposure: Ensure your web server only listens on 127.0.0.1, not 0.0.0.0. A misconfigured server exposing port 80 to the internet deanonymizes the hidden service.
- Firewall rules: UFW rules blocking all inbound traffic except SSH (from specific admin IP). All web traffic should go through Tor onion routing only.
- Application security: Standard web application security applies to .onion sites. OWASP Top 10 vulnerabilities (SQL injection, XSS) can deanonymize operations through application-layer mistakes.
- Traffic correlation resistance: High-volume .onion sites can be deanonymized through traffic analysis. For maximum security, use multiple servers with load balancing across different circuits.
Related Services
Why Anubiz Host
Ready to get started?
Skip the research. Tell us what you need, and we'll scope it, implement it, and hand it back — fully documented and production-ready.