Oct 17, 2008

How to Allow Google AdSense Text Ads Passing Through Adblock Plus Filter While Blocking Image-based Ads

Placing a lot of advertisements on a web site can be annoying and distracting, which pushes many to use an ad-blocker to get rid of them. However, these advertisements can be the only way for a web site to cover hosting and bandwidth costs or can be as a way to support the web site for providing the content free of charge.

I don't mind seeing text based ads but image or video ads can be annoying, CPU time and bandwidth consuming.

So, I decided to look for a way to allow Google Adsense text ads passing through AdBlock Plus extension for Mozilla Firefox and block image based ads.

All we need to do is add a few filters to Adblock Plus. First, click on Adblock drop-down button and select preferences. A window will appear containing all the filters. Then click on "Add Filter" button and add these four filters to allow text ads:
@@|http://pagead2.googlesyndication.com/pagead/show_ads.js

@@|*.googlesyndication.com/*&ad_type=text&*

@@|*.googlesyndication.com/*&output=html&correlator*

@@|http://pagead2.googlesyndication.com/pagead/abglogo/*
Then add this to block image ads:
*.googlesyndication.com/*&ad_type=text_image&*


That's all. From now on you'll support web site by allowing text based while blocking bandwidth and CPU consuming ads.

Update #1: Today, I noticed that the "Ads by Google" notice don't show up, so I added a filter to allow to appear.

Bookmark and Share

0 comments:

Post a Comment