HostOnion Enables users to Host A Hidden Service on TOR with an Onion Address !This tool uses your device as a server and hosts your PHP webpage on the Deepweb temporarily with a unique onion URL
HostOnion allows you to instantly host your website as a Tor Hidden Service directly from your device.
It automatically:
- Starts a local PHP server
- Configures Tor hidden service
- Generates a unique
.onionaddress - Routes traffic securely through Tor network
Your device becomes a temporary Deep Web server while the script is running.
- Fully rewritten in Python 3
- Cleaner process handling
- Custom site folder support
- Full PHP support (not just static sites)
- Optional custom port selection (
--port) - Auto free-port detection
- Easy onion reset (
--new) - More stable and lightweight
- Works on Termux + Linux
- Python 3
- PHP
- Tor
pkg install python php torgit clone https://github.com/anubhavanonymous/HostOnioncd HostOnionpython3 hostonion.py your_site_folderpython3 hostonion.py examplesitepython3 hostonion.py your_site_folder --port 8080python3 hostonion.py your_site_folder --newPress CTRL+C to stop the service
🧅 HostOnion v2.5 - PHP + CLI + Reset
Author: Anubhav Kashyap GitHub: github.com/anubhavanonymous | Telegram: @anubhavanonymous
[+] Starting PHP server on port 9000 (folder: example_site)...
[+] Starting Tor hidden service...
[+] Onion URL: http://xxxxxxxxxxxxxxxx.onion
[+] PHP running on port 9000
[+] Press CTRL+C to stop.-
Starts PHP built-in server on localhost
-
Creates Tor configuration (torrc)
-
Generates hidden service directory
-
Launches Tor
-
Waits for onion address
-
Displays your unique . onion URL
Once stopped, the hidden service becomes unavailable.
This tool is for educational purposes only ! I will not be responsible for any misuse
• Originally made for Termux users.
• Now works on Termux, Linux, and other POSIX systems.
• Designed to run even on low-end Android devices.
• Service runs temporarily while script is active
• Github : https://github.com/anubhavanonymous
• Telegram : https://t.me/anubhavanonymous
