There is the Pi-Hole Project, which does that pretty nicely: <a href="http:&#x2F;&#x2F;jacobsalmela.com&#x2F;block-millions-ads-network-wide-with-a-raspberry-pi-hole-2-0&#x2F;" rel="nofollow">http:&#x2F;&#x2F;jacobsalmela.com&#x2F;block-millions-ads-network-wide-with...</a>