Skip to content

Instantly share code, notes, and snippets.

@chadmayfield
Last active June 2, 2019 21:39
Show Gist options
  • Save chadmayfield/3c2f47f949a1a51a05b5a7e00545533d to your computer and use it in GitHub Desktop.
Save chadmayfield/3c2f47f949a1a51a05b5a7e00545533d to your computer and use it in GitHub Desktop.
Blacklist domains in a list file
#!/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