e2guardian/getoisd.sh

11 lines
438 B
Bash
Raw Normal View History

2023-12-17 11:33:36 -05:00
#!/bin/bash
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-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