Actually, at first, what I wanted to do was to set up a server to reverse proxy my website and then access it using a Dark Web domain (accessing a Dark Web domain provides additional privacy protection in addition to the three-layer network bridge!).
To achieve this, you need to learn how to create a Dark Web website first! I forgot how to write in the correct format, so I won't pay much attention to formatting.
- Preparation
Imagine if you have this requirement, then you must have some websites that you can't remember. First, prepare a Tor browser and then prepare a server. If you only need to reverse proxy 1h1g, it's enough. If not, it depends on the website.
- Install Tor
I'm using a Debian server here. Execute the following command to install!
apt install tor
3. Install the cracked version of Baota
wget -O install.sh http://io.bt.sy/install/install-ubuntu_6.0.sh && bash install.sh
4. Install Nginx, you can directly install it in the Baota panel!
- Configure website information
Open the file /etc/tor/torrc
Edit the content as follows:
HiddenServiceDir /var/lib/tor/my_website/
HiddenServicePort 80 127.0.0.1:80
If you need to add multiple sites, just write them as follows!
HiddenServiceDir /var/lib/tor/my_website/
HiddenServicePort 80 127.0.0.1:80
HiddenServiceDir /var/lib/tor/abc_website/
HiddenServicePort 80 127.0.0.1:80
Pay attention to the difference between "my_website" and "abc_abcsite". Then execute: sudo systemctl restart tor to restart Tor.
Open the corresponding directory of HiddenServiceDir and find the hostname file. The Tor domain is inside it. Then add this domain to Baota when adding a website. This Dark Web address can be accessed.
You can upload your own website files or configure reverse proxy.
- More requirements
You can refer to the official documentation: https://community.torproject.org/onion-services/setup/
You can switch TCP requests to Unix, and if you want to use HTTPS for your Dark Web, you can refer to: https://www.anwangxia.com/710.html
There is another way, randomly fill in the information to enable a certificate in Baota, and then modify the port in /etc/tor/torrc to 443. Restart Tor and you can access it using HTTPS.