Added custom ad listings

You can add any url to adlistings.txt in /etc/removeadhosts and it will
curl that directly into hosts
stable
Justin Reichardt 2021-08-02 16:54:18 -05:00
parent 1bd5822561
commit 495be81f2e
1 changed files with 8 additions and 1 deletions

View File

@ -13,7 +13,14 @@ fi
echo 'Downloading ad list'
curl https://raw.githubusercontent.com/StevenBlack/hosts/master/hosts 2>/dev/null | tee -a /etc/hosts >/dev/null
if [ -e /etc/removeadhosts/adlistings.txt ]
then
cat /etc/removeadhosts/adlistings.txt | \
while read SITE; do
curl $SITE 2>/dev/null | tee -a /etc/hosts >/dev/null
echo "0.0.0.0 $CMD" >> /etc/hosts
done
fi
echo 'Adding custom items from /etc/removeadhosts'
if [ -e /etc/removeadhosts/adlist.txt ]