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

Black Friday Sale!

Get 40% Off any plan using this coupon BFCM2022

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

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 can detect 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 advertisements, 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 the sidebar, before/after post, slide-in, notification bar) support the 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 about how we achieve the above, we used the “Bannino lightbox theme” and uploaded this image. And finally, enable the call to action button.

Tip: by default, if your users close 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.