Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Coincidentally I just open sourced some JavaScript I've been using to detect adblock: http://esd.io/blog/detecting-adblock-javascript.html

There's not much to it, but it's important to note that many ad filters actively try to avoids detection by whitelisting "test ads" or blocking externally loaded adblock detection code. That's why I suggesting inlining this javascript snippet but all of this, of course, is ultimately a cat and mouse game.



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: