Hacker News new | ask | show | jobs
Show HN: Redirect Checker – open-source URL redirect analysis tool (github.com)
21 points by proxyguru 675 days ago
RedirectChecker is a comprehensive URL redirect analysis tool that helps you examine and optimize your website's redirect structure. It offers features like bulk URL checking, detailed redirect path analysis, and SEO impact assessment to ensure your redirects are implemented correctly and efficiently.
3 comments

I used your free api and the response gives no insights, is that how it is supposed to work?

e.g. [ { "url": "https://pretzelai.github.io", "host": "pretzelai.github.io", "status": 200, "statusText": "OK", "duration": "0.167 s", "location": null } ]%

Yes, that's correct. The API returns JSON data showing the final destination and status. If there were redirects, you'd see multiple entries in the array.
Example:

    [
      {
        "url": "https://bit.ly/abc",
        "host": "bit.ly",
        "status": 301,
        "statusText": "Moved Permanently",
        "duration": "0.156 s",
        "location": "http://www.yahoo.com/"
      },
      {
        "url": "http://www.yahoo.com/",
        "host": "www.yahoo.com",
        "status": 301,
        "statusText": "Moved Permanently",
        "duration": "0.081 s",
        "location": "https://www.yahoo.com/"
      },
      {
        "url": "https://www.yahoo.com/",
        "host": "www.yahoo.com",
        "status": 200,
        "statusText": "OK",
        "duration": "0.488 s",
        "location": null
      }
    ]
Redirected from bit.ly to HTTP yahoo.com and then redirected to HTTPS yahoo.com
Not completely getting what it provides. It means from the start it will capture all the redirects whic happens in the app and stores it ?
how does it handle redirects that are conditional or based on user agent?

e.g. if a site redirects mobile users to a different URL, will redirect checker follow that redirect or just report the default one?

Thanks for pointing that out! You're correct, the tool currently uses a default user agent and doesn't catch device-specific redirects. I agree this is an important feature. I'll be adding user agent customization soon. This will let you test mobile, desktop, and other specific redirects. Keep an eye on the GitHub repo for updates. Thanks for the great suggestion!