How to stop CPALead from redirecting me?

Ask for help about NoScript, no registration needed to post

How to stop CPALead from redirecting me?

Post by Guest » Sat Feb 13, 2010 10:34 am

I noticed some sites that have been trying to to block NoScript / ABP users... apparently this is the code doing it:

Code: Select all

<script type="text/javascript">var isloaded = false;</script><script type="text/javascript" src="snip"></script><script type="text/javascript">if (!isloaded) { window.location = ''; }</script><noscript><meta http-equiv="refresh" content="0;url=" /></noscript>

Apparently isloaded is set in their script, which is blocked by NoScript... how do I get around this?
Mozilla/5.0 (Windows; U; Windows NT 6.1; de; rv:1.9.2) Gecko/20100115 Firefox/3.6

Bug Buster
Posts: 968
Joined: Thu Mar 19, 2009 12:51 pm

Re: How to stop CPALead from redirecting me?

Post by dhouwn » Sun Feb 14, 2010 12:33 am

Create a surrogate that sets the checking variable and set the option "Forbid META-redirections inside <NOSCRIPT> elements" (Noscript OptionsAdvancedUntrusted).

Also, please see:
Mozilla/5.0 (Windows; U; Windows NT 6.1; en-GB; rv:1.9.2) Gecko/20100115 Firefox/3.6

Junior Member
Posts: 40
Joined: Fri Mar 20, 2009 5:24 pm

Re: How to stop CPALead from redirecting me?

Post by Aerik » Sat Mar 20, 2010 4:01 am

Actually I do have a way of stopping that redirect, but it involves a completely unrelated firefox extension.

Go to and find "exexceptions." -- the version compatibility tag is out of date, so you'll need to go into about:config and set extensions.checkCompatibility to "false" to get it to install. Or if that doesn't work, install "nightly tester tools," restart firefox, then install "exexceptions."

If you want to be able to click an ad or watch a video that would take you to if a script is blocked, but not visit that site, create a value for and mark the "document" attribute as "deny". click "set" and you're done. You will never be able to actually 'visit', nor will you be able to use "save link as" for a url matching You should also do the same for and, which are synonymous with cpalead. Also set the attribute "popup" to "deny." Even if the site manages to hit you with a popup, it'll be a blank, inactive, harmless window you can close.

About the extension:

This addon does nothing more than give you an editor for the firefox 3.* permissions.sqlite file with import/export capability. When you to go tools > options > content and set what sites you want to allow images on, it places a line in the permissions.sqlite file. Same thing with the cookie preferences, and even the list of websites on which you want to allow installation of addons.

As it turns out, this sqlite file can be used to control 12 other permission types in the exact same way. A single permission just one line in the file, with three space-separated values, naming the domain, the attribute you want to set, and an integer of 0, 1, or 2.

Exexceptions just brings it all together in the same easy-to-grasp window. The file itself is in hex, so in fact exexceptions is an xml (xul?)-based hex editor.

You can also use this extension as a powerful way to control where you can go, what sites are allowed to do, and even change tab behavior a bit. You'll find that the 15 attributes you can control match the names of the html filter types in adblock plus exactly. They are derived from the permissions file.
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2) Gecko/20100115 BetterPrivacy-1.47 Firefox/3.6

Post Reply