When I type in a URL and hit enter, for example abc.com
, I don't expect to end up somewhere else. I expect an error page if there isn't a site with that URL. But instead I get redirected to another URL (another domain even: abc.go.com
).
I'm no expert on web technology, but as far I can tell there are two main categories of redirect, DNS/registrar redirects (invisible) and server side redirects (visible, http code 301 or 302).
How do I prevent these server side redirects in Chrome? Best case scenario I get a prompt page telling me the page has a different URL or IP, asking if I want to continue.
Another example is hackoverflow.com
I get redirected to two sites from here, after the first redirect I can glimpse a designed homepage before being moved on to a parking site. I'd like to stop halfway this double redirect and examine the second site.
Best Answer
I realize this is far from a perfect answer, as this will only work for responses that serve up content, but I decided to post it as there are currently zero useful, actionable answers.
As a quick-and-dirty solution you may be able to use the debugger (accessible by
F12
orCTRL+SHIFT+I
in most browsers) to give your self an opportunity to opt out of a redirect.Run this line in the console before the page runs any scripts of its own:
For example, using Chrome:
F12
) and switch to the Sources tab.F8
to put the debugger into step-through mode.F8
again to allow scripts to run and let the page finish loading.