What it does:

This free javascript code redirects people to another url if they are using ad blocking sofware. (e.g. Norton Internet Security, Firefox adblock, etc...)

How it works:

One of the scripts (which is called ad.js) sets a cookie and a variable, and the other script checks if the cookie or the variable is set. If ad blocking software is running, none of them will be set, an it will redirect the visitor to another site.

Test it:

You can test it here. The site will redirect to www.blue.lu if you block ads.

Download:

You can download it here. You can set the redirect page in check.js If you find it usefull, you can donate through paypal to paypal@confuzzled.lu.

Installation:

Copy the ad.js and check.js to your webserver. Make sure you put ad.js somewhere in a folder called "ad". Edit check.js to redirect to your alternate url and then put check.js on your server (Do not put check.js in the same folder as ad.js!). When you are done, include the two javascript files in every page you want to protect.

Contact:

Thibaut Britz

Legal:

The software is provided "as is" without warranty of any kind.
Feel free to redistribute it as long as you keep the original copyright headers and this file.

Norton Internet security is a trademark of Symantec.