Page 1 of 1

CPALead.com

Posted: Sun Nov 22, 2009 12:01 pm
by Joris
This annoying advertising company has recently been targeting Adblock and NoScript users with the following piece of code:

Code: Select all

<script language="javascript">
var isloaded = false;
</script>
<script type="text/javascript" src="http://www.cpalead.com/mygateway.php?pub=XXXX&gateid=XXXXXXX"></script>
<script language="javascript">
if (!isloaded) {window.location = 'http://www.cpalead.com/adblock.php';}
</script>
<noscript><META http-equiv="refresh" content="0;URL=http://cpalead.com/nojava.php?pub=XXXX"></noscript>
This piece of code is inserted into the page where advertisements are placed. This can currently be demonstrated by going to a movie on wtso.net

What this means for noscript is that under the default configuration, visiting a site with this piece of code is not possible.
An easy fix is to goto noscript's advanced options and check "Forbid META redirections inside <NOSCRIPT> elements".

My question is, is there functionality in noscript for block redirecting towards specific websites in a blacklist? (or those marked as untrusted) If so, would it be possible to add cpalead.com to this list under the default configuration?

Re: CPALead.com

Posted: Sun Nov 22, 2009 2:49 pm
by therube
There aren't too many places where a redirect does anything beneficial for me, so I just keep 'Forbid META redirections inside <NOSCRIPT> elements' enabled all the time.

(So The Simpsons worked out of the box for me.)

Re: CPALead.com

Posted: Sun Feb 27, 2011 10:48 am
by Pseudomonas
therube wrote:'Forbid META redirections inside <NOSCRIPT> elements'
I didn't know in which thread to post as there are so many about this topic, so I just took the oldest one. The above mentioned solution doesn't work any more on my favourite site, so I looked for other ones. I finally found two extensions NoRedirect and even better BlockSite - they are perfectly doing what there names promise and I won't see cpalead again.

Re: CPALead.com

Posted: Sun Feb 27, 2011 11:33 am
by dhouwn
The following surrogate might help:

Code: Select all

Object.defineProperty(window,"isloaded",{value:true,writable:false})