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

推荐订阅源

Forbes - Security
Forbes - Security
GbyAI
GbyAI
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
S
SegmentFault 最新的问题
Y
Y Combinator Blog
Recorded Future
Recorded Future
博客园 - Franky
I
InfoQ
T
The Blog of Author Tim Ferriss
Recent Announcements
Recent Announcements
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
博客园_首页
阮一峰的网络日志
阮一峰的网络日志
T
Tailwind CSS Blog
Cyberwarzone
Cyberwarzone
The Register - Security
The Register - Security
H
Hackread – Cybersecurity News, Data Breaches, AI and More
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
雷峰网
雷峰网
P
Palo Alto Networks Blog
G
GRAHAM CLULEY
Cloudbric
Cloudbric
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
MongoDB | Blog
MongoDB | Blog
F
Full Disclosure
Google DeepMind News
Google DeepMind News
Recent Commits to openclaw:main
Recent Commits to openclaw:main
C
Check Point Blog
爱范儿
爱范儿
The GitHub Blog
The GitHub Blog
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
W
WeLiveSecurity
T
Threat Research - Cisco Blogs
U
Unit 42
N
Netflix TechBlog - Medium
The Cloudflare Blog
Spread Privacy
Spread Privacy
Microsoft Azure Blog
Microsoft Azure Blog
美团技术团队
T
Troy Hunt's Blog
Engineering at Meta
Engineering at Meta
H
Heimdal Security Blog
TaoSecurity Blog
TaoSecurity Blog
C
Cybersecurity and Infrastructure Security Agency CISA
T
Tenable Blog
B
Blog
S
Securelist
H
Hacker News: Front Page
Google Online Security Blog
Google Online Security Blog
G
Google Developers Blog

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 Required)
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.