Skip to content

Instantly share code, notes, and snippets.

@zlylong
zlylong / hosts
Created June 5, 2017 04:33 — forked from alswl/hosts
hosts for OpenWRT, for disable AD in xiaomi TV
127.0.0.1 api.ad.xiaomi.com
127.0.0.1 sdkconfig.ad.xiaomi.com
127.0.0.1 ad.mi.com
127.0.0.1 ad.xiaomi.com
127.0.0.1 ad1.xiaomi.com
127.0.0.1 adv.sec.miui.com
127.0.0.1 test.ad.xiaomi.com
127.0.0.1 new.api.ad.xiaomi.com
@zlylong
zlylong / hosts
Created February 10, 2017 06:47 — forked from consti/hosts
/etc/hosts to block shock sites etc.
# This hosts file is brought to you by Dan Pollock and can be found at
# http://someonewhocares.org/hosts/
# You are free to copy and distribute this file for non-commercial uses,
# as long the original URL and attribution is included.
#<localhost>
127.0.0.1 localhost
127.0.0.1 localhost.localdomain
255.255.255.255 broadcasthost
::1 localhost
# ISP Shanghai Telecom
bogus-nxdomain=180.168.41.175
# OpenDNS
bogus-nxdomain=67.215.65.132
bogus-nxdomain=67.215.77.132
bogus-nxdomain=208.69.34.132
bogus-nxdomain=208.69.32.132
# DNSPai
ruleSets:
- name: Potatso Config
rules:
- DOMAIN-MATCH,aka,Proxy
- DOMAIN-SUFFIX,edu.cn,DIRECT
- DOMAIN-SUFFIX,cn,DIRECT
- DOMAIN-SUFFIX,cn,DIRECT
- DOMAIN-MATCH,-cn,DIRECT
- DOMAIN-MATCH,360buy,DIRECT