Domain names on master.txt
are captured DNS requests from Huawei P30 Pro, located in China and/or has an IP address within China's ASN. The device hasn't configured with Huawei services, including Huawei ID or any Hi services.
Please note that:
- The block list may includes test domain names,
baidu.com
andqq.com
. - By relying on techniques in
update.py
to verify location domain names. Some domain names such astencent-cloud.net
andhwcdn.net
are not flagged. I will find a way to fix this issue later.
- Setup Algo VPN and enable adblocking feature on both server and client-side
- Update
/usr/local/sbin/adblock.sh
to include the raw version of block list. The block list should be appended toBLOCKLIST_URLS
variable.
awk '{gsub(/"$/,"https://raw.githubusercontent.com/pe3zx/huawei-block-list/master/master.txt \"")}' /usr/local/sbin/adblock.sh
- Execute
/usr/local/sbin/adblock.sh
to apply new block list to dnsmasq. The script will be automatically executed by cron to pull and apply any updates.
sh /usr/local/sbin/adblock.sh
If you don't have your own server or don't want to mess with configuration stuff, you can get a free OpenDNS account which you can create up to 25 domains to block. However, OpenDNS doesn't support leading dot domain like .cn
. I recommend to add each domain which has only ccTLD, and add something like gov.cn
or com.cn
to make you life easier.