A powerful Python tool for scanning and validating links on a webpage.
LinkxDoctor is an advanced, Python-based tool designed to help web developers, SEO specialists, bug hunters, and ethical hackers maintain the integrity of their websites. By scanning any given webpage, LinkxDoctor identifies both broken and valid links, ensuring that all the page hyperlinks function correctly.
As the successor to the LinkxDoxer, LinkxDoctor builds on its predecessor's foundation with enhanced features, improved performance, and a more user-friendly experience.
- Comprehensive Link Scanning: LinkxDoctor scrapes the entire webpage to collect all hyperlinks, including internal, external, absolute, and relative links.
- Broken Link Detection: The tool identifies links that lead to non-existent pages (404 errors) or server issues (500 errors), helping you fix problems before they affect your users.
- Retry Mechanism: Temporary network issues? No problem. LinkxDoctor includes a built-in retry mechanism that reattempts failed requests, improving reliability and accuracy.
- Intelligent URL Handling: Forget to include
http://
orhttps://
? LinkxDoctor will automatically handle missing URL schemes, ensuring smooth operation. - Color-Coded Output: Easily differentiate between valid and broken links with color-coded console messages—green for valid and red for broken links.
- Save Reports: After scanning, you have the option to save the results to a text file, making it easy to document and share the link status.
Broken links can severely impact user experience, search engine rankings, and the overall credibility of a website. Regularly checking your site for broken links ensures that visitors and search engines can navigate your site smoothly without encountering dead ends.
LinkxDoctor not only identifies these issues but does so efficiently, saving you time and effort. Whether managing a small blog, or a large corporate site, or hunting for bugs and vulnerabilities, LinkxDoctor is an invaluable tool in your website maintenance toolkit.
LinkxDoctor is also an essential tool for bug hunters and ethical hackers. You can uncover hidden vulnerabilities, misconfigurations, or potential entry points for exploits by identifying broken links. This makes LinkxDoctor a powerful ally in the pursuit of a secure and reliable web presence.
-
Clone the Repository:
git clone https://github.com/BilalAhmadKhanKhattak/LinkxDoctor.git cd LinkxDoctor
-
Install Required Dependencies: Ensure you have Python installed. Then, run:
pip install -r requirements.txt
-
Run the Script:
python linkxdoctor.py
-
Enter the Website URL:
- You will be prompted to enter the URL of the website you want to scan. Ensure the URL includes
http://
orhttps://
. - The tool will automatically handle missing schemes by prepending
https://
to the URL.
- You will be prompted to enter the URL of the website you want to scan. Ensure the URL includes
-
View the Results:
- The tool will display a list of valid and broken links in the terminal.
- Broken links will be highlighted in red, while valid links will appear in green.
-
Save the Report (Optional):
- You will be prompted to save the results to a file.
- If you choose to save, the tool will create a text file (
links_report.txt
by default) containing the list of valid and broken links.
Contributions are welcome! Feel free to fork the repository, make changes, and submit a pull request. Please ensure your code adheres to the existing style and structure.
This project is licensed. See the LICENSE file for more details.
Created by Bilal Ahmad Khan (Mr. Bilred).
GitHub: BilalAhmadKhanKhattak
Feel free to reach out if you have any questions or suggestions!