I recently installed Pi-hole [https://github.com/pi-hole/pi-hole] on a spare
Raspberry Pi 3 [https://www.raspberrypi.org/].
Pi-hole essentially blocks most advertisements from devices on a network, by
running dnsmasq [http://www.thekelleys.org.uk/dnsmasq/doc.html] with a custom
set