Skip to content

Instantly share code, notes, and snippets.

@gombosg
Forked from johntyree/getBlockLists.sh
Last active November 27, 2020 21:58
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 3 You must be signed in to fork a gist
  • Save gombosg/4577e1d14e2d52d2f16462c0ef412433 to your computer and use it in GitHub Desktop.
Save gombosg/4577e1d14e2d52d2f16462c0ef412433 to your computer and use it in GitHub Desktop.
Make one large blocklist from the bluetack lists on iblocklist.com
#!/usr/bin/env sh
# Link good as of May 2020
# Download lists, unpack and filter, write to stdout
curl -s -A 'Mozilla/5.0 (X11; Linux x86_64; rv:77.0) Gecko/20100101 Firefox/77.0' https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http:.*\?list=.*\)'.*/\1/p" \
| xargs wget -O - \
| gunzip \
| egrep -v '^#'
@gombosg
Copy link
Author

gombosg commented Jun 29, 2018

You can use this with Transmission client by redirecting > into a file then entering the file path in Transmission settings like file://home/.../blocklist.txt.
Protip: add a cron job or systemd timer to update it daily!

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