Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/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
@brianmituka

This comment has been minimized.

Copy link

commented Apr 21, 2017

this also worked for me thanks..

@ondapc

This comment has been minimized.

Copy link

commented Aug 4, 2018

Works on ubuntu 16x

@petesimon

This comment has been minimized.

Copy link

commented Oct 12, 2019

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
You can’t perform that action at this time.