Skip to main content
talhar25300165
Participant
September 28, 2016
Question

How to detect Adblock on my website?

  • September 28, 2016
  • 1 reply
  • 792 views

I would like to be able to detect if the user is using adblocking software when they visit my website. If they are using it, I want to display a message asking them to turn it off in order to support the project, like this website does.

If you enter to that site and your browser has some kind of adblock software enabled, then the site instead of showing the actual ads shows a little banner telling the users that the ad revenue is used for hosting the project and they should consider turning Adblock off.

I want to do that on my website, I'm using adsense ads on it, How can I do that?

This topic has been closed for replies.

1 reply

Jon Fritz
Community Expert
Community Expert
September 28, 2016

I'm not sure why this is being posted in the Dreamweaver forum, your site uses WordPress.

Have you looked into the various WordPress Advertising Plugins? It's likely one of them will do what you're looking for.


I'll move your question over to the Coding Corner forum, maybe someone there will have some info on how to do that with a WordPress site.