Skip to content

Instantly share code, notes, and snippets.

@koesherbacon
Forked from johntyree/getBlockLists.sh
Last active August 29, 2015 14:22
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save koesherbacon/91f31b4de0fafab07af9 to your computer and use it in GitHub Desktop.
Save koesherbacon/91f31b4de0fafab07af9 to your computer and use it in GitHub Desktop.
#!/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