Skip to content

Instantly share code, notes, and snippets.

@christoph-frick
Created March 24, 2017 20:43
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 christoph-frick/b7d1d09c6fab55c9946284b73975a547 to your computer and use it in GitHub Desktop.
Save christoph-frick/b7d1d09c6fab55c9946284b73975a547 to your computer and use it in GitHub Desktop.
Generate a block list for unbound
curl https://raw.githubusercontent.com/notracking/hosts-blocklists/master/hostnames.txt | grep '^0.0.0.0' | awk '{ print "local-zone: \"" $2 "\" refuse" }' > ad-blocking-data.conf
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment