How To Detect AdBlock Plus
AdBlock Plus is a controversial Firefox plugin to prevent ads from displaying on web pages. There is a simple procedure to detect (and take appropriate action) AdBlock Plus.
The idea is to dupe itself in thinking that a Javascript is from a well known advertising site like Google AdSense or falkag.net. Here is a code snippet that I found on AdBlock Plus forum that should give you the essential idea:
There are three issues with this code snippet:
1. It doesn't specifically detect AdBlock Plus.
2. Dedicated users of your site may use regular expression to specifically exclude such url's on your site.
3. AdBlock Plus may be modified in future to catch this pattern
You can use PHP / JSP to regularly change the URL pattern, switching between alternative URL's. This will address most of the issues. I may even post an example if there is enough interest.
Filed under AdSense, Firefox, Google, Headline News, How To, Marketing, Open Source Software, Web, Web Services |
|
RSS 2.0 |
Trackback this Article
|
Email this Article
You may also like to read |





































December 12th, 2007 at 9:14 am
I don’t see the code snippet? Is it gone?
December 12th, 2007 at 11:58 am
It was hidden. Now it is visible. Thanks for pointing it out.