Search code examples
htmladsadblock

What property do I need to add to a div in order to hide it for AdBlock Users?


Complicated title, but that's really all I want to know. I have plenty of Adblock Users on my website and I want to optimize it for them.

So what kind of class (for example) property do I have to add to ad container divs in order to make them invisible to Adblock users?

You see, what I am trying to do is to make a div seem like an advertisement so Adblock hides it.

Edit: A solution I know of would be detecing Adblock per Javascript and then hiding my div according to that. But I want the visitor's adblock hide the div itself!


Solution

  • Please try to use .banner-adv class. Using id is not best solution in my opinion.