Received email to say that player.h-cdn.com was added erroneously.
[adblocklists.git] / bin / update_addomains.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
#
# Update the ads domain list
 
 
 
cd "$1"
 
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 
 
cat minerdomains.txt | while read -r domain
do
 
cat << EOM >> autolist.txt
local-zone: "$domain" redirect
local-data: "$domain A 127.0.0.1"
EOM
 
done
 
"$1/bin/build_abp.sh"