diff --git a/README.md b/README.md index 3124c1b2..b559e96b 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,61 @@ This project is not opinionated. In other words, it does NOT endorse, claim or i - **dlc.dat**:[https://github.com/v2ray/domain-list-community/raw/release/dlc.dat](https://github.com/v2ray/domain-list-community/raw/release/dlc.dat) - **dlc.dat.sha256sum**:[https://github.com/v2ray/domain-list-community/raw/release/dlc.dat.sha256sum](https://github.com/v2ray/domain-list-community/raw/release/dlc.dat.sha256sum) +## Usage example + +Each file in the `data/` directory can be used as a rule in this format: `geosite:filename`. + +```json +"routing": { + "domainStrategy": "IPIfNonMatch", + "rules": [ + { + "type": "field", + "outboundTag": "Reject", + "domain": [ + "geosite:category-ads-all", + "geosite:category-porn" + ] + }, + { + "type": "field", + "outboundTag": "Direct", + "domain": [ + "domain:v2ex.com", + "domain:icloud.com", + "domain:icloud-content.com", + "domain:cdn-apple.com", + "geosite:jsdelivr", + "geosite:cn" + ] + }, + { + "type": "field", + "outboundTag": "Proxy-1", + "domain": [ + "geosite:category-anticensorship", + "geosite:category-media", + "geosite:category-vpnservices" + ] + }, + { + "type": "field", + "outboundTag": "Proxy-2", + "domain": [ + "geosite:category-dev" + ] + }, + { + "type": "field", + "outboundTag": "Proxy-3", + "domain": [ + "geosite:geolocation-!cn" + ] + } + ] +} +``` + ## Structure of data All data are under `data/` directory. Each file in the directory represents a sub-list of domains, named by the file name. File content is in the following format. diff --git a/data/58tongcheng b/data/58tongcheng index c2f86a96..17cfce5b 100644 --- a/data/58tongcheng +++ b/data/58tongcheng @@ -1,6 +1,12 @@ 58.com +58.com.cn +5858.com 58che.com +58xueche.com anjuke.com anjukestatic.com chinahr.com jxedt.com +zhuancorp.com +zhuanspirit.com +zhuanzhuan.com diff --git a/data/9news b/data/9news new file mode 100644 index 00000000..4c12e729 --- /dev/null +++ b/data/9news @@ -0,0 +1,11 @@ +9cdn.net +9nation.com.au +9news.com.au +9now.com.au +freeviewplus.net.au +mi9.com.au +mi9cdn.com +nine.com.au +ninemsn.com.au +static9.net.au +yourtv.com.au diff --git a/data/acm b/data/acm deleted file mode 100644 index 680edc6e..00000000 --- a/data/acm +++ /dev/null @@ -1 +0,0 @@ -acm.org diff --git a/data/adobe b/data/adobe index c9faef33..a0bf9257 100644 --- a/data/adobe +++ b/data/adobe @@ -7,6 +7,7 @@ adobedc.net adobedtm.com adobelogin.com adobeoobe.com +assetsadobe.com behance.net edgefonts.net omtrdc.net diff --git a/data/alibaba b/data/alibaba index 8e5134d8..5ea7d582 100644 --- a/data/alibaba +++ b/data/alibaba @@ -1,28 +1,85 @@ +56che.com 95095.com +9game.cn +aliapp.org alibaba.com alibaba-inc.com -alibabagroup.com +alibabacapital.com alibabacorp.com -alibabaplanet.com alibabadns.com +alibabadoctor.com +alibabafuturehotel.com +alibabagroup.com +alibabaplanet.com +alibabaued.com alibabausercontent.com alicdn.com +alidayu.com alidns.com +alifanyi.com +alihealth.com.cn +alihealth.hk aliimg.com +alikmd.com +alimama.com +alimebot.com +alios.cn alipay.com alipayobjects.com aliplus.com +aliresearch.com alisoft.com +alisports.com +alitianji.com +aliunicorn.com +aliway.com +aliwork.com +alixiaomi.com aliyun.com aliyun-inc.com aliyuncdn.com aliyuncs.com -aliapp.org -alisports.com -alimama.com +alizhaopin.com +asczwa.com +asczxcefsv.com +atatech.org +b2byao.com +bazai.com +bcvbw.com +cheng.xin +damai.cn +dfkhgj.com +doctoryou.ai +doctoryou.cn dongting.com +dratio.com +emas-poc.com +gongyi.xin +hichina.com +iconfont.cn +ics.design +jhgtgb.com +kanbox.com +lazada.com +liangxinyao.com +maitix.com +mdeer.com mei.com +miaostreet.com +mshare.cc mxhichina.com +nic.xin +philanthropy.xin +saee.org.cn +shenjing.com +shuqi.com +shuqireader.com +xinlingshou.cn +yowhale.com +yunos.com +yunos-inc.com +yushanfang.com +zuodao.com sm.cn @@ -30,25 +87,34 @@ cainiao.com cainiao.com.cn cainiao-inc.com +# Hema + +freshhema.com +hemaos.com +shyhhema.com + # Taobao 1688.com -taobao.com -taobao.org -taopiaopiao.com -taobaocdn.com -tbcache.com -tmall.com -tmalltv.com +etao.com juhuasuan.com lingshoujia.com pailitao.com -etao.com +taobao.com +taobao.org +taobaocdn.com +taopiaopiao.com +tb.cn +tbcache.com +tmall.com +tmalltv.com +tmjl.ai # Fliggy alitrip.com feizhu.cn feizhu.com fliggy.com +fliggy.hk iuynfg.com # amap diff --git a/data/amazon b/data/amazon index 28e37f82..98ce1f6e 100644 --- a/data/amazon +++ b/data/amazon @@ -4,6 +4,7 @@ amazon.co.uk amazon.co.jp amazon.de amazon.jp +amazon.jobs amazontrust.com amzn.com media-amazon.com diff --git a/data/apa b/data/apa new file mode 100644 index 00000000..ac2b9de6 --- /dev/null +++ b/data/apa @@ -0,0 +1,2 @@ +apa.org +psyccareers.com diff --git a/data/appledaily b/data/appledaily index 5a0f0914..4ade8dc6 100644 --- a/data/appledaily +++ b/data/appledaily @@ -1,16 +1,34 @@ # Reference: https://zh.wikipedia.org/wiki/%E5%A3%B9%E5%82%B3%E5%AA%92 appledaily.com -appledaily.hk appledaily.com.hk appledaily.com.tw +appledaily.hk +applefruity.com +applehealth.com.hk atnext.com -nextmedia.com -nextdigital.com.hk -nextmag.com.tw -nexttv.com.tw - +bestmallawards.com +deluxe.com.hk eracom.com.tw -nextmgz.com next.hk +nextdigital.com.hk +nextdigital.com.tw +nextfilm.com.hk +nextmag.com.tw +nextmedia.com +nextmedia.com.tw +nextmgz.com +nextplus.com.hk +nexttv.com.tw +nextwork.com.hk +nextwork.com.tw +nextwork.hk +nextwork.tw +nxtdig.com.hk +nxtdig.com.tw +omoplanet.com +privilege.hk +privilege.tw sharpdaily.tw +tomonews.net +twnextdigital.com diff --git a/data/applovin-ads b/data/applovin-ads index ae85cebe..787e8902 100644 --- a/data/applovin-ads +++ b/data/applovin-ads @@ -1 +1,2 @@ applovin.com @ads +applvn.com @ads diff --git a/data/arxiv b/data/arxiv deleted file mode 100644 index 949a60f1..00000000 --- a/data/arxiv +++ /dev/null @@ -1 +0,0 @@ -arxiv.org diff --git a/data/baidu b/data/baidu index 8f3b0899..16f898da 100644 --- a/data/baidu +++ b/data/baidu @@ -1,18 +1,36 @@ +91.com +aipage.com +apollo.auto baidu.cn baidu.com +baidubce.com baiducontent.com baidupcs.com baidustatic.com +baifae.com baifubao.com bdimg.com bdstatic.com +bdtjrcv.com +bdydns.cn bdydns.net +chuanke.com dlnel.com +dlnel.org duapps.com +dwz.cn +hao123.com +hao123img.com +hao222.com +haokan.com jomocdn.net +mipcdn.com +nuomi.com quyaoya.com +smartapps.cn tieba.com tiebaimg.com +xianfae.com xiaodutv.com include:baidu-ads diff --git a/data/bandcamp b/data/bandcamp new file mode 100644 index 00000000..24cb5caf --- /dev/null +++ b/data/bandcamp @@ -0,0 +1,2 @@ +bandcamp.com +bcbits.com diff --git a/data/cambridge b/data/cambridge new file mode 100644 index 00000000..0c426921 --- /dev/null +++ b/data/cambridge @@ -0,0 +1,4 @@ +cambridge.org +cambridgeschoolshakespeare.com +cambridgedigital.net +cambridgemaths.org diff --git a/data/category-ads b/data/category-ads index 63b72634..ee0425bf 100644 --- a/data/category-ads +++ b/data/category-ads @@ -7,7 +7,9 @@ include:amazon-ads include:apple-ads include:applovin-ads include:baidu-ads +include:clearbitjs-ads include:dmm-ads +include:flurry-ads include:google-ads include:hunantv-ads include:inner-active-ads @@ -15,11 +17,14 @@ include:iqiyi-ads include:jd-ads include:kuaishou-ads include:letv-ads +include:mixpanel-ads include:mopub-ads include:mxplayer-ads include:netease-ads +include:onesignal-ads include:ookla-speedtest-ads include:pubmatic-ads +include:segment-ads include:sina-ads include:sohu-ads include:tappx-ads @@ -27,6 +32,7 @@ include:tencent-ads include:uberads-ads include:umeng-ads include:unity-ads +include:wteam-ads include:xiaomitv-ads include:yahoo-ads include:youku-ads diff --git a/data/category-media b/data/category-media index 5a78d305..00769627 100644 --- a/data/category-media +++ b/data/category-media @@ -1,3 +1,4 @@ +include:9news include:afp include:americasvoice include:ap @@ -21,11 +22,13 @@ include:hkopentv include:hongkongfp include:inmediahk include:jfengtime +include:landofhope include:localpresshk include:ltn include:matters include:medium include:myradio +include:newyorker include:nikkei include:now include:ntd diff --git a/data/category-scholar-!cn b/data/category-scholar-!cn new file mode 100644 index 00000000..ce439462 --- /dev/null +++ b/data/category-scholar-!cn @@ -0,0 +1,59 @@ +# This list contains scholarly domains that don't have access point in China Mainland. + +include:apa +include:cambridge +include:clarivate +include:doi +include:elsevier +include:mit +include:oup +include:sciencedirect +include:springer +include:taylorfrancis + +aclweb.org +acm.org +analytictech.com +annualreviews.org +arxiv.org +asha.org +berkeley.edu +biorxiv.org +brill.com +cell.com +computingreviews.com +degruyter.com +dentalhypotheses.com +elifesciences.org +frontiersin.org +hindawi.com +ieee.org +isca-speech.org +jmlr.org +jneurosci.org +jstor.org +mdpi.com +nature.com +neurology.org +ovid.com +peerj.com +physiology.org +plos.org +pnas.org +princeton.edu +researchgate.net +routledgehandbooks.com +royalsocietypublishing.org +sagepub.com +scholarpedia.org +sciencemag.org +scientificamerican.com +scitation.org +spiedigitallibrary.org +statsmakemecry.com +thelancet.com +uchicago.edu +ucla.edu +umass.edu +wiley.com +yale.edu diff --git a/data/clarivate b/data/clarivate index f0bc1e99..e3f70b1f 100644 --- a/data/clarivate +++ b/data/clarivate @@ -1,2 +1,6 @@ # Clarivate Analytics is a company that owns and operates a collection of subscription-based services focused largely on analytics, including scientific and academic research, patent analytics, regulatory standards, trademark protection, pharmaceutical and biotechnology intelligence, domain brand protection and intellectual property management. + include:sci + +clarivate.com +webofknowledge.com diff --git a/data/clearbitjs-ads b/data/clearbitjs-ads new file mode 100644 index 00000000..47e2172c --- /dev/null +++ b/data/clearbitjs-ads @@ -0,0 +1 @@ +x.clearbitjs.com diff --git a/data/cnn b/data/cnn index 04fc70f4..b544ed85 100644 --- a/data/cnn +++ b/data/cnn @@ -1 +1,8 @@ cnn.com +cnn.io +cnnarabic.com +cnnlabs.com +cnnmoney.ch +cnnmoney.com +cnnmoneystream.com +cnnpolitics.com diff --git a/data/computingreviews b/data/computingreviews deleted file mode 100644 index 165d003a..00000000 --- a/data/computingreviews +++ /dev/null @@ -1 +0,0 @@ -computingreviews.com diff --git a/data/deviantart b/data/deviantart new file mode 100644 index 00000000..61f2b2df --- /dev/null +++ b/data/deviantart @@ -0,0 +1,3 @@ +deviantart.com +deviantart.net +da-files.com diff --git a/data/digicert b/data/digicert index 29e073a7..bde1390a 100644 --- a/data/digicert +++ b/data/digicert @@ -1 +1,7 @@ digicert.com +freessl.com +geotrust.com +rapidssl.com +thawte.com +thawte.de +thawte.fr diff --git a/data/dingtalk b/data/dingtalk index 6b8ef4c5..bbd7f01d 100644 --- a/data/dingtalk +++ b/data/dingtalk @@ -1,8 +1,8 @@ +ddurl.to +dingding.xin dingtalk.com dingtalk.net dingtalk.cn dingtalkapps.com -ddurl.to laiwang.com -dingding.xin lwurl.to diff --git a/data/disney b/data/disney index 358e7ebc..eb2295cd 100644 --- a/data/disney +++ b/data/disney @@ -1,11 +1,15 @@ adventuresbydisney.com +babble.com dilcdn.com disney-plus.net +disney.ca disney.com +disney.com.br disney.io disneyaulani.com disneybaby.com disneyjunior.com +disneylatino.com disneymovieinsiders.com disneyplus.com disneyredirects.com @@ -13,5 +17,8 @@ disneystore.com dssott.com go.com moviesanywhere.com +playmation.com shopdisney.com starwars.com +thestationbymaker.com +thisispolaris.com diff --git a/data/dmm-ads b/data/dmm-ads index e6e0eb83..68e280b0 100644 --- a/data/dmm-ads +++ b/data/dmm-ads @@ -1,20 +1,13 @@ # Refer: https://tonahazana.com/kancolle-2nd-weight-saving -# If you use spport tools to play dmm games(such as playing Kantai Collection by poi), this list maybe useful +# If you use support tools to play DMM games(such as playing Kantai Collection by poi), this list maybe useful. -a-i-ad.com @ads +bluekai.com @ads fout.jp @ads +gmossp-sp.jp @ads i-mobile.co.jp @ads im-apps.net @ads impact-ad.jp @ads -gmossp-sp.jp @ads -gsspat.jp @ads ladsp.com @ads -maist.jp @ads microad.co.jp @ads microad.jp @ads -nex8.net @ads socdm.com @ads -bluekai.com @ads -x9.shinobi.jp @ads -zucks.net @ads -zucks.net.zimg.jp @ads diff --git a/data/doi b/data/doi new file mode 100644 index 00000000..a1bcfe10 --- /dev/null +++ b/data/doi @@ -0,0 +1,2 @@ +doi.org +doi.info diff --git a/data/ebay b/data/ebay index 196a5c27..4cf5d2ad 100644 --- a/data/ebay +++ b/data/ebay @@ -1,4 +1,24 @@ +ebay.at +ebay.be +ebay.ca +ebay.ch +ebay.cn +ebay.co.uk ebay.com +ebay.com.au +ebay.com.hk +ebay.com.sg +ebay.de +ebay.es +ebay.fr +ebay.ie +ebay.in +ebay.it +ebay.nl +ebay.pl ebayimg.com +ebayinc.com +ebaymainstreet.com +ebayprivacycenter.com ebayrtm.com ebaystatic.com diff --git a/data/edx b/data/edx new file mode 100644 index 00000000..29575d25 --- /dev/null +++ b/data/edx @@ -0,0 +1,2 @@ +edx.org +edx-cdn.org diff --git a/data/elsevier b/data/elsevier index 14945f05..07b0b164 100644 --- a/data/elsevier +++ b/data/elsevier @@ -1,5 +1,4 @@ # Elsevier's website, One of the largest academic publishing companies engineeringvillage.com -sciencedirect.com scopus.com diff --git a/data/epicgames b/data/epicgames index b9e931b0..68a9987e 100644 --- a/data/epicgames +++ b/data/epicgames @@ -1,4 +1,12 @@ +battlebreakers.com epicgames.com +fortnite.com +paragon.com +playparagon.com +roborecall.com +shadowcomplex.com +spyjinx.com +unrealtournament.com regex:^epicgames-download\d\.akamaized\.net$ regex:^cdn\d-epicgames-\d+\.file\.myqcloud\.com$ diff --git a/data/feedly b/data/feedly new file mode 100644 index 00000000..be870095 --- /dev/null +++ b/data/feedly @@ -0,0 +1 @@ +feedly.com diff --git a/data/flurry-ads b/data/flurry-ads new file mode 100644 index 00000000..9c258bca --- /dev/null +++ b/data/flurry-ads @@ -0,0 +1 @@ +data.flurry.com diff --git a/data/fonts b/data/fonts new file mode 100644 index 00000000..48632522 --- /dev/null +++ b/data/fonts @@ -0,0 +1,2 @@ +fonts.com +fonts.net diff --git a/data/geolocation-!cn b/data/geolocation-!cn index e388803a..d422631f 100644 --- a/data/geolocation-!cn +++ b/data/geolocation-!cn @@ -12,6 +12,13 @@ include:category-porn # News & Press & Media include:category-media +# Science & Technology & Knowledge & Scholar & Press +include:category-scholar-!cn +include:chinapower +include:edx +include:knovel +include:ted + # Software development related include:category-dev @@ -70,6 +77,7 @@ include:dropbox include:duckduckgo include:entermediadb include:faststone +include:feedly include:gofundme include:gravatar include:heroku @@ -79,13 +87,18 @@ include:jwplayer include:linguee include:netlify include:osdn +include:patreon include:pinterest include:protonmail include:sharethis +include:shopify include:sourceforge include:startpage include:steemit +include:stripe include:tumblr +include:webflow +include:wix include:wordpress include:zeit @@ -102,6 +115,8 @@ include:ebay # Entertainment & Videos & Games & Music include:archiveofourown +include:bandcamp +include:deviantart include:disney include:epicgames include:hbo @@ -116,9 +131,12 @@ include:soundcloud include:spotify include:steam include:steamunlocked +include:twitch include:ubi include:vimeo include:viu +include:weverse +include:yande include:yyets # Forums @@ -138,24 +156,13 @@ include:who include:wikimedia include:wto -# Science & Technology & Knowledge -include:acm -include:arxiv -include:chinapower -include:computingreviews -include:elsevier -include:ieee -include:knovel -include:nature -include:springer -include:ted - # Advertisment & Analytics -include:clarivate include:pubmatic include:taboola # Others +include:fonts +include:hkedcity include:huanghuagang include:rarbg include:tsquare diff --git a/data/geolocation-cn b/data/geolocation-cn index 84eac37d..6ed491d8 100644 --- a/data/geolocation-cn +++ b/data/geolocation-cn @@ -49,6 +49,7 @@ include:ruanmei include:sf-express include:sfacg include:sina +include:sogou include:stage1st include:suning include:taptap @@ -64,6 +65,7 @@ include:xiaomi include:xunlei include:ynet include:youku +include:youzan include:yunfanjiasu include:zhihu @@ -182,6 +184,7 @@ bokecc.com bootcss.com btcfans.com bthhotels.com +caiyun.com caiyunapp.com ccb.com cctv.com @@ -268,6 +271,7 @@ expreview.com famulei.com fanli.com fastapi.net +feiniaomy.com feng.com fengkongcloud.com fengniao.com @@ -297,9 +301,10 @@ haote.com henha.com henkuai.com hexun.com -hichina.com hiido.com hitv.com +hn-cbec.com +hnyuyuhui.com huanqiu.com hunantv.com huochepiao.com @@ -416,6 +421,7 @@ moocollege.com mop.com mscbsc.com mukewang.com +mydown.com mydrivers.com myshow360.net myyx618.com @@ -450,7 +456,9 @@ pptbest.com psbc.com pubyun.com qbox.me +qcc.com qiaobutang.com +qichacha.com qidian.com qie.tv qikucdn.com @@ -472,6 +480,7 @@ runoob.com sanguosha.com sanwen.net scdng.com +scoregg.com sec-wiki.com segmentfault.com senlinjimore.com # 鲁ICP备20001333号 森林集 @@ -482,8 +491,6 @@ shutcm.com simei8.com smzdm.com sobot.com -sogou.com -sogoucdn.com sohu.com sohucs.com sojson.com @@ -494,12 +501,14 @@ starbaby.cc starbaby.com staticfile.org stockstar.com +sunrtb.com szfw.org szzfgjj.com t1y5.com tanx.com tao123.com tenxcloud.com +tianjimedia.com tietuku.com tiexue.net timedoo.com diff --git a/data/google b/data/google index 8a401522..2f5748f4 100644 --- a/data/google +++ b/data/google @@ -375,6 +375,7 @@ googledomains.com googledrive.com googlee.com googleearth.com +googlefiber.net googlefinland.com googlemail.com googlemaps.com diff --git a/data/google-ads b/data/google-ads index acafc674..c6353bed 100644 --- a/data/google-ads +++ b/data/google-ads @@ -19,4 +19,5 @@ googlesyndication.com googletagmanager.com googletagservices.com googletraveladservices.com -urchin.com +app-measurement.com +urchin.com \ No newline at end of file diff --git a/data/google-scholar b/data/google-scholar new file mode 100644 index 00000000..862af472 --- /dev/null +++ b/data/google-scholar @@ -0,0 +1,74 @@ +scholar.google.ae +scholar.google.at +scholar.google.be +scholar.google.bg +scholar.google.ca +scholar.google.cat +scholar.google.ch +scholar.google.cl +scholar.google.cn +scholar.google.co.cr +scholar.google.co.id +scholar.google.co.il +scholar.google.co.in +scholar.google.co.jp +scholar.google.co.kr +scholar.google.co.nz +scholar.google.co.th +scholar.google.co.uk +scholar.google.co.ve +scholar.google.co.za +scholar.google.com +scholar.google.com.ar +scholar.google.com.au +scholar.google.com.bo +scholar.google.com.br +scholar.google.com.co +scholar.google.com.cu +scholar.google.com.do +scholar.google.com.ec +scholar.google.com.eg +scholar.google.com.gt +scholar.google.com.hk +scholar.google.com.ly +scholar.google.com.mx +scholar.google.com.my +scholar.google.com.ni +scholar.google.com.pa +scholar.google.com.pe +scholar.google.com.ph +scholar.google.com.pk +scholar.google.com.pr +scholar.google.com.py +scholar.google.com.sg +scholar.google.com.sv +scholar.google.com.tr +scholar.google.com.tw +scholar.google.com.ua +scholar.google.com.uy +scholar.google.com.vn +scholar.google.cz +scholar.google.de +scholar.google.dk +scholar.google.es +scholar.google.fi +scholar.google.fr +scholar.google.gr +scholar.google.hn +scholar.google.hr +scholar.google.hu +scholar.google.is +scholar.google.it +scholar.google.li +scholar.google.lt +scholar.google.lu +scholar.google.lv +scholar.google.nl +scholar.google.no +scholar.google.pl +scholar.google.pt +scholar.google.ro +scholar.google.ru +scholar.google.se +scholar.google.si +scholar.google.sk diff --git a/data/hbo b/data/hbo index 6e6f68cc..48e4a645 100644 --- a/data/hbo +++ b/data/hbo @@ -1,3 +1,5 @@ +cinemax.com +forthethrone.com hbo.com hboasia.com hbogo.com @@ -5,3 +7,4 @@ hbogoasia.com hbogoasia.hk hbomax.com hbonow.com +maxgo.com diff --git a/data/hkedcity b/data/hkedcity new file mode 100644 index 00000000..10148768 --- /dev/null +++ b/data/hkedcity @@ -0,0 +1,2 @@ +hkedcity.net +hkreadingcity.net diff --git a/data/hp b/data/hp index be37ad5d..d658de1b 100644 --- a/data/hp +++ b/data/hp @@ -2,5 +2,6 @@ hp.com hpstore-china.com hpstore.com +www8-hp.com full:hpstore.corpmerchandise.com diff --git a/data/ibm b/data/ibm index aae7ba16..a42c3e62 100644 --- a/data/ibm +++ b/data/ibm @@ -1,11 +1,17 @@ +# All .ibm domains +ibm + +# All .weatherchannel domains +weatherchannel + +# All .weather domains +weather + bluemix.com bluemix.net ibm.com ibm.eu +ibm.net ibm.us -nic.ibm s-bluemix.net s81c.com - -# All .ibm domains -ibm diff --git a/data/ieee b/data/ieee deleted file mode 100644 index 97b7162a..00000000 --- a/data/ieee +++ /dev/null @@ -1 +0,0 @@ -ieee.org diff --git a/data/jd b/data/jd index 7ad40d8e..c4dfbc60 100644 --- a/data/jd +++ b/data/jd @@ -6,6 +6,7 @@ 7fresh.com baitiao.com blackdragon.com +caiyu.com chinabank.com.cn dao123.com jcloud-cdn.com @@ -27,7 +28,11 @@ jclps.com jd-app.com jd-ex.com jd.cn +jd.co.th jd.com +jd.hk +jd.id +jd.ru jdcache.com jdcloud.com jdcloudcs.com @@ -37,15 +42,18 @@ jddebug.com jddglobal.com jdjinrong.com jdpay.com +jdpaydns.com jdx.com jdwl.com jingdongjinrong.com jingxi.com jkcsjd.com joybuy.com +joybuy.es linglonglife.com mayshijia.com minitiao.com +ocwms.com paidaojia.cn paipai.com prestodb-china.com @@ -57,5 +65,6 @@ wdfok.com yhd.com yihaodianimg.com yiyaojd.com +yizhitou.com include:jd-ads diff --git a/data/jwplayer b/data/jwplayer index f923ba8d..9acbb1ae 100644 --- a/data/jwplayer +++ b/data/jwplayer @@ -3,3 +3,4 @@ jwplatform.com jwplayer.com jwpltx.com jwpsrv.com +longtailvideo.com diff --git a/data/landofhope b/data/landofhope new file mode 100644 index 00000000..3cc3b547 --- /dev/null +++ b/data/landofhope @@ -0,0 +1 @@ +landofhope.tv diff --git a/data/microsoft b/data/microsoft index c05e110b..2777610f 100644 --- a/data/microsoft +++ b/data/microsoft @@ -47,40 +47,53 @@ azureedge.net azurewebsites.net bing.com bing.net +bingads.com botframework.com breakdown.me centralvalidation.com +ch9.ms cloudapp.net cloudappsecurity.com cortanaanalytics.com crmdynint-gcc.com crmdynint.com docs.com +dot.net dynamics.com efproject.net gfx.ms hotmail.com live.com live.net +microsoft-int.com microsoft-ppe.com microsoft-sbs-domains.com microsoft.com +microsoft.io microsoft365.com +microsoftadvertising.com +microsoftaffiliates.com microsoftonline-p.com microsoftonline.com +microsoftstore.com +microsoftstore.com.hk microsofttranslator.com microsoftuwp.com mono-project.com ms-studiosmedia.com msads.net msauth.net +msdn.com msecnd.net msedge.net +msft.info msft.net msftauth.net +msftnet.org msn.com msocdn.com msocsp.com +mymicrosoft.com nuget.org nugettest.org o365weve-dev.com @@ -98,6 +111,7 @@ powerappscdn.net powerbi.com powershellgallery.com s-microsoft.com +s-msn.com sfbassets.com sfbassets.net sfx.ms @@ -123,6 +137,7 @@ windows.net windowsphone-int.com windowsphone.com windowsupdate.com +xamarin.com xbox.com xboxab.com xboxlive.com diff --git a/data/mit b/data/mit new file mode 100644 index 00000000..5f0f3529 --- /dev/null +++ b/data/mit @@ -0,0 +1,6 @@ +# All .mit domains +mit + +mit.edu +mit.net +mitpressjournals.org diff --git a/data/mixpanel-ads b/data/mixpanel-ads new file mode 100644 index 00000000..1cc2c60a --- /dev/null +++ b/data/mixpanel-ads @@ -0,0 +1 @@ +decide.mixpanel.com diff --git a/data/nature b/data/nature deleted file mode 100644 index b9ecad4a..00000000 --- a/data/nature +++ /dev/null @@ -1 +0,0 @@ -nature.com diff --git a/data/netflix b/data/netflix index fa24eda1..0dd92e53 100644 --- a/data/netflix +++ b/data/netflix @@ -1,4 +1,5 @@ btstatic.com +netflix.ca netflix.com netflix.net nflxext.com diff --git a/data/newyorker b/data/newyorker new file mode 100644 index 00000000..12ac02ef --- /dev/null +++ b/data/newyorker @@ -0,0 +1 @@ +newyorker.com diff --git a/data/nike b/data/nike new file mode 100644 index 00000000..361c8329 --- /dev/null +++ b/data/nike @@ -0,0 +1,5 @@ +nike.com +nike.com.br +nike.com.hk +nikecloud.com +niketracking.com diff --git a/data/nytimes b/data/nytimes index 73fa9b34..dc9606ef 100644 --- a/data/nytimes +++ b/data/nytimes @@ -1,5 +1,7 @@ -nytimes.com -nytcn.me -tynt.com -nytstyle.com nyt.com +nyt.net +nytcn.me +nytco.com +nytimes.com +nytstyle.com +timestalks.com diff --git a/data/onesignal-ads b/data/onesignal-ads new file mode 100644 index 00000000..2e8d322d --- /dev/null +++ b/data/onesignal-ads @@ -0,0 +1 @@ +onesignal.com diff --git a/data/oup b/data/oup new file mode 100644 index 00000000..0f77b19c --- /dev/null +++ b/data/oup @@ -0,0 +1,29 @@ +amamanualofstyle.com +anb.org +blackstonespoliceservice.com +epigeum.com +oed.com +omscr.com +oup.com +ouplaw.com +ox.ac.uk +oxfordaasc.com +oxfordartonline.com +oxfordbibliographies.com +oxfordclinicalpsych.com +oxforddnb.com +oxfordfirstsource.com +oxfordhandbooks.com +oxfordlawtrove.com +oxfordmedicine.com +oxfordmusiconline.com +oxfordpoliticstrove.com +oxfordre.com +oxfordreference.com +oxfordscholarlyeditions.com +oxfordscholarship.com +oxfordwesternmusic.com +sipriyearbook.org +ukwhoswho.com +universitypressscholarship.com +veryshortintroductions.com diff --git a/data/patreon b/data/patreon new file mode 100644 index 00000000..be31e559 --- /dev/null +++ b/data/patreon @@ -0,0 +1 @@ +patreon.com diff --git a/data/pinterest b/data/pinterest index e94d0883..2201ec9b 100644 --- a/data/pinterest +++ b/data/pinterest @@ -1,27 +1,49 @@ -# Official site -pinterest.com - -# Alternate -pinterest.ie -pinterest.it -pinterest.ch -pinterest.es -pinterest.ca -pinterest.co.uk -pinterest.ru -pinterest.com.au +pin.it +pinimg.com pinterest.at -pinterest.fr +pinterest.be +pinterest.ca +pinterest.ch +pinterest.cl +pinterest.co +pinterest.co.at +pinterest.co.in +pinterest.co.kr +pinterest.co.nz +pinterest.co.uk +pinterest.com +pinterest.com.au +pinterest.com.bo +pinterest.com.ec +pinterest.com.mx +pinterest.com.pe +pinterest.com.py +pinterest.com.uy +pinterest.com.vn pinterest.de pinterest.dk -pinterest.nz +pinterest.ec +pinterest.engineering +pinterest.es +pinterest.fr +pinterest.hu +pinterest.id +pinterest.ie +pinterest.in +pinterest.info +pinterest.it pinterest.jp -pinterest.pt -pinterest.co.kr -pinterest.se -pinterest.com.mx -pinterest.cl +pinterest.kr +pinterest.mx +pinterest.nl +pinterest.nz +pinterest.pe pinterest.ph - -# Others -pinimg.com +pinterest.pt +pinterest.ru +pinterest.se +pinterest.th +pinterest.tw +pinterest.uk +pinterest.vn +pinterestmail.com diff --git a/data/qihoo360 b/data/qihoo360 index 1e644050..9f1defa2 100644 --- a/data/qihoo360 +++ b/data/qihoo360 @@ -11,6 +11,7 @@ 360safe.com 360shouji.com 360taojin.com +360tpcdn.com 360webcache.com haosou.com i360mall.com diff --git a/data/quora b/data/quora index 06f953f0..397c4e91 100644 --- a/data/quora +++ b/data/quora @@ -1,2 +1,3 @@ quora.com quoracdn.net +qr.ae diff --git a/data/samsung b/data/samsung index b42ae9b7..51fd801c 100644 --- a/data/samsung +++ b/data/samsung @@ -5,6 +5,13 @@ samsung xn--cg4bki galaxyappstore.com +galaxymobile.jp +game-platform.net +knoxemm.com samsung.com samsungapps.com samsungcloud.com +samsungdm.com +samsunggalaxyfriends.com +samsungknox.com +samsungqbe.com diff --git a/data/sciencedirect b/data/sciencedirect new file mode 100644 index 00000000..6a0d9ab3 --- /dev/null +++ b/data/sciencedirect @@ -0,0 +1,2 @@ +sciencedirect.com +sciencedirectassets.com diff --git a/data/segment-ads b/data/segment-ads new file mode 100644 index 00000000..881e4017 --- /dev/null +++ b/data/segment-ads @@ -0,0 +1 @@ +cdn.segment.com diff --git a/data/shopify b/data/shopify new file mode 100644 index 00000000..575392e9 --- /dev/null +++ b/data/shopify @@ -0,0 +1,3 @@ +shopify.com +shopify.dev +shopifysvc.com diff --git a/data/sina-ads b/data/sina-ads index 19bc6dc2..535f6c14 100644 --- a/data/sina-ads +++ b/data/sina-ads @@ -22,7 +22,6 @@ contentrecommend-out.mobile.sina.cn @ads count.video.sina.com.cn @ads counter.sina.com.cn @ads cre.dp.sina.cn @ads -cre.mix.sina.com.cn @ads cre-dp.sina.cn @ads d00.sina.com.cn @ads dcads.sina.com.cn @ads diff --git a/data/sogou b/data/sogou new file mode 100644 index 00000000..88b3b900 --- /dev/null +++ b/data/sogou @@ -0,0 +1,4 @@ +go2map.com +sogo.com +sogou.com +sogoucdn.com diff --git a/data/springer b/data/springer index 8b9aabba..233c250f 100644 --- a/data/springer +++ b/data/springer @@ -1 +1,4 @@ +apress.com +springer.com springerlink.com +springernature.com diff --git a/data/stackexchange b/data/stackexchange index 4dd9828a..df94cf0d 100644 --- a/data/stackexchange +++ b/data/stackexchange @@ -8,10 +8,12 @@ mathoverflow.net serverfault.com sstatic.net stackapps.com +stackauth.com stackexchange.com stackmod.blog stackoverflow.blog stackoverflow.com +stackoverflow.email stackoverflowbusiness.com stacksnippets.net superuser.com diff --git a/data/steam b/data/steam index d2d10f47..c5e2eff5 100644 --- a/data/steam +++ b/data/steam @@ -1,9 +1,13 @@ fanatical.com humblebundle.com +playartifact.com +steam-chat.com steamcommunity.com +steamgames.com steampowered.com steamstatic.com -steam-chat.com +underlords.com +valvesoftware.com full:steamcdn-a.akamaihd.net full:steamcommunity-a.akamaihd.net diff --git a/data/stripe b/data/stripe new file mode 100644 index 00000000..82a2b346 --- /dev/null +++ b/data/stripe @@ -0,0 +1,3 @@ +stripe.com +stripe.network +stripecdn.com diff --git a/data/taylorfrancis b/data/taylorfrancis new file mode 100644 index 00000000..94330652 --- /dev/null +++ b/data/taylorfrancis @@ -0,0 +1,4 @@ +tandf.co.uk +taylorandfrancis.com +taylorfrancis.com +taylorandfrancis.com diff --git a/data/tencent b/data/tencent index 69456647..4a72a63d 100644 --- a/data/tencent +++ b/data/tencent @@ -16,8 +16,11 @@ qqmail.com qzone.com servicewechat.com smtcdns.com +tencent.cn tencent.com tencent.com.cn +tencent.com.hk +tencent.net.cn tencent-cloud.com tencentmusic.com tencentyun.com diff --git a/data/twitch b/data/twitch new file mode 100644 index 00000000..dbc55a40 --- /dev/null +++ b/data/twitch @@ -0,0 +1,6 @@ +ext-twitch.tv +jtvnw.net +ttvnw.net +twitch.tv +twitchcdn.net +twitchsvc.net diff --git a/data/uber b/data/uber index 4ac582c4..4385c6ad 100644 --- a/data/uber +++ b/data/uber @@ -1 +1,2 @@ uber.com +uber-assets.com diff --git a/data/v2ray b/data/v2ray index 3e319019..fc3de2b4 100644 --- a/data/v2ray +++ b/data/v2ray @@ -1,4 +1,3 @@ v2ray.com v2ray.cool -mux.cool v2fly.org diff --git a/data/webflow b/data/webflow new file mode 100644 index 00000000..ca390e15 --- /dev/null +++ b/data/webflow @@ -0,0 +1 @@ +webflow.com diff --git a/data/weverse b/data/weverse new file mode 100644 index 00000000..4f087ad8 --- /dev/null +++ b/data/weverse @@ -0,0 +1 @@ +weverse.io diff --git a/data/wix b/data/wix new file mode 100644 index 00000000..146d5e07 --- /dev/null +++ b/data/wix @@ -0,0 +1,4 @@ +wix.com +wixmp.com +wixsite.com +wixstatic.com diff --git a/data/wteam-ads b/data/wteam-ads new file mode 100644 index 00000000..a0d5df5a --- /dev/null +++ b/data/wteam-ads @@ -0,0 +1 @@ +ads.wteam.xyz diff --git a/data/yahoo b/data/yahoo index 14343dfa..e86419be 100644 --- a/data/yahoo +++ b/data/yahoo @@ -1,3 +1,7 @@ +# Reference: https://data.iana.org/TLD/tlds-alpha-by-domain.txt +# All .yahoo domains +yahoo + myguide.hk yahoo-news.com.hk yahoo.ae @@ -141,11 +145,10 @@ yahoo.tm yahoo.tn yahoo.vg yahoo.ws +yahooapis.com +yahoodns.net yimg.com - -# Reference: https://data.iana.org/TLD/tlds-alpha-by-domain.txt -# All .yahoo domains -yahoo +ymail.com include:flickr include:yahoo-ads diff --git a/data/yande b/data/yande new file mode 100644 index 00000000..6982f6dd --- /dev/null +++ b/data/yande @@ -0,0 +1 @@ +yande.re diff --git a/data/youku b/data/youku index 6243c871..79fc486d 100644 --- a/data/youku +++ b/data/youku @@ -1,5 +1,6 @@ # youku uses some alicdn services, so this must use with domain list "alibaba" +kumiao.com youku.com ykimg.com diff --git a/data/youzan b/data/youzan new file mode 100644 index 00000000..c25c2055 --- /dev/null +++ b/data/youzan @@ -0,0 +1,3 @@ +youzan.com +yzcdn.cn +youzanyun.com diff --git a/data/zaobao b/data/zaobao index 3214f3e6..c5a7f963 100644 --- a/data/zaobao +++ b/data/zaobao @@ -1,2 +1,3 @@ zaobao.com zaobao.com.sg +zaobao.sg diff --git a/main.go b/main.go index 58949fb7..f846aae8 100644 --- a/main.go +++ b/main.go @@ -3,6 +3,7 @@ package main import ( "bufio" "errors" + "flag" "fmt" "io/ioutil" "os" @@ -14,6 +15,8 @@ import ( "v2ray.com/core/app/router" ) +var dataPath = flag.String("datapath", "", "Path to the custom data folder") + type Entry struct { Type string Value string @@ -216,7 +219,15 @@ func ParseList(list *List, ref map[string]*List) (*ParsedList, error) { } func main() { - dir, err := DetectPath(os.Getenv("GOPATH")) + flag.Parse() + + var dir string + var err error + if *dataPath != "" { + dir = *dataPath + } else { + dir, err = DetectPath(os.Getenv("GOPATH")) + } if err != nil { fmt.Println("Failed: ", err) return @@ -263,5 +274,7 @@ func main() { } if err := ioutil.WriteFile("dlc.dat", protoBytes, 0777); err != nil { fmt.Println("Failed: ", err) + } else { + fmt.Println("dlc.dat has been generated successfully.") } }