You can use use OpenDNS and turn on filtering of the "Advertising" category. https://community.opendns.com/domaintagging/?category_id=53
Protip: Doing this at the DNS and not the browser level leads to lots of brokenness. (Like when you try to sign into an app on your Roku/FireTV and it hangs on a Google Analytics event).