Some common class names are textads, banner-ads, banner_ads, ad-unit, ad-zone, ad-space which are detected by the adblocker for an ad. Every adblocker has its own set of class names which will be blocked that’s why we should not rely on only one class name. The easylist.text has a huge list of such class names. The reason is the class name ad-zone, the adblocker used to inspect which element has the class name that looks like an ad. The best alternative is uBlock Origin, which is both free and Open Source. There are more than 25 alternatives to JS Blocker for a variety of platforms, including Google Chrome, Firefox, Mac, Windows and iPhone. If the offset height of the div remains unchanged then there is no adblocker present in the browser. JS Blocker is described as 'Safari extension that puts you in control of which scriptsand moreare allowed on any given websitesimilar to NoScript for Firefox' and is a Ad Blocker in the web browsers category. The adblocker blocked that div from rendering, so the offset height becomes zero. Now write a script that checks if the offset height of parent div becomes zero, then the user is using an adblocker. This is sad for the websites that solely rely on ads, some of them use adblocker detecting script and restrict the user to enter the website without disabling the adblocker (But this is a bad idea from an SEO point of view).ĭetect adblocker using bait script: In this method, you have to create a div with the class name ad-zone. It means 10% less revenue by the website.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |