Page 1 of 1

need help blocking a script + redirect

Posted: Sun Oct 30, 2011 6:31 pm
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?

Re: need help blocking a script + redirect

Posted: Sun Oct 30, 2011 6:50 pm
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"

Re: need help blocking a script + redirect

Posted: Sun Oct 30, 2011 7:52 pm
by Guest
Thankyou very much mate!

Was that something I accidentely did or does it come as standard?

Re: need help blocking a script + redirect

Posted: Sun Oct 30, 2011 8:04 pm
by al_9x
forbid meta is not on by default, perhaps it should be.

Re: need help blocking a script + redirect

Posted: Mon Oct 31, 2011 12:04 am
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.