Skip to content

Captured DNS requests from Huawei P30 Pro to a block list

Notifications You must be signed in to change notification settings

fo0nikens/huawei-block-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

huawei-block-list

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 and qq.com.
  • By relying on techniques in update.py to verify location domain names. Some domain names such as tencent-cloud.net and hwcdn.net are not flagged. I will find a way to fix this issue later.

Setup Blocking with Algo VPN

  1. Setup Algo VPN and enable adblocking feature on both server and client-side
  2. Update /usr/local/sbin/adblock.sh to include the raw version of block list. The block list should be appended to BLOCKLIST_URLS variable.
awk '{gsub(/"$/,"https://raw.githubusercontent.com/pe3zx/huawei-block-list/master/master.txt \"")}' /usr/local/sbin/adblock.sh
  1. 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

Setup Blocking with OpenDNS

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.

About

Captured DNS requests from Huawei P30 Pro to a block list

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages