How To Host A Website In Deep Web(Onion Url)

Kaushal Agarwal
2 min readJun 1, 2018

--

Requirements:

1- Having concept of hosting a website using apache2 server locally in linux.

2- Tor Browser

Open Your Terminal and Type:

sudo apt-get install tor

After installation is complete..Type..

cd /etc/tor

Now open torrc file in that directory.

Go to the bottom of the file.

Make sure last two lines are commented as shown in pic and add these two lines.

HiddenServiceDir /var/lib/tor/hidden_service
HiddenServicePort 80 your_private_ip

Note:If you are hosting it for second time,kindly delete the hidden_service dir in /var/lib/tor dir if already present.

Find your private ip using ifconfig command in terminal.

Keep your web pages(contents) that you want to host in /var/www/html directory.

sudo service tor start

sudo service apache2 start

Find your onion site url in hostname file in /var/lib/tor/hidden_service directory.

Open Tor Browser

Open your url on Tor Browser.

And done!

Congrats..You have successfully hosted a website on deep web.If you lke the post plz do clap.

Sign up to discover human stories that deepen your understanding of the world.

Free

Distraction-free reading. No ads.

Organize your knowledge with lists and highlights.

Tell your story. Find your audience.

Membership

Read member-only stories

Support writers you read most

Earn money for your writing

Listen to audio narrations

Read offline with the Medium app

--

--

Kaushal Agarwal
Kaushal Agarwal

No responses yet

Write a response