Skip to content

Instantly share code, notes, and snippets.

@frafra
Last active June 26, 2016 02:50
Show Gist options
  • Save frafra/7a79da386270cbdf83dc to your computer and use it in GitHub Desktop.
Save frafra/7a79da386270cbdf83dc to your computer and use it in GitHub Desktop.
dnsmasq block ads
#!/bin/bash
curl -s "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=nohtml&showintro=0&mimetype=plaintext" \
| sed 's;^\(.*\)$;address="/\1/127.0.0.1";' | sudo tee /etc/dnsmasq.d/ads >/dev/null
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment