$0.00

Ad-Blocker Restrict WordPress Plugin

A free to use WordPress plugin that detects the use of ad blockers, restricts access with overlay and displays a notice to turn off ad-blocker. Website access is blocked until ad blocker is turned off and page is refreshed.

Description

A free to use WordPress plugin that detects the use of ad blockers, restricts access with overlay and displays a notice to turn off ad-blocker. Loads a file called banner_ads_300_250.js, a name routinely blocked by ad-blockers. If the file load is blocked it restricts access with overlay and displays a notice to turn off ad-blocker. Website access is restricted until ad-blocker is disabled and page reloaded. Extremely light weight, just a few lines of code. Install and activate, there are no settings, it simply works.

If you are using Google Analytics, here is code to track your website’s ad blocking events to add to your Google Analytics tag. Place inside the <script></script> tags:
if(!document.getElementById('VbatOlNCpWPT')){
gtag('event', 'blocking_ads', {
'event_label': 'Blocking Ads',
'event_category': 'blocking_ads',
'non_interaction': true
});}

Note: The banner_ads_300_250.js does not contain any ads! Ad blockers routinely block files that are named ads, banners, common ad sizes, etc. The file is located within the plugin directory and is used as bait. As soon as an ad-blocker blocks this file from loading we detect it’s presence.