惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

Recent Announcements
Recent Announcements
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
B
Blog
T
The Blog of Author Tim Ferriss
J
Java Code Geeks
腾讯CDC
D
Docker
G
Google Developers Blog
D
DataBreaches.Net
雷峰网
雷峰网
Blog — PlanetScale
Blog — PlanetScale
S
SegmentFault 最新的问题
The Cloudflare Blog
有赞技术团队
有赞技术团队
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Stack Overflow Blog
Stack Overflow Blog
大猫的无限游戏
大猫的无限游戏
量子位
美团技术团队
aimingoo的专栏
aimingoo的专栏
奇客Solidot–传递最新科技情报
奇客Solidot–传递最新科技情报
Engineering at Meta
Engineering at Meta
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More

zplb

我发明了窝窝头文!(自然语言) - zplb Setting Up a Minimal Public TinyProxy with Basic Authentication on CentOS I Built a Web Server That Runs Python and PHP in the Same Page Converting IPA to Speech Using Python Huawei Switch CLI Cheat Sheet
How to Host a .onion Site on Your Own Computer (No VPS Re...
2025-05-11 · via zplb

Most guides online assume you need a server to host a Tor (.onion) site.

You don’t.

You can run a fully working .onion service on a normal computer — no domain, no VPS, no public IP.

Here’s a minimal setup.


1. Install Tor

On Ubuntu:

apt-get install tor

2. Run a Local Web Server

You just need something listening on localhost.

Example (Flask):

from flask import Flask

app = Flask(__name__)

@app.route("/")
def index():
    return "hello world!"

if __name__ == "__main__":
    app.run(host="127.0.0.1", port=1234)

Start the server:

python app.py

3. Configure Tor Hidden Service

Edit:

/etc/tor/torrc

Add:

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

4. Start Tor

service tor start

5. Get Your .onion Address

After Tor starts, open:

/var/lib/tor/hidden_service/hostname

You’ll see something like:

abcdefgh12345678.onion

That’s your site.


Notes

  • The service runs entirely on your local machine
  • No domain registration is required
  • No public exposure — only accessible via Tor

Why This Is Interesting

This setup lets you:

  • Host a website without revealing your IP
  • Avoid traditional hosting entirely
  • Experiment with anonymous services

It’s a surprisingly powerful system for something that runs on a single machine.