Received email to say that player.h-cdn.com was added erroneously.
Received email to say that player.h-cdn.com was added erroneously.

Does appear to have been removed from one of the upstreams, so force removing (as it's still in the minerdomain list)

#!/bin/bash #!/bin/bash
# #
# Update the ads domain list # Update the ads domain list
   
   
   
cd "$1" cd "$1"
   
wget -O autolist.txt "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=unbound;showintro=0&mimetype=plaintext" wget -O autolist.txt "http://pgl.yoyo.org/adservers/serverlist.php?hostformat=unbound;showintro=0&mimetype=plaintext"
wget -O minerdomains.txt https://raw.githubusercontent.com/Marfjeh/coinhive-block/master/domains wget -O minerdomains.txt https://raw.githubusercontent.com/Marfjeh/coinhive-block/master/domains
   
cat minerdomains.txt | while read -r domain # TODO - should move excludes into a dedicated file, but setting this up in a hurry
  sed -i 's/player.h-cdn.com/#player.h-cdn.com/g' minerdomains.txt
   
   
   
  cat minerdomains.txt | egrep -v -e '^#|^$' | while read -r domain
do do
   
cat << EOM >> autolist.txt cat << EOM >> autolist.txt
local-zone: "$domain" redirect local-zone: "$domain" redirect
local-data: "$domain A 127.0.0.1" local-data: "$domain A 127.0.0.1"
EOM EOM
   
done done
   
"$1/bin/build_abp.sh" "$1/bin/build_abp.sh"