Title: Alternative adblocking detection method
Last modified: August 7, 2020

---

# Alternative adblocking detection method

 *  Resolved [pushevs](https://wordpress.org/support/users/pushevs/)
 * (@pushevs)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/)
 * Hello.
 * The ad blocking detection method of AdInserter works great in desktops that uses
   extensions like uBlock.
 * But it doesn’t work in smartphones that use AdAway, where hosts are blocked via
   DNS.
 * The reason why is that uBlock collapses ads entirely, while in AdAway the ad 
   is replaced by a blank space.
 * > Blocking is detected by checking ad height
 * Instead of just detecting the height of a block, it would be useful to detect
   if the browser can download the ad script (from AdSense for example).
 * This would allow AdInserter to detect adblockers that use modified DNS host files.
 * Is there a way to configure AdInserter to do this, or it requires a new version?
 * I’m using the Pro version by the way.

Viewing 9 replies - 1 through 9 (of 9 total)

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13223455)
 * Hello, both versions (free and pro) use many different approaches to detect ad
   blocking. Ad height check is only one of them:
    [https://adinserter.pro/documentation/ad-blocking-detection#troubleshooting](https://adinserter.pro/documentation/ad-blocking-detection#troubleshooting)
 * The pro version uses also AdSense script check to detect ad blocking.
 * uBlock aborts javascript code used for ad blocking detection. Consequently it
   is not possible to detect ad blocking and do something, however, you can still
   protect content from users using this kind of ad blocking:
    [https://adinserter.pro/documentation/ad-blocking-detection#advanced-content-protection](https://adinserter.pro/documentation/ad-blocking-detection#advanced-content-protection)
 * In case you have issues or see false positive/negative detection feel free to
   report it.
    For pro issues plese use [this form](https://adinserter.pro/contact).
 *  Thread Starter [pushevs](https://wordpress.org/support/users/pushevs/)
 * (@pushevs)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13223807)
 * Hi, maybe I didn’t explained myself correctly.
 * What happens is that AdInserter detects uBlock just fine.
 * What it doesn’t detect is adblockers that use host file lists, like this one:
   [https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts](https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts)
 * AdAway is an adblocker that uses this kind of lists.
 * When AdAway blocks an ad the ad isn’t hidden, instead it shows as a blank space.
   That’s why I think that AdInserter doesn’t detect it.
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13223908)
 * Ok, will check it.
 *  Thread Starter [pushevs](https://wordpress.org/support/users/pushevs/)
 * (@pushevs)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13223922)
 * Thanks.
 * Simple AdBlock of OpenWRT also uses host file lists and is undetected by AdInserter.
 * [https://openwrt.org/packages/pkgdata/simple-adblock](https://openwrt.org/packages/pkgdata/simple-adblock)
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13228028)
 * Ad Inserter should already detect such ad blocking.
    If I put those domains into
   hosts file the plugin detects ad blocking.
 * Please check.
 * The next version will contain additional checks.
 * If for some reason you still don’t get detection please desribe steps (environment)
   to reproduce the issue.
 * For pro support please use [this form](https://adinserter.pro/contact).
 *  Thread Starter [pushevs](https://wordpress.org/support/users/pushevs/)
 * (@pushevs)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13309122)
 * Hi.
 * Just want to say thanks. Now with the new version released yesterday the adblock
   detection works flawlessly 🙂
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13309186)
 * Great 🙂
 * > Just want to say thanks.
 * Please say it here:
    [https://wordpress.org/support/plugin/ad-inserter/reviews/#new-post](https://wordpress.org/support/plugin/ad-inserter/reviews/#new-post)
 * Thank you!
 *  Thread Starter [pushevs](https://wordpress.org/support/users/pushevs/)
 * (@pushevs)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13309216)
 * Done 🙂
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13309223)
 * 🙂

Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘Alternative adblocking detection method’ is closed to new replies.

 * ![](https://ps.w.org/ad-inserter/assets/icon-256x256.jpg?rev=1502039)
 * [Ad Inserter - Ad Manager & AdSense Ads](https://wordpress.org/plugins/ad-inserter/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ad-inserter/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ad-inserter/)
 * [Active Topics](https://wordpress.org/support/plugin/ad-inserter/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ad-inserter/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ad-inserter/reviews/)

 * 9 replies
 * 2 participants
 * Last reply from: [Spacetime](https://wordpress.org/support/users/spacetime/)
 * Last activity: [5 years, 10 months ago](https://wordpress.org/support/topic/alternative-adblocking-detection-method/#post-13309223)
 * Status: resolved