Hacker Newsnew | past | comments | ask | show | jobs | submit | proxyguru's commentslogin

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


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!


Mirror Any Website Using Cloudflare Workers

For

- Bypasses geographical restrictions

- Improves access speed

- Enhances privacy protection by masking the user's IP


Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: