Home |
 
 

Ad Block Detection Methods 

Not all of these are 100% accurate, and will perform differently in different browsers.
Method 1: Ad blocking is .
Method 2: Ad blocking is
Method 3: Ad blocking is
Method 4: Ad blocking is


  • Method 1: Sets a variable as true, then attempts to load an external script named show_ads.js which set the variable to false. If the variable remains true, ad blocking is detected.
  • Method 2: A google ad is placed within a div with the id 'container_q'. If the offsetHeight of the div is 0 then ad blocking is detected.
  • Method 3: Attempts to detect a variable set by the google adsense script (window.google_unique_id).
  • Method 4: Uses the scripts from adBlockDetector.com.

.