WHAT YOU NEED TO KNOW ABOUT ADBLOCK SOFTWARE
Are you blocking our ads? Or would you rather not view them? Click here to go ad free on this site

Use Our Voluntary Adblocking Script

Would you like to offer your users the option to disable advertising on your site with the option to donate to you? We think it’s a great way to raise awareness to the problems of adblocking software.

Note: this method is based on an honor system. We feel that in many cases, it’s not worth the effort to put forth a major design effort to offer this simple feature on a website as people could simply install adblocking software. Your case may be different.

Step 1. Download this javascript file and put it on your webserver: blockable.js

Step 2. Add the following line to the header of every page:

<script type="text/javascript" src="/blockable.js"></script>

Step 3. Put all advertisements inside a div or span tag with class=”blockable”. You may add surrounding div or span tags, or add the blockable class to an existing div.

<div class="blockable">
advertising html
</div>

Step 4. Create a page with donation instructions and links to turn ads off and on

<p>1. If you would like to disable ads on this website, please donate.<br>
[Insert your donation link here from paypal or other service]<br>
Then return to this page and click the link below to turn off advertising. This is based on the honor system.
</p>
<p>2. To turn ads off, click here: <b><a href="#" onClick="Set_Cookie( 'blockads', 'yes', '10000', '/', '', '' ); if ( Get_Cookie( 'blockads' ) ) alert( 'Cookie set. Ads should no longer show.');changecss ('.blockable','display','none');">Don't Show Ads on Adblock.org</a></b><br>
To turn ads on, click here: <a href="#" onClick="Delete_Cookie('blockads', '/', ''); ( Get_Cookie( 'blockads' ) ) ? alert( Get_Cookie('blockads')) : alert( 'Cookie removed. Ads will now show.');changecss('.blockable','display','block');">Show Ads</a><br>
<span style="font-size:10px">(javascript and cookies required.)<br>
Learn more about <a href="http://www.adblock.org">Adblocking software</a> and its effects.</a></span></p>

This will look like this:

1. If you would like to disable ads on this website, please donate.
[Insert your donation link here from paypal or other service]
Then return to this page and click the link below to turn off advertising. This is based on the honor system.

2. To turn ads off, click here: Don’t Show Ads on Adblock.org
To turn ads on, click here: Show Ads
(javascript and cookies required.)
Learn more about Adblocking software and its effects.

Edit to add your own messaging. See our donate page for more ideas.

You should link to your donation page from wherever you display ads. For example, we put a small link under every ad, inside the “blockable” div, so it goes away if users are using voluntary adblocking, but not if they are using another type of adblocking.

Please leave the link to adblock.org. thank you!

2 Responses to “Use Our Voluntary Adblocking Script”

  1. Remove Our Ads! | AdBlock.org Says:

    […] Offer Voluntary Ad Removal on Your Site Webmasters, we’ve provided the source code for our donation/ad-removal system. We encourage you to use it on your own website in whatever way you see fit. […]

  2. adblock Says:

    Typical, knee-jerk, jerk response.

    You’ve entirely missed the point.

Leave a Comment