Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@cam8001
Created August 26, 2015 14:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/5c24a642839ff5585186 to your computer and use it in GitHub Desktop.
Save cam8001/5c24a642839ff5585186 to your computer and use it in GitHub Desktop.
Block a curated selection of ad and malware servers via local host resolution.
wget -qO- "http://winhelp2002.mvps.org/hosts.txt" "http://someonewhocares.org/hosts/zero/hosts" "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=hosts&showintro=0&startdate[day]=&startdate[month]=&startdate[year]=&mimetype=plaintext&useip=0.0.0.0" | grep -w ^0.0.0.0 | sed $'s/\r$//' | sort -u >> /etc/hosts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment