Last active
June 2, 2019 21:39
-
-
Save chadmayfield/3c2f47f949a1a51a05b5a7e00545533d to your computer and use it in GitHub Desktop.
Blacklist domains in a list file
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 | |
while read line | |
do | |
echo "Blacklisting: $line" | |
pihole -b $line | |
done < "/path/to/your/blacklisteddomains.list" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment