How to Detect AdBlock Users in WordPress and Ask Them to Disable

How to Create an Optin Campaign to Target AdBlock Users

Activate WordPress adblock detection

MailOptin AdBlock detection trigger allows you to detect adblock users and visitors on your WordPress site so that you can either hide or display an optin campaign to your them. MailOptin is capable of detecting ad-blocking software such as AdBlock, AdBlock Plus, uBlock, uBlock Origin and built-in browser ad-blockers.

While Adblock brings a cherished ad-free experience to users by automatically detecting and blocking advertisement, it can hurt bloggers who rely solely on ad revenues. With our adblock detection feature, you can appeal to your visitors nicely to whitelist your site.

Follow this guide to learn how to activate AdBlock detection.

Create a new optin campaign or edit an existing one by clicking the campaign title or the Customize button to open the edit screen. In this example, we’ll be creating a lightbox / popup. It’s worth noting that all optin types (such as sidebar, before/after post, slide-in, notification bar) support AdBlock detection feature.

MailOptin opt-in campaign listing

Open Display Rules >> Visitors Using Adblock panel, activate the rule and select whether to show to visitors with Adblock enabled or disabled.

Activate WordPress adblock detection

If you are curious on how we achieve the above, we used the “Bannino lightbox theme” and uploaded this image. And finally, enabled call to action button.

Tip: by default, if your users closes the campaign, they won’t see it again for a while depending on your cookie duration settings. If you want to keep showing the popup to users until they disable adblock or whitelist your WordPress site, you will have to set Cookie Duration in Configuration panel to “0” (zero) with CTA “Action After Button Click” settings set to “Close optin and reload page“.

Adblock cookie rule

Do not forget that you can combine adblock detection with multiple of our other display rules available such as time on site, exit intent, pageviews etc.