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.

Revisions

  1. chadmayfield revised this gist Jun 2, 2019. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion blacklist.sh
    Original file line number Diff line number Diff line change
    @@ -3,4 +3,4 @@ while read line
    do
    echo "Blacklisting: $line"
    pihole -b $line
    done < <(/path/to/your/blacklisteddomains.list)
    done < "/path/to/your/blacklisteddomains.list"
  2. chadmayfield created this gist May 22, 2019.
    6 changes: 6 additions & 0 deletions blacklist.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,6 @@
    #!/bin/bash
    while read line
    do
    echo "Blacklisting: $line"
    pihole -b $line
    done < <(/path/to/your/blacklisteddomains.list)