How To Create Your Own Website On Deep Web!

How To Create Your Own Website On Deep Web!

Hello friends, I’m back again with an amazing tutorial. I’m sure you are going to like this post. In this tutorial, you’ll learn how to host your own website on the deep web.

Normally, to host a website you need a web server and have to purchase a domain name, but you don’t have to worry about it.

You can create a website on the deep web for free with this method. You don’t have to pay for hosting as well as for the domain name.

How To Create Your Own Website On Deep Web

On the surface web, the website usually has the .com, .net, .org and other types of extensions. The thing that sets a deep web hosted website apart from the normal Internet is its extension. The extension of a deep web or dark web website is .onion. Also the hostname i.e. the domain name itself if like garbled text.

Apart from this, the website hosted on the deep web can’t be accessed using your normal browser like chrome or firefox. You’ll have to install a special browser called the Tor browser in order to access the website.

Here is an example of deep web website–http://3g2upl4pq6kufc4m.onion/

accessing duckduckgo onion domain version

You can see that the hostname ends with .onion extension. You can only access this website using the Tor connection.

So enough of chit-chat, let’s do some serious work.

STEP 1. Create A Web server

You’ll have to use your system as a web server for running a deep web website. For making your system a web server we’ll be discussing three methods.

Also note, that I’m using Kali Linux for creating the web server as all the required tools are preinstalled in Kali. So if you are running any other distribution of Linux, you probably have to download the required tools first. Bear that in mind.

So here the methods.

Method 1. Using Apache Web server

1. Navigate to /var/www/html using the command cd /var/www/html.

2. You can check the files inside that directory using the ls command.

navigating to var www html

You can see that there are two files namely index.html and index.nginx-debian.html.

The index.html file is the file that will be displayed when you type 127.0.0.1 in your browser search box and hit enter.

3. Before going to your localhost IP address(127.0.0.1), you need to start the apache server. To start the Apache web server run the command–service apache2 start.

starting the apache web server

4. Then open any browser and go to your localhost IP which is 127.0.0.1. You’ll see the default page like this.

go to localhost after starting the apache server

If you see a page like below that means, the Apache web server is up and running. You can replace the code inside the index.html file with your custom website too.

5. To stop the Apache web server run service apache2 stop.

Method 2. Creating Server Using Python

1. Create a new folder. I have created a folder named Hackingpress. Then navigate inside that folder.

2. Once you are inside that folder create a new html file. Then place all of your website code inside that html file. Just keep in mind that the file name must be saved as index.html.

Save all of your changes in your file once you have written all of your website code inside the file.

creating a simple webpage

3. Then simply run the following command–python3 -m http.server –bind 127.0.0.1 80

running a web server using python

4. Go to 127.0.0.1 to check if the web server is running. You’ll see your website if everything went fine.

go to localhost after running python web server

5. You can check for logs as well by going to the terminal. To stop the server simply hit CTRL+C.

Method 3. Creating Server Using PHP

1. Create a new folder. I have created a folder name Hackingpress.

2. In that folder create a new html file with your website code. Just keep in mind that the file name must be index.html. Write all of your website code inside this file.

3. Then simply run the following command–php -S 127.0.0.1:80

running the php server in kali linux

4. Go to 127.0.0.1 to check if the web server is running. You’ll see your website if everything went fine.

website served using php web server

5. You can check for logs as well by going to the terminal. To stop the server simply hit CTRL+C.

STEP 2. Installing And Setting Up Tor

1. If not already installed on your system run the command–apt-get install tor.

2. Once the tor service is successfully installed, navigate to /etc/ directory. You can do that by running the command–cd/etc/tor from your home directory.

navigate to etc tor

3. Now, you need to edit the torrc file inside this directory. Open the file with nano or your preferred editor.

4. Press CTRL+W. The search function will pop up. Type the word “hidden” and press enter.

search for the word hidden

5. You’ll see something like this.

Now, remove the hash in front of these two lines as shown in the image.

#HiddenServiceDir /var/lib/tor/hidden_service/
#HiddenServicePort 80 127.0.0.1:80

editing the torrc file

This will make these commands executable.

Now save the file by clicking CTRL+X and type Y.

STEP 3. Finding Out The Hostname

Once the torrc file is configured successfully, you’ll have to find the hostname of your website. Here is how to find out the hostname of your deep web website.

1. Change your directory to /var/lib/tor/hidden_service by using the cd command.

2. Then by doing ls, you can have look at all the files present in that directory. You will see two files namely hostname and private_key.

finding the hostname

3. Simply use the cat command to display the hostname–cat hostname.

4. Copy your hostname and save it in a text file or write it down if you want to. Mine hostname was–uaravybaetug6mbz.onion. So to access my deep web site, I have to enter this address into Tor browser. Also, keep in mind you can not access your website if you are not running any server on your Linux machine.

STEP 4. Accessing Your Deep Web Website

To make your deep web website available all over the globe, you have to start the development server and the tor service at the same time.

1. Go inside the folder where you have the index.html file located on your website. Then start the web server with any of the methods discussed above. I used the python server.

2. Then start the tor service as well by simply running–service start tor. Once you get the successful message that the tor service is running correctly, you can access your website using your hostname.

3. That’s it, this is how you can have your own deep web website hosted on the deep web.

Rundown:  Create Your Own Website On Deep Web

So, this is how you can host a website on the deep web. I hope you liked this tutorial. If you liked it please share it with your friends and also subscribe to notification to receive awesome tutorials like this. You can subscribe by clicking on the red bell icon on the right bottom side of your screen.

Also, if you have any doubt regarding this tutorial, please let me know through the comment section.

Leave a Comment