Added custom ad listings
You can add any url to adlistings.txt in /etc/removeadhosts and it will curl that directly into hostsstable
parent
1bd5822561
commit
495be81f2e
|
|
@ -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 ]
|
||||
|
|
|
|||
Loading…
Reference in New Issue