Here's how webmasters can ban and/or block users (visitors) of AdBlock and AdBlock Plus. Though there are several techniques, this is one of the easiest, simplest and most effective. See also our Javascipt No-Script User Blocker
Why ban users of AdBlock?
Simply because you can! No explanation needed. Webmasters, bloggers, and companies spend countless time and money generating web page content. It's an Intellectual Property which they own and have rights over. Advertisements generate a small ad revenue income that helps pay hosting costs. Webmasters are therefore encouraged to deny access to their content to users of AdBlock or Adblock Plus.
How AdBlock banning works
The AdBlock banning script works by detecting the size (in pixels) of the displayed HTML division where ads are intended to be displayed. If the configurable prescribed contents of that division are NOT displayed in the browser (hence the Adblock being used), the user is then denied access to a portion of, or the entire webpage, and redirected to a notification (see screenshot above). In the following configurations you may choose AdBlocker Ban with logging, or without logging.
1. The first thing is to call in jQuery in the HEAD of your page (included in ZIP download, below):
2. Next, create a division Class in the body of your page surrounding the ad script. If you use Google Adsense, your coding should look something like this:
3. Next insert the blocking script anywhere in the page body, preferrably in the footer area, before the closing Body tag:
if ($('.Google').height() == 0)
window.location = "adblock-banned.html";
4. Create a Notification page called adblock-banned.html . This will be the notification page the user gets redirected to.
Upload your files to your server and test it out first WITHOUT using ABlock enabled. You should still see your ads. Then ENABLE your AdBlock and refresh the page. You should now get redirected to the Notification page.
Download this ZIP file Block Adblock Users ZIP
Copyright © 2017 www.thomas-n-ruth.com