Last active
June 26, 2016 02:50
-
-
Save frafra/7a79da386270cbdf83dc to your computer and use it in GitHub Desktop.
dnsmasq block ads
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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