CPALead.com

Ask for help about NoScript, no registration needed to post
Joris
Posts: 1
Joined: Sun Nov 22, 2009 11:46 am

CPALead.com

Post 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?
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2b3) Gecko/20091115 Firefox/3.6b3
User avatar
therube
Ambassador
Posts: 7969
Joined: Thu Mar 19, 2009 4:17 pm
Location: Maryland USA

Re: CPALead.com

Post 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.)
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.19) Gecko/20110420 SeaMonkey/2.0.14 Pinball NoScript FlashGot AdblockPlus
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.1.6pre) Gecko/20091114 SeaMonkey/2.0.1pre
Pseudomonas
Posts: 1
Joined: Sun Feb 27, 2011 10:31 am
Location: Bochum

Re: CPALead.com

Post 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.
Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13
dhouwn
Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: CPALead.com

Post by dhouwn »

The following surrogate might help:

Code: Select all

Object.defineProperty(window,"isloaded",{value:true,writable:false})
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:2.0b13pre) Gecko/20110226 Firefox/4.0b13pre
Post Reply