Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

Is there a general class or ID for a html element that a high majority of popular adblockers will block on a website it has no information for. My intention is to have my advertisement blocked, avoiding automatic blocking is easy enough... I was thinking of maybe lending some ids or classes from big advertisment companies that area already being fought off quite actively. right now my html

<ul id=partners>
 <li class=advertisment><a href=# class=sponsor><img class=banner></a></li>
</ul>

Will this work or is there a more solid approach?

share|improve this question
2  
Why would you want to block your advertisements? If you don't want them, couldn't you just delete the mark-up and save yourself and your users the trouble? –  Christopher Apr 2 '12 at 10:23
1  
Shouldn't you also have rel="nofollow" on a sponsored (paid for) link? –  w3d Apr 2 '12 at 11:56
    
@w3d Just assume the example markup has been reduced to what's necessary for the actual question. Nofollow is irrelevant here. –  Su' Apr 2 '12 at 15:49
    
@Su' But rel="nofollow" could be another metric that adblockers use to help decide what is or isn't an advertisement...? –  w3d Apr 2 '12 at 18:49
    
@w3d Why? Nofollow was originally conceived of in terms of spam links in comments. It has nothing to do with advertising. –  Su' Apr 2 '12 at 21:28
show 3 more comments

1 Answer

Adblockers use a variety of techniques to block ads. They block them by domain or IP address, they also block them based on ad size. So if your ads are a common ad size, they should automatically be blocked.

But if you want to offer more clues via class and ID names, use a class since you can put as many names in it as you want. I'd then stick with obvious ad keywords like, "ad", "advertisement", "advert", etc.

share|improve this answer
1  
URLs (subdomain, folder, etc.) are also a big one. By default ABP blocks all of the stylesheets on Google's AdWords/AdSsense sites because of this. He can also check the most popular ABP lists to see what the most common filters are. –  Lèse majesté Apr 2 '12 at 12:52
    
Where can I find these lists @Lèsemajesté –  Moak Apr 4 '12 at 2:49
    
@Moak: If you search Firefox Add-Ons for "AdBlock Plus" you should find at least some of these add-on lists. The one that ABP comes with by default is EasyList. If you search Chrome Add-ons, there might be similar add-on lists for ABP for Chrome. Otherwise, search google for "AdBlock Plus filter lists". –  Lèse majesté Apr 4 '12 at 4:47
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.