Title: Adblock
Last modified: October 3, 2018

---

# Adblock

 *  Resolved [sopliar](https://wordpress.org/support/users/sopliar/)
 * (@sopliar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/)
 * Good evening, I activated the adblocking popup in the plugin but it is detected
   even if there is actually no active adblock, why?
    A user continually has the
   adblock notice on the iPad but he has no filter.

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

 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10747130)
 * Usually this is caused by some optimizing plugins changing ad blocking detection
   code.
 * Please enable remote debugging and post website address:
    [https://wordpress.org/support/topic/ad-inserter-support-how-to-ask-for-help/](https://wordpress.org/support/topic/ad-inserter-support-how-to-ask-for-help/)
 *  Thread Starter [sopliar](https://wordpress.org/support/users/sopliar/)
 * (@sopliar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10747446)
 * Hello [@spacetime](https://wordpress.org/support/users/spacetime/),
    now remote
   debugging is active
 * [https://bit.ly/2NkJsPR](https://bit.ly/2NkJsPR)
 * thank you for the help!
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10747559)
 * As suspected, ad blocking detection scripts are missing – the Javascript code
   is put inline which is wrong and causes false detection.
    It seems you are using
   some caching plugin WP Rocket which loads script code inline: [https://adinserter.pro/documentation/ad-blocking-detection#debugging](https://adinserter.pro/documentation/ad-blocking-detection#debugging)
 * If you go to this page (not optimized):
    [https://www.shoppatoriseriali.eu/offerte-online/?test=1](https://www.shoppatoriseriali.eu/offerte-online/?test=1)
 * you’ll see this code in the source:
 *     ```
       <!--noptimize-->
       <script type='text/javascript' src='https://www.shoppatoriseriali.eu/wp-content/plugins/ad-inserter/js/ads.js?ver=2.4.0'></script>
       <script type='text/javascript' src='https://www.shoppatoriseriali.eu/wp-content/plugins/ad-inserter/js/sponsors.js?ver=2.4.0'></script>
       <!--/noptimize-->
       ```
   
 * Ad blocking is not detected.
 * However, if you go to this (normal, optimized) page:
    [https://www.shoppatoriseriali.eu/offerte-online/](https://www.shoppatoriseriali.eu/offerte-online/)
 * The code above is missing.
    This is equivalent to ad blocking which blocks those
   scripts so ad blocking action is triggered.
 * You should configure the plugin to leave the following scripts untouched:
 *     ```
       /wp-content/plugins/ad-inserter/js/ads.js
       /wp-content/plugins/ad-inserter/js/sponsors.js
       ```
   
 * Check this page:
    [https://docs.wp-rocket.me/article/1104-excluding-inline-js-from-combine](https://docs.wp-rocket.me/article/1104-excluding-inline-js-from-combine)
 *  Thread Starter [sopliar](https://wordpress.org/support/users/sopliar/)
 * (@sopliar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10749218)
 * Hi [@spacetime](https://wordpress.org/support/users/spacetime/),
    I did as you
   suggested, I also deleted the cache but the problem persists on the iPad. Thank
   you very much.
 * [https://i.imgur.com/aLKlIuJ_d.jpg?maxwidth=640&shape=thumb&fidelity=medium](https://i.imgur.com/aLKlIuJ_d.jpg?maxwidth=640&shape=thumb&fidelity=medium)
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10749327)
 * If you go to
    [https://www.shoppatoriseriali.eu/offerte-online/](https://www.shoppatoriseriali.eu/offerte-online/)
   or any other page you’ll see that the scripts are still missing.
 * I’m not sure if WP rocket is properly configured as that option is not enabled
   at all.
    It looks there is another option that removes those scripts.
 * I suggest to contact support to help you with caching settings.
    -  This reply was modified 7 years, 7 months ago by [Spacetime](https://wordpress.org/support/users/spacetime/).
 *  Thread Starter [sopliar](https://wordpress.org/support/users/sopliar/)
 * (@sopliar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10749954)
 * Okay I try with the support.
    And I have the same problem even if I use the incognito
   mode of google chrome, why?
 * Thank you!
    PS: Can you kindly obscure the site links? Thank you!
 *  Plugin Author [Spacetime](https://wordpress.org/support/users/spacetime/)
 * (@spacetime)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10750121)
 * Incognito mode is a feature of the browser.
    You have issue on the server – scripts
   missing.
 * Sorry, I can’t edit posts anymore.
 *  Thread Starter [sopliar](https://wordpress.org/support/users/sopliar/)
 * (@sopliar)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10750556)
 * I solved both the incognito mode and the iPad with your solution.
    Thanks so 
   much.

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

The topic ‘Adblock’ 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/)

 * 8 replies
 * 2 participants
 * Last reply from: [sopliar](https://wordpress.org/support/users/sopliar/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/adblock-7/#post-10750556)
 * Status: resolved