e2guardian/getoisd.sh
2023-12-22 15:41:12 -05:00

15 lines
536 B
Bash
Executable file

#!/bin/bash
echo "Fetching OISD blocklists"
if ! command -v curl >/dev/null; then
echo 'curl is required for this script to run.'
exit 1
fi
if ! command -v sed >/dev/null; then
echo 'sed is required for this script to run.'
exit 1
fi
curl https://big.oisd.nl/domainswild2 -o oisd/big
curl https://nsfw.oisd.nl/domainswild2 -o oisd/nsfw
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