Created
January 25, 2018 22:54
-
-
Save tonylambiris/eb8ee76c096d590ad8de569f225d3528 to your computer and use it in GitHub Desktop.
Merge all lists from iblocklist.com into one file
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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