2016-01-17 10:20:49 -05:00
|
|
|
package rules
|
2015-12-13 19:01:57 -05:00
|
|
|
|
2016-02-01 16:30:00 -05:00
|
|
|
func NewChinaSitesRule(tag string) *Rule {
|
2016-01-17 10:20:49 -05:00
|
|
|
return &Rule{
|
2016-02-01 16:30:00 -05:00
|
|
|
Tag: tag,
|
2016-01-24 11:36:55 -05:00
|
|
|
Condition: chinaSitesConds,
|
2016-02-01 16:30:00 -05:00
|
|
|
}
|
2016-01-17 10:20:49 -05:00
|
|
|
}
|
|
|
|
|
2015-12-13 19:01:57 -05:00
|
|
|
const (
|
|
|
|
anySubDomain = "^(.*\\.)?"
|
|
|
|
dotAm = "\\.am$"
|
|
|
|
dotCc = "\\.cc$"
|
|
|
|
dotCn = "\\.cn$"
|
|
|
|
dotCom = "\\.com$"
|
2015-12-15 16:55:06 -05:00
|
|
|
dotIo = "\\.io$"
|
2015-12-13 19:01:57 -05:00
|
|
|
dotLa = "\\.la$"
|
2016-01-04 12:01:51 -05:00
|
|
|
dotMe = "\\.me$"
|
2015-12-13 19:01:57 -05:00
|
|
|
dotNet = "\\.net$"
|
|
|
|
dotOrg = "\\.org$"
|
|
|
|
dotTv = "\\.tv$"
|
|
|
|
)
|
|
|
|
|
|
|
|
var (
|
2016-01-24 11:36:55 -05:00
|
|
|
chinaSitesConds Condition
|
2015-12-13 19:12:29 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
regexpDomains := []string{
|
2015-12-13 19:01:57 -05:00
|
|
|
dotCn,
|
2015-12-14 05:52:18 -05:00
|
|
|
"\\.xn--fiqs8s$", /* .中国 */
|
2015-12-13 19:01:57 -05:00
|
|
|
|
|
|
|
anySubDomain + "10010" + dotCom,
|
|
|
|
anySubDomain + "115" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "123juzi" + dotCom,
|
|
|
|
anySubDomain + "123juzi" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "123u" + dotCom,
|
|
|
|
anySubDomain + "126" + dotCom,
|
|
|
|
anySubDomain + "126" + dotNet,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "127" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "163" + dotCom,
|
|
|
|
anySubDomain + "17173" + dotCom,
|
|
|
|
anySubDomain + "17cdn" + dotCom,
|
|
|
|
anySubDomain + "1905" + dotCom,
|
|
|
|
anySubDomain + "21cn" + dotCom,
|
|
|
|
anySubDomain + "2288" + dotOrg,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "2345" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "3322" + dotOrg,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "35" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "360doc" + dotCom,
|
|
|
|
anySubDomain + "360buy" + dotCom,
|
|
|
|
anySubDomain + "360buyimg" + dotCom,
|
|
|
|
anySubDomain + "360safe" + dotCom,
|
2015-12-13 19:07:45 -05:00
|
|
|
anySubDomain + "36kr" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "39" + dotNet,
|
2016-01-12 12:25:51 -05:00
|
|
|
anySubDomain + "3dmgame" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "4399" + dotCom,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "50bang" + dotOrg,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "51" + dotLa,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "51cto" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "51job" + dotCom,
|
|
|
|
anySubDomain + "51jobcdn" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "55bbs" + dotCom,
|
|
|
|
anySubDomain + "58" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "71" + dotAm,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "7k7k" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "9718" + dotCom,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "abchina" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "acfun" + dotTv,
|
|
|
|
anySubDomain + "aicdn" + dotCom,
|
|
|
|
anySubDomain + "alibaba" + dotCom,
|
|
|
|
anySubDomain + "alicdn" + dotCom,
|
|
|
|
anySubDomain + "aliimg.com" + dotCom,
|
|
|
|
anySubDomain + "alipay" + dotCom,
|
|
|
|
anySubDomain + "alipayobjects" + dotCom,
|
|
|
|
anySubDomain + "aliyun" + dotCom,
|
2015-12-13 19:07:45 -05:00
|
|
|
anySubDomain + "aliyuncdn" + dotCom,
|
|
|
|
anySubDomain + "aliyuncs" + dotCom,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "allyes" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "amap" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "anjuke" + dotCom,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "anquan" + dotOrg,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "appinn" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "babytree" + dotCom,
|
|
|
|
anySubDomain + "baidu" + dotCom,
|
|
|
|
anySubDomain + "baiducontent" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "baidustatic" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "baifendian" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "baifubao" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "baihe" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "baike" + dotCom,
|
|
|
|
anySubDomain + "baixing" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "baixing" + dotNet,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "bankcomm" + dotCom,
|
|
|
|
anySubDomain + "bankofchina" + dotCom,
|
2016-01-10 03:34:31 -05:00
|
|
|
anySubDomain + "bcy" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "bdimg" + dotCom,
|
|
|
|
anySubDomain + "bdstatic" + dotCom,
|
|
|
|
anySubDomain + "bilibili" + dotCom,
|
|
|
|
anySubDomain + "bitauto" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "bitautoimg" + dotCom,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "bobo" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "btcfans" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "ccb" + dotCom,
|
2015-12-13 19:07:45 -05:00
|
|
|
anySubDomain + "cctv" + dotCom,
|
|
|
|
anySubDomain + "cctvpic" + dotCom,
|
|
|
|
anySubDomain + "cdn20" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "ch" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "che168" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "china" + dotCom,
|
|
|
|
anySubDomain + "chinacache" + dotCom,
|
|
|
|
anySubDomain + "chinacache" + dotNet,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "chinahr" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "chinamobile" + dotCom,
|
|
|
|
anySubDomain + "chinaz" + dotCom,
|
2015-12-24 19:24:08 -05:00
|
|
|
anySubDomain + "chouti" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "chuangxin" + dotCom,
|
|
|
|
anySubDomain + "clouddn" + dotCom,
|
2015-12-16 09:49:09 -05:00
|
|
|
anySubDomain + "cloudxns" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "cmbchina" + dotCom,
|
|
|
|
anySubDomain + "cnbeta" + dotCom,
|
|
|
|
anySubDomain + "cnbetacdn" + dotCom,
|
|
|
|
anySubDomain + "cnblogs" + dotCom,
|
|
|
|
anySubDomain + "cnepub" + dotCom,
|
|
|
|
anySubDomain + "cnzz" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "coding" + dotNet,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "csbew" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "csdn" + dotNet,
|
|
|
|
anySubDomain + "ctrip" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "cubead" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "dangdang" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "daocloud" + dotIo,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "dedecms" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "diandian" + dotCom,
|
|
|
|
anySubDomain + "dianping" + dotCom,
|
|
|
|
anySubDomain + "docin" + dotCom,
|
2015-12-13 19:07:45 -05:00
|
|
|
anySubDomain + "donews" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "douban" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "doubanio" + dotCom,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "dpfile" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "duoshuo" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "duowan" + dotCom,
|
|
|
|
anySubDomain + "eastday" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "ecitic" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "emarbox" + dotCom,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "etao" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "fanli" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "fengniao" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "fhldns" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "geekpark" + dotNet,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "getui" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "hao123" + dotCom,
|
|
|
|
anySubDomain + "hao123img" + dotCom,
|
|
|
|
anySubDomain + "haosou" + dotCom,
|
2016-01-04 16:02:06 -05:00
|
|
|
anySubDomain + "hdslb" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "hexun" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "hichina" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "huanqiu" + dotCom,
|
2016-01-10 09:23:07 -05:00
|
|
|
anySubDomain + "hunantv" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "huochepiao" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "hupu" + dotCom,
|
2015-12-24 19:24:08 -05:00
|
|
|
anySubDomain + "huxiu" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "iask" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "iciba" + dotCom,
|
|
|
|
anySubDomain + "idqqimg" + dotCom,
|
|
|
|
anySubDomain + "ifanr" + dotCom,
|
|
|
|
anySubDomain + "ijinshan" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "imedao" + dotCom,
|
2016-01-10 09:23:07 -05:00
|
|
|
anySubDomain + "imgo" + dotTv,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "ipinyou" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "ipip" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "iqiyi" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "it168" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "itjuzi" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "jandan" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "jd" + dotCom,
|
2015-12-23 03:58:18 -05:00
|
|
|
anySubDomain + "jb51" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "jia" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "jianshu" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "jiasuhui" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "jiayuan" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "jisuanke" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "jstv" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "jyimg" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "kaixin001" + dotCom,
|
|
|
|
anySubDomain + "kanimg" + dotCom,
|
|
|
|
anySubDomain + "kankanews" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "kf5" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "kimiss" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "kouclo" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "koudai8" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "ku6" + dotCom,
|
|
|
|
anySubDomain + "ku6cdn" + dotCom,
|
|
|
|
anySubDomain + "ku6img" + dotCom,
|
|
|
|
anySubDomain + "lady8844" + dotCom,
|
|
|
|
anySubDomain + "leiphone" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "leju" + dotCom,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "leturich" + dotOrg,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "letv" + dotCom,
|
2016-01-04 16:02:06 -05:00
|
|
|
anySubDomain + "letvcdn" + dotCom,
|
|
|
|
anySubDomain + "letvimg" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "lietou" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "linkvans" + dotCom,
|
2016-01-10 09:23:07 -05:00
|
|
|
anySubDomain + "lightonus" + dotCom,
|
2016-01-12 04:40:44 -05:00
|
|
|
anySubDomain + "lofter" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "lu" + dotCom,
|
|
|
|
anySubDomain + "lufax" + dotCom,
|
|
|
|
anySubDomain + "lufaxcdn" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "lvmama" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "lxdns" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "ly" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "mechina" + dotOrg,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "mediav" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "meika360" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "meilishuo" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "meishij" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "meituan" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "meizu" + dotCom,
|
2016-01-10 09:23:07 -05:00
|
|
|
anySubDomain + "mgtv" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "mi" + dotCom,
|
|
|
|
anySubDomain + "miaozhen" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "mmstat" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "mop" + dotCom,
|
|
|
|
anySubDomain + "mydrivers" + dotCom,
|
|
|
|
anySubDomain + "netease" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "ngacn" + dotCc,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "ntalker" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "oeeee" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "ol-img" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "onlinesjtu" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "oschina" + dotNet,
|
|
|
|
anySubDomain + "paipai" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "pchome" + dotNet,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "pingan" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "pingplusplus" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "pps" + dotTv,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "pubyun" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "qbox" + dotMe,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "qhimg" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "qidian" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "qingcloud" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "qiniu" + dotCom,
|
|
|
|
anySubDomain + "qiniudn" + dotCom,
|
|
|
|
anySubDomain + "qiniudns" + dotCom,
|
|
|
|
anySubDomain + "qiyi" + dotCom,
|
|
|
|
anySubDomain + "qiyipic" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "qtmojo" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "qq" + dotCom,
|
|
|
|
anySubDomain + "qqmail" + dotCom,
|
|
|
|
anySubDomain + "qunar" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "qunarzz" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "qzone" + dotCom,
|
|
|
|
anySubDomain + "renren" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "ruby-china" + dotOrg,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "sandai" + dotNet,
|
|
|
|
anySubDomain + "sanguosha" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "sanwen" + dotNet,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "segmentfault" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "shutcm" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "sina" + dotCom,
|
|
|
|
anySubDomain + "sinaapp" + dotCom,
|
|
|
|
anySubDomain + "sinaedge" + dotCom,
|
|
|
|
anySubDomain + "sinaimg" + dotCom,
|
|
|
|
anySubDomain + "sinajs" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "szzfgjj" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "smzdm" + dotCom,
|
|
|
|
anySubDomain + "sohu" + dotCom,
|
|
|
|
anySubDomain + "sogou" + dotCom,
|
|
|
|
anySubDomain + "soso" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "sspai" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "staticfile" + dotOrg,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "stockstar" + dotCom,
|
|
|
|
anySubDomain + "suning" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "t1y5" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "tanx" + dotCom,
|
|
|
|
anySubDomain + "tao123" + dotCom,
|
|
|
|
anySubDomain + "taobao" + dotCom,
|
|
|
|
anySubDomain + "taobaocdn" + dotCom,
|
|
|
|
anySubDomain + "tencent" + dotCom,
|
|
|
|
anySubDomain + "tenpay" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "tiexue" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "tmall" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "tmcdn" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "tudou" + dotCom,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "tudouui" + dotCom,
|
2015-12-23 03:58:18 -05:00
|
|
|
anySubDomain + "tuicool" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "u17" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "unionpay" + dotCom,
|
|
|
|
anySubDomain + "unionpaysecure" + dotCom,
|
|
|
|
anySubDomain + "upyun" + dotCom,
|
|
|
|
anySubDomain + "upaiyun" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "v2ex" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "vamaker" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "vancl" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "vip" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "wandoujia" + dotCom,
|
|
|
|
anySubDomain + "wdjimg" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "webterren" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "weibo" + dotCom,
|
|
|
|
anySubDomain + "weiyun" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "wonnder" + dotCom,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "wrating" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "wscdns" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "xiachufang" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "xiami" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "xiaomi" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "xinhuanet" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "xinshipu" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "xnpic" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "xueqiu" + dotCom,
|
|
|
|
anySubDomain + "xunlei" + dotCom,
|
|
|
|
anySubDomain + "xywy" + dotCom,
|
|
|
|
anySubDomain + "yaolan" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "yccdn" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "yesky" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "yigao" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "yihaodian" + dotCom,
|
|
|
|
anySubDomain + "yihaodianimg" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "yingjiesheng" + dotCom,
|
|
|
|
anySubDomain + "yhd" + dotCom,
|
|
|
|
anySubDomain + "youboy" + dotCom,
|
|
|
|
anySubDomain + "youku" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "yunba" + dotIo,
|
|
|
|
anySubDomain + "yunshipei" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "yupoo" + dotCom,
|
|
|
|
anySubDomain + "yy" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "zastatic" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "zbjimg" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "zhenai" + dotCom,
|
|
|
|
anySubDomain + "zhanqi" + dotTv,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "zhihu" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "zhimg" + dotCom,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "zjstv" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "zhubajie" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
}
|
|
|
|
|
2016-01-24 08:40:46 -05:00
|
|
|
conds := make([]Condition, len(regexpDomains))
|
2016-01-17 10:20:49 -05:00
|
|
|
for idx, pattern := range regexpDomains {
|
2015-12-13 19:01:57 -05:00
|
|
|
matcher, err := NewRegexpDomainMatcher(pattern)
|
|
|
|
if err != nil {
|
|
|
|
panic(err)
|
|
|
|
}
|
2016-01-24 08:40:46 -05:00
|
|
|
conds[idx] = matcher
|
2015-12-13 19:01:57 -05:00
|
|
|
}
|
2016-01-24 08:40:46 -05:00
|
|
|
|
|
|
|
anyConds := AnyCondition(conds)
|
2016-01-24 11:36:55 -05:00
|
|
|
chinaSitesConds = &anyConds
|
2015-12-13 19:01:57 -05:00
|
|
|
}
|