Prevent automatic redirects in Firefox
Firefox used to prevent automatic redirects and have a button you could use to opt-in to a redirect. However, a update a couple of months ago eliminated this feature and now Firefox (version 35) always redirects automatic.
How can I get the old behavior back and block automatic redirects?
As of Firefox 56, the menu has now been "simplified" and the option is no longer available.
To turn on the redirect warning:
- Type about:config in the address bar
- Search for accessibility.blockautorefresh
- Set the value to True
Source: Mozilla Support Forum
Go to about:config
and set network.http.redirection-limit
to 1. At each redirection you will get a message "the page isn't redirecting properly". The address bar will show the next URL in the sequence of redirections. Press the Try Again button to accept each redirection.
On the top right, you have the 3 horizontal line menu icon as indicated in the picture below.
Click on options the advanced the> under accessibility > tick the box that says "Warn me when websites try to redirect or load another page".
Although this will restore the old behaviour... EVERY time you click on a link to another website, it will warn you. For example, when you Google something and click on a link, it goes through a couple of redirects before it takes you to the end page ... and you have to click accept each time, which will be a bit of a hassle. It may be that you are trying to block pop-ups. I recommend you read Pop-up blocking and explanation for Firefox (Official Mozilla Guidelines) in case that's what you are trying to do.
Under the Tools
menu in firefox 35.0.1
/Options/Advanced/General/
tab there's a block you can check to be warned when a site tries a redirect
.
A panel will rise the question at the top of the screen for the warning and then you can accept or ignore the redirect process.
May be this will help you out.
If you still face this problem! Download and install this plugin that prevents automatic redirects
ADBlock
Disable 302 redirects!
Link 1
Link 2