need help blocking a script + redirect

Ask for help about NoScript, no registration needed to post
Guest

need help blocking a script + redirect

Post by Guest »

I'm trying to go to this page: http://www.crickethighlights.org/3234/i ... kata-2011/

When going there it automatically redirects you to a dollarade page: http://www.dollarade.com/noscript.php

Stopping the page and analysing the code gives these scripts in <head>

Code: Select all

<script language="javascript" type="text/javascript">
var hasloaded = false;
</script>

Code: Select all

<script src="http://www.dollarade.com/overlay_gateway.php?oid=13083&pubid=7519" language="javascript" type="text/javascript">
/* WARNING: This program, the Dollarade Overlay...[snip a looooooong line of code]
</script>

Code: Select all

<script language="javascript" type="text/javascript">
if (!hasloaded) { window.location = 'http://www.dollarade.com/adblock.php'; }
</script>

Code: Select all

<noscript>
<meta content="0;URL=http://www.dollarade.com/noscript.php" http-equiv="refresh">
</noscript>
Is there any way to stop getting redirected to that page? Shouldn't noscript stop those scripts from loading?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: need help blocking a script + redirect

Post by al_9x »

Guest wrote:Is there any way to stop getting redirected to that page? Shouldn't noscript stop those scripts from loading?
It's not the scripts, it's the meta refresh in <noscript>. options -> advanced -> untrusted -> "Forbid META redirections inside <noscript> elements"
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Guest

Re: need help blocking a script + redirect

Post by Guest »

Thankyou very much mate!

Was that something I accidentely did or does it come as standard?
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:7.0.1) Gecko/20100101 Firefox/7.0.1
al_9x
Master Bug Buster
Posts: 931
Joined: Thu Mar 19, 2009 4:52 pm

Re: need help blocking a script + redirect

Post by al_9x »

forbid meta is not on by default, perhaps it should be.
Mozilla/5.0 (Windows NT 5.1; rv:8.0) Gecko/20100101 Firefox/8.0
Tom T.
Field Marshal
Posts: 3620
Joined: Fri Mar 20, 2009 6:58 am

Re: need help blocking a script + redirect

Post by Tom T. »

al_9x wrote:forbid meta is not on by default, perhaps it should be.
I second al_9x's suggestion to add this setting to default-block.

Also, this setting should have an FAQ in the NoScript FAQ. Searching for "meta", "refresh", and "redirect", as a new user might, does not bring up any information on this setting. It should.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.23) Gecko/20110920 Firefox/3.6.23
Post Reply