Adblock disabled notice

Trill

Member
Jul 11, 2013
32
5
Hey,

I've seen on some sites where if someone's got Adblock disabled, it detects it wherever the ad is and says "Hey, disable adblock" where the ad is supposed to appear. Then when you disable Adblock and refresh, the ads show up. Someone was telling me its through div's and CSS but I couldn't figure it out.

Any ideas?

Thanks!
 

Markshall

Русский Стандарт
Contributor
Dec 18, 2010
2,637
2,389
Use JavaScript to place an element on your webpage called "adverts" or something similar as AdBlock will look for such things, then use JavaScript again to check if that element has been hidden. If it has been hidden, this means AdBlock is enabled. From this you can show an alert on whether people have AdBlock enabled or not.
 

Trill

Member
Jul 11, 2013
32
5
Use JavaScript to place an element on your webpage called "adverts" or something similar as AdBlock will look for such things, then use JavaScript again to check if that element has been hidden. If it has been hidden, this means AdBlock is enabled. From this you can show an alert on whether people have AdBlock enabled or not.

Quick reply. Thanks for this, I'll definitely have a look! :)
 

Users who are viewing this thread

Top