9 lines
452 B
Bash
9 lines
452 B
Bash
|
#!/bin/sh
|
||
|
curl -s https://www.iblocklist.com/lists.json | \
|
||
|
jq -r '.lists[] | .name as $n | select((.subscription == "false") and ($n | startswith("iana-") | not) and (["fornonlancomputers", "bogon", "The Onion Router"] | index($n) | not)) | .list' | \
|
||
|
awk 'length($0) > 2 { print "http://list.iblocklist.com/?fileformat=p2p&archiveformat=gz&list=" $0 }' | \
|
||
|
xargs wget -O - | \
|
||
|
gunzip | \
|
||
|
egrep -v '^#' | \
|
||
|
gzip > blocklist.gz
|