16

I have two divs in my site one with id ad_holder and another with id ad_buttons"

When testing the site on Mozilla with ad block plus installed I noticed that both divs were hidden. On further inspection I noticed it that Adblock was the culprit probably because of the ID names. I also noticed that Adblock created (or maybe has a ready made) CSS file, that sets the display to hidden.

I know I can fix this by simply changing the IDs or trying to override the Adblock CSS but still need to know if there is yet another alternative way of fixing this, like a small piece of code that tells Adblock it's not a real ad.

The contents of the divs are not real ads, it just holds .jpegs about the client's business.

Laurel
  • 5,965
  • 14
  • 31
  • 57
TDsouza
  • 910
  • 2
  • 13
  • 38
  • For now I've fixed it with changed Ids, just a lil advice I learnt ;) DO NOT use the word "ad" or related terms in your IDs or Class... :P – TDsouza Dec 29 '12 at 06:11

2 Answers2

13

It's better to rename your classes and id's. I would say, that image names, directories also can cause accident disappearing. Solution is to avoid words like:

  • ad
  • ads
  • adv
  • advert
  • advertisement
  • banner
  • banners
a.s.panchenko
  • 1,196
  • 16
  • 22
  • I didn't find a list of "undesirable" AdBlock words, so I will try to update this answer with new ones if find. – a.s.panchenko Nov 27 '13 at 12:19
  • 6
    Easylist is a common filter list to subscribe to via Adblockplus. [This](https://easylist-downloads.adblockplus.org/easylist.txt) is a list of their blocked words, IDs starting with `###`, CSS classes with `##.` Some of them are a bit too broad IMHO but easy to avoid anyways. – benebun Oct 15 '14 at 12:32
  • 2
    I recently launched a site with the theme name "adwise". Every resource on the entire page got blocked. I removed the D in the name and it worked fine. Annoying though. – InanisAtheos Nov 17 '16 at 14:03
1

List could be found here. Just double check because different on version and software, but i think it cover most of parts. https://easylist.to/

valentasm
  • 2,137
  • 23
  • 24