Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

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

1 Answer 1

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
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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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