Skip to content

Instantly share code, notes, and snippets.

@RaDeleon
Forked from johntyree/getBlockLists.sh
Last active November 9, 2017 03:12
Show Gist options
  • Save RaDeleon/03b55c7cce725f1192cf to your computer and use it in GitHub Desktop.
Save RaDeleon/03b55c7cce725f1192cf to your computer and use it in GitHub Desktop.
For use with Transmission for Mac OSX torrent app. Make one large blocklist from the bluetack lists on iblocklist.com. Keeps updating the blocklist to block ips known to serve malware infected torrent files.
#!/usr/bin/env sh
# Download lists, unpack and filter, write to stdout
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*=bt_.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment