Skip to content

Instantly share code, notes, and snippets.

@emjayoh
Forked from flowolf/getBlockLists.sh
Created January 16, 2017 20:40
Show Gist options
  • Save emjayoh/1aba4b1af206aae88f159357ea4d517f to your computer and use it in GitHub Desktop.
Save emjayoh/1aba4b1af206aae88f159357ea4d517f to your computer and use it in GitHub Desktop.
#!/usr/bin/env sh
# Download lists, unpack and filter, write to gzipped file
curl -s https://www.iblocklist.com/lists.php \
| grep -A 2 Bluetack \
| sed -n "s/.*value='\(http:.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#' \
| gzip - > bt_blocklist.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment