Monday, September 06, 2021

How to expose your site on Tor Browser as an onion site

 In this article we will show you how to create your own .onion domain from your personal laptop/PC and expose this .onion site to the world free o cost.

Now lets create a simple project using XAMP project. Once you download xamp and setit upo on window we need to start the Apache server as shown below.

Note : XAMP can be downloaded from below location

https://www.apachefriends.org/download.html

Now open the browser and hit this url you will be able to open the default index.

http://localhost/dashboard/

Now first install Tor browser. I am using window machine. You can download the TOR browser from this location

https://www.torproject.org/download/

Once you install you will be able to get this folder inside your location on which you had installted TOR browser.

Lets create a folder called as tor-domain inside it. This will be the space which will be used by the TOR for registering and using your domain.

Now lets go to the below folder and update on torrc file shown below

Add following line inside it

# This file was generated by Tor; if you edit it, comments will not be preserved
# The old torrc file was renamed to torrc.orig.1, and Tor will ignore it

ClientOnionAuthDir C:\Tor Browser\Browser\TorBrowser\Data\Tor\onion-auth
DataDirectory C:\Tor Browser\Browser\TorBrowser\Data\Tor
GeoIPFile C:\Tor Browser\Browser\TorBrowser\Data\Tor\geoip
GeoIPv6File C:\Tor Browser\Browser\TorBrowser\Data\Tor\geoip6
HiddenServiceDir C:\Tor Browser\tor-domain
HiddenServicePort 80 127.0.0.1:80

Now restart the TOR browser and you will your site .onion url inside hostname file as shown below
C:\Tor Browser\tor-domain

yugxf4xkfxizea5akhq5lxhvirr7r5ev3w72irma57duqfbk7rwv7yid.onion

Now you can open this onion url in tor browser and that’s it, we can access this from any TOR browser from internet.

No comments: