Ad Blocking Detection is not working anymore
-
Hello @spacetime,
Please note that Ad Block Detection is not working anymore after the last update.
I am using Ad Inserter version 2.7.2.
I’ve tested it using uBlock Origin Chrome extension. https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en
Your help is highly appreciated.
Thank You!
The page I need help with: [log in to see the link]
-
I’ve just tested it with Adblock Plus and it’s working as expected.
https://chrome.google.com/webstore/detail/adblock-plus-free-ad-bloc/cfhdojbkjhnklbpkdaibdccddilifddb
Could you please advise about uBlock Origin.
Thank You!
This is a neverending cat and mouse game.
In any browser you can easily abort any javascript code you don’t like.
It seems they updated detection methods for ad blocking detection code.Remote debugging doesn’t seem to be enabled.
Please check.Thank you @spacetime for your kind reply!
Yes, it’s a cat and mouse game. We need to keep updating.
Please note that I have enabled Remote debugging.
Could you please check now?Many Thanks!
OK, will check and let you know.
working for 2 day ago
but now Ad Blocking is not working anymore
any idea why this happen ?
even i disabled it and enable it again not working
and i disable any optimize plugins JS and not working anymore
plz help?Can you please try this development version:
https://downloads.wordpress.org/plugin/ad-inserter.zipThank you @spacetime, much appreciated!
I have tried this development version and it’s working as expected. Many Thanks!
However, the blocking style when using uBlock Origin Chrome extension is different from Adblock Plus.
When using uBlock Origin, I am getting a white or purple color screen for the entire page when displaying the Ad-block message. You can browse my site and check it.
For Adblock Plus extension, it’s working fine with a Black screen. I am not sure about other Ad Blocking extensions. I have tried only those 2.
Here are my Message CSS and Overlay CSS settings:
width: 400px; padding: 30px; border: 5px solid #f00; border-radius: 5px; background: #181818; color: #fff; z-index: 97416257background: #000; opacity: 1;Could you please advise?
Thank You!
-
This reply was modified 4 years, 11 months ago by
Charbel Nemnom.
This is normal.
uBlock uses a very aggressive approach and aborts javascript code as soon as ad inserter code is detected. Therefore, in order to prevent possible approaches to remove ad blocking detection message and accessing the page content, the elements below the message are “modified”.
Please note that when uBlock triggers detection code, it aborts Ad Inserter Javascript code and consequently no client-side function will work.A much beter way than ad blocking detection is content protection:
https://adinserter.pro/documentation/ad-blocking-detection#content-protection-freeThank you @spacetime for the great work, much appreciated!
To be honest, I did not understand the alternative approach documented here:
https://adinserter.pro/documentation/ad-blocking-detection#content-protection-freeAnother very simple approach is possible to hide the content from users using aggressive ad blockers – it works also with the free Ad Inserter. Do the following:
Put the content you would like to protect into a block and set insertion options to insert it where you would like to have the content on the page.
Make sure Alignment is NOT set to No wrapping – such block needs a wrapping div
Enable client-side device detection
Select Insert method
Enable all (or only wanted) device types (viewports)
When adblocker will abort Ad Inserter javascript code, it will consequently also prevent the code for inserting this block from running so the block will not be inserted.Could you please elaborate more?
Thank You!
-
This reply was modified 4 years, 11 months ago by
Charbel Nemnom.
If you would like to protect some interesting content (text for example) from users using such aggressive ad blockers, you need to insert this contnet with Ad Inserter.
Remove it from the post and insert it there with Ad Inserter as instructed on the page.
The easiest way is to put the content into a block, enable shortcode for the block and put the shortcode in the post where the content should be inserted.
Just make sure you follow all the steps described on the documentation page.Ah, Ok. Thank you @spacetime!
I will stick with the current configuration, it’s working fine with (uBlock Origin) aggressive detection. No content is visible on the white page.
Did you check my site from your side with (uBlock Origin), any feedback?
Works fine now!
Many Thanks!!! Keep up the good work @spacetime.
You are welcome!
Hello @spacetime,
Please note that Ad Block Detection is not working again after the last update for uBlock Origin.
I am using Ad Inserter version 2.7.3.
I’ve tested it using uBlock Origin Chrome extension. https://chrome.google.com/webstore/detail/ublock-origin/cjpalhdlnbpafiamejdnhcphjbkeiagm?hl=en
Your help is highly appreciated.
-
This reply was modified 4 years, 11 months ago by
The topic ‘Ad Blocking Detection is not working anymore’ is closed to new replies.