Skip to content

Instantly share code, notes, and snippets.

@vrkansagara
Forked from johntyree/getBlockLists.sh
Last active May 14, 2016 11:16
Show Gist options
  • Save vrkansagara/db0aff27a64f5aab2c8ab220e7ac602e to your computer and use it in GitHub Desktop.
Save vrkansagara/db0aff27a64f5aab2c8ab220e7ac602e to your computer and use it in GitHub Desktop.
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
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