Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Created January 25, 2018 22:54
Show Gist options
  • Select an option

  • Save tonylambiris/eb8ee76c096d590ad8de569f225d3528 to your computer and use it in GitHub Desktop.

Select an option

Save tonylambiris/eb8ee76c096d590ad8de569f225d3528 to your computer and use it in GitHub Desktop.
Merge all lists from iblocklist.com into one file
#!/bin/bash
curl -s https://www.iblocklist.com/lists.php \
| sed -n "s/.*value='\(http[^']*\)'.*/'\1'/p" \
| xargs -n 1 curl -sLo- | gunzip | egrep -v "^(#.*|^)$" \
> blocklist.txt
wc -l blocklist.txt
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment