How to track url redirects in the browser?
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?
Edited: It is now a decade later and there's a better way to do this
- goto https://deref.link/
- paste in the url in quetion.
- hit enter.
- read the results on the right hand side.
original 2011 answer
-
Install FireBug 1
-
open firebug
-
goto the net tab
-
click on the "persist" option
-
enter your url
-
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
-
Install FireBug 1
-
open firebug
-
goto the net tab
-
click on the "persist" option
-
enter your url
-
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
- Or use any other form of devtools for your favorite browser.
Now, when FireBug is integrated into developer tools you may enable persistent logs by next steps:
- Open DevTools (F12)
- Go into
Toolbox options
(forth icon from right top) - Find
Common preferences
section Enable persistent logs
- Observe network requests and responses under the
Network
tab
Screenshot:
UPD
I update by FF to v61. In this version configuration slightly different:
- Open DevTools (F12)
- Enable
Persists Logs
UPD
For newer version of FF, this options are at settings:
If you don't want to install firebug, then you can use the Redirect Tracing Tool