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$"
|
2016-03-08 11:35:33 -05:00
|
|
|
dotInfo = "\\.info$"
|
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,
|
2016-02-25 08:38:56 -05:00
|
|
|
anySubDomain + "100offer" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "188" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "1905" + dotCom,
|
|
|
|
anySubDomain + "21cn" + dotCom,
|
|
|
|
anySubDomain + "2288" + dotOrg,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "2345" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "263" + dotNet,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "2cto" + 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,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "3conline" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "4399" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "500d" + dotMe,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "50bang" + dotOrg,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "51" + dotLa,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "51credit" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "51cto" + dotCom,
|
2016-06-04 11:48:23 -04:00
|
|
|
anySubDomain + "51jingying" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "51job" + dotCom,
|
|
|
|
anySubDomain + "51jobcdn" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "51wendang" + dotCom,
|
|
|
|
anySubDomain + "55" + dotCom,
|
2016-03-05 16:03:28 -05:00
|
|
|
anySubDomain + "51yes" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "55bbs" + dotCom,
|
|
|
|
anySubDomain + "58" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "6rooms" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "71" + dotAm,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "7k7k" + dotCom,
|
2016-03-05 16:03:28 -05:00
|
|
|
anySubDomain + "900" + dotLa,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "9718" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "9xu" + dotCom,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "abchina" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "acfun" + dotTv,
|
2016-05-22 13:04:20 -04:00
|
|
|
anySubDomain + "acgvideo" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "agrantsem" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "aicdn" + dotCom,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "aixifan" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "babytreeimg" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "baidu" + dotCom,
|
|
|
|
anySubDomain + "baiducontent" + dotCom,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "baidupcs" + 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,
|
2016-02-29 17:20:08 -05:00
|
|
|
"cn\\.bing" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
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-06-04 11:48:23 -04:00
|
|
|
anySubDomain + "bootcss" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "btcfans" + dotCom,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "caiyunapp" + 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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "cebbank" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "ch" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "chashebao" + 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,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "chinapay" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "chinatranslation" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "chinaz" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "chiphell" + dotCom,
|
2015-12-24 19:24:08 -05:00
|
|
|
anySubDomain + "chouti" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "chuangxin" + dotCom,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "chuansong" + dotMe,
|
2015-12-13 19:01:57 -05:00
|
|
|
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-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "coolapk" + dotCom,
|
2016-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "cqvip" + dotCom,
|
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,
|
2016-02-22 11:08:31 -05:00
|
|
|
anySubDomain + "dajie" + dotCom,
|
|
|
|
anySubDomain + "dajieimg" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "dangdang" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "daocloud" + dotIo,
|
2016-02-24 08:48:05 -05:00
|
|
|
anySubDomain + "daovoice" + dotIo,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "dbank" + dotCom,
|
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,
|
2016-03-05 16:03:28 -05:00
|
|
|
anySubDomain + "diopic" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "docin" + dotCom,
|
2016-02-24 08:48:05 -05:00
|
|
|
anySubDomain + "dockerone" + dotCom,
|
|
|
|
anySubDomain + "dockone" + dotIo,
|
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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "duomai" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "duoshuo" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "duowan" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "dxpmedia" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
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,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "eoeandroid" + dotCom,
|
2015-12-15 17:04:44 -05:00
|
|
|
anySubDomain + "etao" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "excelhome" + dotNet,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "fanli" + dotCom,
|
2016-06-03 06:47:22 -04:00
|
|
|
anySubDomain + "feng" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "fengniao" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "fhldns" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "foxmail" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "geekpark" + dotNet,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "geetest" + dotCom,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "geilicdn" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "getui" + dotCom,
|
2016-06-03 06:47:22 -04:00
|
|
|
anySubDomain + "google-analytics" + dotCom,
|
2016-02-24 08:48:05 -05:00
|
|
|
anySubDomain + "growingio" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "gtags" + dotNet,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "gwdang" + 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,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "henha" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "henkuai" + 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,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "hupucdn" + 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,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "ifanrusercontent" + dotCom,
|
|
|
|
anySubDomain + "ifanrx" + dotCom,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "ifeng" + dotCom,
|
|
|
|
anySubDomain + "ifengimg" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "ijinshan" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "ikafan" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "imedao" + dotCom,
|
2016-01-10 09:23:07 -05:00
|
|
|
anySubDomain + "imgo" + dotTv,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "imooc" + dotCom,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "infoq" + dotCom,
|
|
|
|
anySubDomain + "infoqstatic" + dotCom,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "ip138" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "ipinyou" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "ipip" + dotNet,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "ip-cdn" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "iqiyi" + dotCom,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "it165" + dotNet,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "it168" + dotCom,
|
2016-02-25 08:38:56 -05:00
|
|
|
anySubDomain + "it610" + dotCom,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "iteye" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "ithome" + 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,
|
2016-03-05 16:03:28 -05:00
|
|
|
anySubDomain + "jianshu" + dotIo,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "jiasuhui" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "jiathis" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "jiayuan" + dotCom,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "jikexueyuan" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "jisuanke" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "jmstatic" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "jstv" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "jumei" + 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,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "kejet" + dotNet,
|
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,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "koudai" + 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,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "kuqin" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "lady8844" + dotCom,
|
2016-02-22 07:44:46 -05:00
|
|
|
anySubDomain + "lagou" + dotCom,
|
2016-03-11 17:51:24 -05:00
|
|
|
anySubDomain + "le" + dotCom,
|
2016-02-25 08:38:56 -05:00
|
|
|
anySubDomain + "leanote" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
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,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "liantu" + dotMe,
|
2016-02-22 11:08:31 -05:00
|
|
|
anySubDomain + "liaoxuefeng" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "liba" + dotCom,
|
|
|
|
anySubDomain + "libaclub" + dotCom,
|
2016-02-25 08:38:56 -05:00
|
|
|
anySubDomain + "liepin" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "lietou" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "lightonus" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "linkvans" + dotCom,
|
2016-03-08 09:45:30 -05:00
|
|
|
anySubDomain + "linuxidc" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "liuxiaoer" + 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-02-25 08:38:56 -05:00
|
|
|
anySubDomain + "lxway" + dotCom,
|
2016-01-03 19:12:38 -05:00
|
|
|
anySubDomain + "ly" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "mayihr" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "mechina" + dotOrg,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "mediav" + dotCom,
|
2016-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "meiqia" + 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,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "miaopai" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "miaozhen" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "mmbang" + dotCom,
|
|
|
|
anySubDomain + "mmbang" + dotInfo,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "mmstat" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "mogucdn" + dotCom,
|
|
|
|
anySubDomain + "mogujie" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "mop" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "mscbsc" + dotCom,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "mukewang" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "mydrivers" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "myshow360" + dotNet,
|
2016-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "mzstatic" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "netease" + dotCom,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "newbandeng" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "ngacn" + dotCc,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "ntalker" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "nvsheng" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "oeeee" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "ol-img" + dotCom,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "oneapm" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "onlinedown" + dotNet,
|
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,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "pcbeta" + 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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "psbc" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "pubyun" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "qbox" + dotMe,
|
2016-02-24 08:48:05 -05:00
|
|
|
anySubDomain + "qcloud" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "qhimg" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "qiaobutang" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "qidian" + dotCom,
|
2016-01-04 12:01:51 -05:00
|
|
|
anySubDomain + "qingcloud" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "qingsongchou" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "qiniu" + dotCom,
|
2016-02-24 08:48:05 -05:00
|
|
|
anySubDomain + "qiniucdn" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
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,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "ruanmei" + 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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "sf-express" + dotCom,
|
2016-02-24 06:53:55 -05:00
|
|
|
anySubDomain + "sharejs" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "shmetro" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "shutcm" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "simei8" + 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,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "sogoucdn" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "soso" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "sspai" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "starbaby" + dotCc,
|
|
|
|
anySubDomain + "starbaby" + 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-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "szfw" + dotOrg,
|
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,
|
2016-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "tbcache" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "tencent" + dotCom,
|
|
|
|
anySubDomain + "tenpay" + dotCom,
|
2016-02-24 08:48:05 -05:00
|
|
|
anySubDomain + "tenxcloud" + dotCom,
|
2016-02-22 07:44:46 -05:00
|
|
|
anySubDomain + "tiebaimg" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "tietuku" + 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,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "topthink" + dotCom,
|
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-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "tuniu" + dotCom,
|
2016-06-03 06:47:22 -04:00
|
|
|
anySubDomain + "tutuapp" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "u17" + dotCom,
|
2016-02-22 11:08:31 -05:00
|
|
|
anySubDomain + "useso" + 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-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "v5875" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "vamaker" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "vancl" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "vcimg" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "vip" + dotCom,
|
2016-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "wallstreetcn" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "wandoujia" + dotCom,
|
|
|
|
anySubDomain + "wdjimg" + dotCom,
|
2016-06-03 06:47:22 -04:00
|
|
|
anySubDomain + "weand" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "webterren" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "weibo" + dotCom,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "weicaifu" + dotCom,
|
2016-02-27 15:47:07 -05:00
|
|
|
anySubDomain + "weidian" + dotCom,
|
2016-06-03 06:47:22 -04:00
|
|
|
anySubDomain + "weiphone" + dotCom,
|
|
|
|
anySubDomain + "weiphone" + dotNet,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "weixing" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "weiyun" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "wonnder" + dotCom,
|
2016-03-03 18:27:33 -05:00
|
|
|
anySubDomain + "worktile" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "wooyun" + dotOrg,
|
2015-12-15 18:57:04 -05:00
|
|
|
anySubDomain + "wrating" + dotCom,
|
2016-01-03 09:38:09 -05:00
|
|
|
anySubDomain + "wscdns" + dotCom,
|
2016-03-05 16:03:28 -05:00
|
|
|
anySubDomain + "wumii" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "xiachufang" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "xiami" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "xiaokaxiu" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "xiaomi" + dotCom,
|
2016-02-22 11:08:31 -05:00
|
|
|
anySubDomain + "xitu" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "xinhuanet" + dotCom,
|
2015-12-15 18:08:46 -05:00
|
|
|
anySubDomain + "xinshipu" + dotCom,
|
2016-02-23 15:39:55 -05:00
|
|
|
anySubDomain + "xiu8" + 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,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "yeepay" + 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,
|
2016-02-29 17:20:08 -05:00
|
|
|
anySubDomain + "yinxiang" + dotCom,
|
2016-02-22 11:08:31 -05:00
|
|
|
anySubDomain + "yjbys" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "yhd" + dotCom,
|
|
|
|
anySubDomain + "youboy" + dotCom,
|
|
|
|
anySubDomain + "youku" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "yunba" + dotIo,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "yundaex" + dotCom,
|
2015-12-15 16:55:06 -05:00
|
|
|
anySubDomain + "yunshipei" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "yupoo" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "yuzua" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "yy" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "yytcdn" + dotCom,
|
2016-03-08 11:35:33 -05:00
|
|
|
anySubDomain + "zampda" + dotNet,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "zastatic" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "zbjimg" + dotCom,
|
2016-05-23 08:19:38 -04:00
|
|
|
anySubDomain + "zdfans" + dotCom,
|
2016-01-04 03:37:41 -05:00
|
|
|
anySubDomain + "zhenai" + dotCom,
|
|
|
|
anySubDomain + "zhanqi" + dotTv,
|
2016-02-22 07:44:46 -05:00
|
|
|
anySubDomain + "zhaopin" + dotCom,
|
2015-12-13 19:01:57 -05:00
|
|
|
anySubDomain + "zhihu" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "zhimg" + dotCom,
|
2016-02-23 06:02:26 -05:00
|
|
|
anySubDomain + "zhiziyun" + dotCom,
|
2016-01-03 19:05:32 -05:00
|
|
|
anySubDomain + "zjstv" + dotCom,
|
2015-12-14 05:52:18 -05:00
|
|
|
anySubDomain + "zhubajie" + dotCom,
|
2016-03-08 09:45:30 -05:00
|
|
|
anySubDomain + "zrblog" + dotNet,
|
2016-02-25 08:38:56 -05:00
|
|
|
anySubDomain + "zuche" + dotCom,
|
|
|
|
anySubDomain + "zuchecdn" + 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
|
|
|
}
|