logoalt Hacker News

preg_matchtoday at 3:35 PM0 repliesview on HN

This can be done but it’s not sophisticated enough for many ads. Websites are smart and will smuggle ads through known-good domains that you can’t block. You really need to be able to navigate the dom and use JS heuristics to identify ads and popups.