Skip to content

Instantly share code, notes, and snippets.

@flowolf
Forked from johntyree/getBlockLists.sh
Last active December 3, 2019 16:15
Show Gist options
  • Save flowolf/209934a52568bb4e8a22 to your computer and use it in GitHub Desktop.
Save flowolf/209934a52568bb4e8a22 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
@ondapc
Copy link

ondapc commented Aug 4, 2018

Works on ubuntu 16x

@petesimon
Copy link

works for me in Debian 10. I added "-1" option to the 'gzip' command at the end of the script to speed up compression.

| gzip -1 - > bt_blocklist.gz

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment