media

How to build a website using Tor

Not a lot of people know about .onion websites, not many people actually use it.
ONION websites are used by people who want to stay anonymous.

First of All let's start with the requirements:

  1. Tor Installed (For Windows) OR Downloaded and extracted (Linux)
  2.  A Server like Apache. (Windows users are advised to use XAMPP and Linux users, you can simply install Apache2 on your machine.)
  3. Text Editor.

If you have all the above, then you're ready to go! First of all run Tor to make sure it's working:



If it's working, then that's good you're good to go for the next step.
Stop and close Tor for now, Then Open the following file:







WINDOWS:

C:\Tor Browser\Data\Tor\torrc

Linux:

Open the extracted folder from tor > Data > Tor > torrc


Then add the following text at the bottom of the file:

WINDOWS:

# Hidden Service
HiddenServiceDir C:\Users\UserName\tor_service
HiddenServicePort 80 127.0.0.1:80

Linux:

# Hidden Service
HiddenServiceDir /root/tor_service
HiddenServicePort 80 127.0.0.1:80



You can change from root to any user you are using.

Now make the directory in the path you added in torrc (tor_service)
Now start you apache server and make sure it's working!
If it's working, start Tor! Check Log Message to check that there was no error starting it!
No errors! Now check the folder that you created "tor_service" You will find two files!
Open the file "hostname" and you will find you .onion link!!

This link is now working and ONLY ACCESSIBLE for Tor users! Want to test it? Open tor, and access it!

If there is any problem in any of the steps, you can email me at : jayant.jeet.tomar.me@gmail.com