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=http://www.dollarade.com/noscript.php">

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 = 'http://www.dollarade.com/adblock.php'; }</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.

  • 2
    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).

  • 1
    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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.