e2guardian/getoisd.sh

15 lines
536 B
Bash
Raw Permalink Normal View History

2023-12-17 11:33:36 -05:00
#!/bin/bash
2023-12-22 15:41:12 -05:00
echo "Fetching OISD blocklists"
if ! command -v curl >/dev/null; then
echo 'curl is required for this script to run.'
2023-12-17 12:16:36 -05:00
exit 1
fi
2023-12-19 17:41:25 -05:00
if ! command -v sed >/dev/null; then
echo 'sed is required for this script to run.'
exit 1
fi
2023-12-17 11:33:36 -05:00
curl https://big.oisd.nl/domainswild2 -o oisd/big
curl https://nsfw.oisd.nl/domainswild2 -o oisd/nsfw
2023-12-18 11:43:30 -05:00
sed -i '1s|^|#listcategory: "oisd nsfw (Report False Block: https://oisd.nl/report)"\n|' oisd/nsfw
sed -i '1s|^|#listcategory: "oisd big (Report False Block: https://oisd.nl/report)"\n|' oisd/big