Skip to content

Instantly share code, notes, and snippets.

@tonylambiris
Created June 15, 2018 19:02
Show Gist options
  • Select an option

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

Select an option

Save tonylambiris/986c4f68a5ed30a93488905f564ebfa7 to your computer and use it in GitHub Desktop.
Grabs all blocklists from iblocklist.com
#!/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 "^(#.*|^)$" | gzip > ~/www/blocklist.txt.gz
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment