curl -sSL https://install.pi-hole.net | bash

Pi-hole® 
Network-wide Ad Blocking

A black hole for Internet advertisements