Skip to content

It checks if a URL goes through multiple redirects and alerts if there’s a chain or loop, which are harmful for SEO.

License

Notifications You must be signed in to change notification settings

Aditi-Rani/Redirect-Chain---Loop-Detector

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

🔁 Redirect Chain & Loop Detector

A simple Python CLI tool to detect HTTP redirect chains and loops. Useful for SEO audits and performance optimization.


✅ Features

  • Detects:
    • Multiple HTTP redirects (redirect chains)
    • Potential redirect loops
  • Shows:
    • HTTP status codes (301, 302, etc.)
    • Intermediate URLs in the redirect chain
  • Helps improve crawl efficiency and page speed for SEO

🚀 How to Run

1. Clone the Repository

git clone https://github.com/Aditi-Rani/Redirect-Chain---Loop-Detector
cd redirect-checker

2. Install Dependencies

pip install -r requirements.txt

3. Run the Script

python redirect_checker.py

4. Enter a URL

🔗 Enter the URL (with https://): https://example.com

About

It checks if a URL goes through multiple redirects and alerts if there’s a chain or loop, which are harmful for SEO.

Topics

Resources

License

Stars

Watchers

Forks

Languages