Skip to content

Instantly share code, notes, and snippets.

@jcanfield
Forked from flowolf/getBlockLists.sh
Created November 15, 2015 05:18
Show Gist options
  • Save jcanfield/a7239adedf97801395e0 to your computer and use it in GitHub Desktop.
Save jcanfield/a7239adedf97801395e0 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