ABblock User Blocking

Download this free utility below.

Zip file size: 44 Kb


Here's how webmasters can ban and/or block users of AdBlock, Ghostery, and other browser extensions which prevent ads from appearing on your website. Though there are several techniques to discourage website users from doing this, but this is one of the easiest, simplest and most effective way. See also our Javascipt No-Script User Blocker

AdBlock User Block screenshot

ABblock User Blocking

Why ban users of AdBlock?

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 their hosting a web development costs. Webmasters are therefore encouraged to deny access of their content to users who employ AdBlock or Ghostery.

AdBlock Banning

How AdBlock banning works:
The AdBlock banning script works by detecting the size (in pixels) of the displayed HTML division where your 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 displayed 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):
        <script src="jquery-1.10.2.min.js"></script>

  2. Next, create an HTML division Class in the body of your page surrounding the ad script. If you use Google Adsense, your coding should look something like this:
    <div class="Google">
            google_ad_client ...

  3. Next insert the blocking script anywhere in the page body, preferably in the footer area before the closing Body tag:
        if ($('.Google').height() == 0)
        window.location = "adblock-banned.html";

  4. Lastly, create a Notification page called adblock-banned.html. This will be the notification page the user gets redirected to (as in the AdBlock Banned screenshot aove).

    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.

    Taa Daa!

Preview Block AdBlock Users Zip file
the download link will be at top right of Preview