Detecting Adblock
Posted: Tue Jul 05, 2005 10:12 pm
Looking through some old forum topics over at aasted.org/adblock, I came across the Javascript element window._AdblockFiltered. It's supposed to be an array that has a list of blocked elements in it, but I haven't been able to get anything other than "0" using window._AdblockFiltered.length.
As proof of concept for detecting Adblock, I used:
This only works after page element has been blocked - if no element gets blocked, this array doesn't exist.
Anyone done anything with this, seen anything done with it? [/code]
As proof of concept for detecting Adblock, I used:
Code: Select all
if (window._AdblockFiltered)
{
alert("You are using Adblock to block ads")
}
Anyone done anything with this, seen anything done with it? [/code]