Pi-hole is a DNS server that blocks ad and tracking domains for every device at home. Give the Pi a fixed IP, install Pi-hole, then set it as the DNS server in your router.
curl -sSL https://install.pi-hole.net | bash # Afterwards open http://<pi-ip>/admin