Sebsauvage has put together a great hosts file: dns-blocklist
DNS filtering is a simple way of blocking the majority of ads, trackers and malicious sites with minimum effort. Set-up is fast and easily reversible.
sudo curl "https://sebsauvage.net/wiki/doku.php?do=export_code&id=dns-blocklist&codeblock=0" -o /etc/cron.weekly/hosts-update
sudo chmod +x /etc/cron.weekly/hosts-update
Run the first update:
Windows networking is a steaming pile of manure, but you can still install this file with caveats.