Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

There is a user preference to disallow a sneaky redirect and display a warning instead:

However, extent of this preference seems to be limited to

<META http-equiv="refresh" content="0;URL=">

kind of sneaky redirects and the malicious web-page can easily circumvent this restriction by using

<script type="text/javascript" language="javascript">if (!hasloaded) { window.location = ''; }</script>

So, the question is: is there an advanced setting (about:config may be?) to take control back over JavaScript-driven sneaky redirects?

If anyone is curious for more: here is user's complaint and sample page from the wild. Note how Firefox omits the history entry due sneaky redirect, making studying an offending page really unconvenient.

share|improve this question
How about noScript, I belive it has that kind of feature. – yasar Feb 20 '12 at 5:15

You won't necessarily be able to modify how Firefox handles this specific function by using built-in controls, but you can certainly download an add-on such as NoScript which will restrict Javascript's ability to redirect you (and just about everything else Javascript may try to do).

share|improve this answer
With the plugin NoScript you are able to stop/block any script on a web page one by one – Dsandre Feb 21 '12 at 15:13

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .