> ## Content Index
> Fetch the complete content index at: https://www.oransblog.com/llms.txt
> Use this file to discover other available public pages before exploring further.

# How to Create a Tor hidden Service
- URL: https://www.oransblog.com/tor-website/
- Published: 2023-10-16T03:06:34.000Z
- Updated: 2026-10-29T05:58:21.000Z
- Description: Ever wondered how people make darkweb websites? Here's how you can make your own! In a step by step tutorial!
- Author: Oran C
- Tags: #Import 2026-11-12 01:14

Ever wondered how people make darkweb websites? Heres how you can make your own! In a step by step tutorial!

### Prerequisites

- [Linux server](https://www.digitalocean.com/?ref=oransblog.com) (im using ubuntu)
- [Knowledge of command line basics](https://chat.openai.com/?ref=oransblog.com)
- [Brave](https://brave.com/download/?ref=oransblog.com) browser or [The Tor browser](https://www.torproject.org/download/?ref=oransblog.com)
- [Website you want to share](https://chat.openai.com/?ref=oransblog.com)

### Time required: an few hours, or 30 - 60 mins if your hackerman😎

# Background:

1) tor websites are cool! ive always wondered how hard it was to setup one

Turns out? quite easy!

##  Lets get crack'in!😎 

# Setup a linux server

I used [https://digitalocean.com](https://cloud.digitalocean.com/projects/0420b3af-b415-4011-964e-07b01e8f83ac/resources?dropletIsCreating=true&i=bd1bce&ref=oransblog.com) to spin up a simple linux box

![](https://www.oransblog.com/content/images/2023/10/image-82.png)

the 4usd per month one is fine

# Connect to your server

```bash
ssh root@<IP HERE>
example:
ssh root@192.158.1.38

```

Use the password you set in the creation page

# Grab a sample html website

```bash
cd ~
mkdir website
cd website
wget https://gist.githubusercontent.com/wisehackermonkey/8467ae4fbd372c0f634ce372da5ddcec/raw/d0afa0ba3701d91c03b68a6f1a982ca2b5bee4f8/index.html
```

heres the full html page

# Install Tor

```bash
apt update
apt install tor
service tor status
# if tor isnt running make sure its actually installed

# to stop
service tor stop
# restart
service tor restart
```

Note: use 'sudo' if its complaining

# Overview of important files & Directories

### Torrc File (ToreRC)

setups all the confirguation for your tor server, in this case we only edit two config settings

```bash
/etc/tor/torrc

```

### Where tor stores your project's host name (.onion) and crypto

```bash
/var/lib/tor/\<PROJECT NAME>

```

example

```bash
/var/lib/tor/website

```

### Website code folder

```bash
~/\<PROJECT NAME>

```

example

```bash
~/website

```

## Steps in order

```bash
nano /etc/tor/torrc

```

### edit lines \~71, \~72

```bash
HiddenServiceDir /var/lib/tor/hidden_service/
HiddenServicePort 80 127.0.0.1:80

```

![](https://www.oransblog.com/content/images/2023/10/image-83.png)

![](https://www.oransblog.com/content/images/2023/10/image-84.png)

#### becomes

```bash
HiddenServiceDir /var/lib/tor/<NAME OF PROJECT>/
HiddenServicePort 80 127.0.0.1:80

```

#### example

```bash
HiddenServiceDir /var/lib/tor/website/
HiddenServicePort 80 127.0.0.1:80

```

# IMPORTANT!

# Restart tor

##### when tor first installs this director doesnt exist, only after setting the config `HiddenServiceDir` as seen below does this folder pop up with your tor .onion address

```bash
ls /var/lib/tor/
service tor restart
ls /var/lib/tor/

```

if you dont see a `website` directory something has gone wrong make sure you edited the config `torrc` file `/var/lib/tor/website/` is set

should look like this one your done (minus the \_old folder)

![](https://www.oransblog.com/content/images/2023/10/image-85.png)

##  RUN THE SERVER 

# Lets use a python simple server to test if its working

![](https://www.oransblog.com/content/images/2023/10/image-86.png)

the steps up to this point in the terminal

#### run the following

```bash
cd ~/website
python3 -m http.server  80 --bind 127.0.0.1

```

![](https://www.oransblog.com/content/images/2023/10/image-87.png)

# What --bind means?

## and what is 80?

### `--bind 127.0.0.1` \= `HiddenServicePort 80 127.0.0.1:80`

the 127.0.0.1 must match to what `--bind` has

are what ip address the server will allow to connect from.

`127.0.0.1` means only localhost (only your computer)

`0.0.0.0` means anyone can connect.

not recommend if you want to keep the page a **tor only** website

# Lets get the tor .onion address

# And visit the website over TOR!

```bash
cd /var/lib/tor/website
ls
cat /var/lib/tor/website/hostname
```

![](https://www.oransblog.com/content/images/2023/10/image-88.png)

![](https://www.oransblog.com/content/images/2023/10/image-89.png)

Copy this XXXXXXXXXXXXXXXXXXXXX.onion address

Open[ brave.exe](https://brave.com/download/?ref=oransblog.com) or download if you dont have it

![](https://www.oransblog.com/content/images/2023/10/image-94.png)

# Open `Tor enabled` brave Tab

when brave is open use the command

# `ALT+SHIFT+N`

for a tor mode browser tab to open

![](https://www.oransblog.com/content/images/2023/10/image-91.png)

# First Try will probibly look like this

![](https://www.oransblog.com/content/images/2023/10/image-92.png)

#### meaning? the server isnt running!

```bash
cd ~/website
python3 -m http.server  80 --bind 127.0.0.1

```

### still nothing?

##### make sure torrc was set correctly and restart tor

### `/etc/tor/torrc`

```bash
HiddenServiceDir /var/lib/tor/website/
HiddenServicePort 80 127.0.0.1:80

```

### Restart tor

```bash
service tor restart

```

### check to see if tor is running

```bash
service tor status

```

# If everything went to plan...

# This is what success looks like!

![](https://www.oransblog.com/content/images/2023/10/image-93.png)

# Congrats! 🎊🎊🎊

![](https://www.oransblog.com/content/images/2023/10/LokiSuccessGIF.gif)

# you now are the proud owner of a tor website

##  FIN! 

# Out of scope But....

# the `python -m http.server` doesnt last for ever.

# I recommend install something more permanent

| Server Software    | Description                                     | Setup/Installation Command                                                                                                                                                 |
| ------------------ | ----------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| Apache HTTP Server | A widely used and highly configurable server.   | \- On Linux: sudo apt-get install apache2 \- On Windows: Download from [https://httpd.apache.org/download.cgi](https://httpd.apache.org/download.cgi?ref=oransblog.com)    |
| Nginx              | Known for its high performance and scalability. | \- On Linux: sudo apt-get install nginx \- On Windows: Download from [https://nginx.org/en/download.html](https://nginx.org/en/download.html?ref=oransblog.com)            |
| Lighttpd           | A lightweight and fast web server.              | \- On Linux: sudo apt-get install lighttpd \- On Windows: Download from [https://www.lighttpd.net/download.html](https://www.lighttpd.net/download.html?ref=oransblog.com) |
| Caddy              | An easy-to-configure web server with HTTPS.     | Down                                                                                                                                                                       |

##  Resources 

Note: the post was inspired by john Hammond

# Tor setup "tutorial" (not really step by step throgh)

![](https://community.torproject.org/static/images/favicon.ico?h=4e4ad2ce)

# How to use pythons http.server

![](https://docs.python.org/3/_static/py.svg)

# Security best practaces for running tor stuff

![](https://riseup.net/assets/images/favicon.png)

# Random history about .onion Top level domains TLD being approved

![](https://static.lwn.net/images/favicon.png)

![](https://www.oransblog.com/content/images/2021/12/oran.jpg)

# Author

![](https://www.oransblog.com/content/images/2023/08/morse_code_pattern.gif)

by oran collins

![](https://www.oransblog.com/content/images/2023/08/morse_code_pattern.gif)

  
github.com/wisehackermonkey  

Al considerar [camisetas de fútbol para el día de partido](https://www.camisetatienda.com/?ref=oransblog.com), la decisión resulta más sencilla cuando se confirma la talla, el material y el uso previsto. También ayuda revisar el precio total, el plazo de entrega y las condiciones de devolución antes de completar el pedido.

![](https://www.oransblog.com/content/images/2021/12/image-16.png)

  
post\_date = document.getElementsByClassName("byline-meta-date")\[0\].attributes.datetime.value author\_date = document.getElementById("date") author\_date.innerHTML = post\_date.replaceAll("-","")