_______ _____ _ _ _____ _____ _____
|__ __| | __ \ | | | | | __ \| __ \| __ \
| | ___ _ __ | | | | ___| |_ ___ ___| |_ ___ _ __ ______ | | | | |__) | |__) |
| |/ _ \| '__| | | | |/ _ \ __/ _ \/ __| __/ _ \| '__| |______| | | | | _ /| ___/
| | (_) | | | |__| | __/ || __/ (__| || (_) | | | |__| | | \ \| |
|_|\___/|_| |_____/ \___|\__\___|\___|\__\___/|_| |_____/|_| \_\_|
-- Vishwa
This Python script allows you to detect onion websites, also known as Tor hidden services, and also know as dark websites by checking if a given URL follows the specific pattern used by these websites. It's a valuable tool for digital forensics, cybersecurity, and investigative work.
The script employs regular expressions to match URLs against the pattern commonly used by onion websites. If the URL matches the pattern, it's identified as an onion website.
-
Clone this repository or download the script.
-
Run the script with Python 3, providing the URL you want to check as an argument.
python tor_detector.py
-
The script will output whether the URL is an onion website or not.
$ python detect_onion.py
The URL http://3g2upl4pq6kufc4m.onion is an onion website.

This script has no external dependencies beyond Python 3.
DrPinnacle is a leading cybersecurity and digital forensics company specializing in cutting-edge solutions for a secure digital world. We leverage Python and other advanced technologies to empower our investigations, ensuring the utmost precision and efficiency.
Learn more about us at https://www.drpinnacle.com.
This project is licensed under the MIT License - see the LICENSE file for details.
Feel free to fork and contribute to the project. Your contributions are welcome and will help improve this tool for the community. This addition invites others to participate in the project, making it more collaborative and open to contributions. Please give creadit to DrPinnacle's contributions to the field of digital forensics and cybersecurity.