How to track url redirects in the browser?

41

12

When I type http://example.com/load/ in my browser and press ENTER, this website redirects me to http://example.com/load/1/, from there to http://example.com/load/2/ and then I finally landed on http://example.com/load/3/.

These redirection happens at the website end, I am not aware where I am going. But I finally landed on this URL: http://example.com/load/3/.

I want to track all the URLs my browser sees. I am not seeing it in my history as its redirect at website end. Is there any firefox addon or some tool which can track this for me?

Prashant

Posted 2011-02-05T18:30:50.087

Reputation: 1 005

1you may use fiddler for all your network needs – krishna – 2012-06-26T12:44:34.593

Answers

44

  1. Install FireBug 1
  2. open firebug
  3. goto the net tab
  4. click on the "persist" option
  5. enter your url
  6. watch the list of urls fetched change. you'll see something like this for your example:

    http://example.com/load/ 302 Moved temporarily
    http://example.com/load/1/ 302 Moved temporarily
    http://example.com/load/2/ 302 Moved temporarily
    http://example.com/load/3/ 200 OK

If you select one of those and open the twisty next to ti you can get the headers which will show you exactly what was requested and what the response was. IN particular you want to look at the Location header on the responses, as that tells your browser what to go load instead.


Footnotes

  1. Or use any other form of devtools for your favorite browser.

cabbey

Posted 2011-02-05T18:30:50.087

Reputation: 681

Footnotes should be taken seriously :) – estellezg – 2019-11-05T00:30:24.720

20

Now, when FireBug is integrated into developer tools you may enable persistent logs by next steps:

  1. Open DevTools (F12)
  2. Go into Toolbox options (forth icon from right top)
  3. Find Common preferences section
  4. Enable persistent logs
  5. Observe network requests and responses under the Network tab

Screenshot:

enter image description here

UPD
I update by FF to v61. In this version configuration slightly different:

  1. Open DevTools (F12)
  2. Enable Persists Logs

enter image description here

Eugen Konkov

Posted 2011-02-05T18:30:50.087

Reputation: 413

1This is what I'm looking for, it help me to track HTTP request and response before redirecting/reloading/new_page. Thanks! – LiuYan 刘研 – 2017-06-18T04:42:06.383

11

If you don't want to install firebug, then you can use the Redirect Tracing Tool

Peter Sundstrom

Posted 2011-02-05T18:30:50.087

Reputation: 111

3

Also you can use https://redirectinspector.com/ or other similar product with additional features - like trace redirects from different device types or from different countries (it's very usefull for testing CPA links etc...)

Konstantin Nosov

Posted 2011-02-05T18:30:50.087

Reputation: 31

1

redirectdetective.com not works with SSL connection (https://) but i have find: WhereGoes? - A tool for tracing the redirect path of URLs.

SMed79

Posted 2011-02-05T18:30:50.087

Reputation: 21

0

just do wget on that URL and you will see the redirect URL in the command-line.

RAM

Posted 2011-02-05T18:30:50.087

Reputation: 11

This question has already been answered, and your answer is rather light on details. Better answers with more information can be good, even when late, but this one is being down voted for these reasons. – music2myear – 2019-06-12T19:59:22.407