How to hide your content from ad block users

Add “adsbygoogle” to the post’s class. I just tested it in Opera, and after adding that class to the div, the post was hidden. Could mess up the formatting though.

That’ll work for Adblock Plus.

Nothing special, their ad blocker does all the work for you. You just have to add the ad class to non ads.

Doesn’t appear to change the formatting. I need to add a couple brs under the ad.

If you want your whole site to be hidden, make a div with that class and put everything in it.

There’s always a downside to blocking stuff on sites. The website owner might be an asshole, and trick your blocker into blocking everything. Maybe later I’ll add a ad div. Maybe add a check to see if it’s hidden, if it is have JavaScript show them a message instead of the site.