4 ms·
Actually, there's no way to really block ad-block. It wouldn't be too hard to make an ad-blocker that used CSS and Javascript to do all of the blocking during
by jlarocco 14y ago
Actually, there's no way to really block ad-block.
It wouldn't be too hard to make an ad-blocker that used CSS and Javascript to do all of the blocking during page render. It'd be an inefficient use of bandwidth and rendering time, but it'd be able to block 100% of ads and undetectable from the web server.
In fact, before Opera had a built-in ad-blocker, I think there was an ad-block extension built on its "User Javascript" and custom CSS abilities.
- Myrth 14y agoSeriously? function verifyAds() { if (!adContentsVisible()) { loadAdContents(); } setTimeout(verifyAds, 1000); } verifyAds();
- kanzure 14y agoYes, but it's easy for a browser to just override your verifyAds function.
- codeka 14y agoHuh? Extension can override JavaScript on the page, too, you know: window.adContentsVisible = function () { return true; }
- Myrth 14y ago(function() { // local scope, can't override })(); My point is that I agree with grandparent, that they just allow ads to be shown, and it's not technically impossible to reload ads, or prevent page contents view, if no ads visible.
- SquareWheel 14y agoIf it's client-side, it can be defeated. Let's not enter into an arms race of larger and more bandwidth-intensive checkers/blockers to try to get the upper hand. If someone ad blocks, they're not likely in your target demographic anyway.
- deleted 14y ago[deleted]
- tedunangst 14y agogreasemonkey: function adContentsVisible() { return true }
- ufo 14y agoAlso, it is possible to block 3rd party ads without touching the browser by going straight into the underlying IP routing tables.
- rabbidrabbit 14y agoI use http://someonewhocares.org/hosts/ http://someonewhocares.org/hosts/ as my hosts file, and it works great. It doesn't remove the placeholder for the ad, but it does stop it from downloading.
- saalweachter 14y ago"During page render". Render the page, identify the regions of the resulting bitmap which are ads, and blank them out. The browser can always just lie at the end, even after running all of the JavaScript and marking all of the DOM elements to visible.
- lignuist 14y agoIf they find a way to force the visibility of ads, we still could move them to the bottom of the page.
- lazugod 14y agoMobile Safari successfully refrains from adblocking.