diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 00000000..408b4b57 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,30 @@ +name: hosts +# Controls when the workflow will run +on: + workflow_dispatch: + schedule: + - cron: "0 */1 * * *" +jobs: + build: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@main + + - name: Git push + run: | + rm -rf .git/ + bash hosts.sh + git config --global user.name root + git init + git remote add origin "https://${{ github.actor }}:${{ secrets.GITHUBTOKEN }}@github.com/${{ github.repository }}" + git gc --aggressive + git add --all + git commit -m "$(date +%Y%m%d%H%M)" + git push -f -u origin master + + # 删除无用 workflow runs; + - name: Delete workflow runs + uses: GitRML/delete-workflow-runs@main + with: + retain_days: 0.1 + keep_minimum_runs: 1 diff --git a/CNAME b/CNAME new file mode 100644 index 00000000..bf3a76e8 --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +hosts.trli.club \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 00000000..9934e259 --- /dev/null +++ b/README.md @@ -0,0 +1,67 @@ +[HOSTS 网站/HOSTS Website(https://hosts.trli.club)](https://hosts.trli.club)
+ +
+📃 项目说明/Project description
+🛑Only for learning, communication, self-use, academic research use, do not commercial use!! Please comply with local laws and regulations, download must be deleted within 24 hours !!!!
+🛑仅供学习交流和自用、学术研究使用,请勿商用!!!请遵守当地法律法规,下载后24小时内必须删除!!!!
+International/China accelerated ad filtering rules subscription.
+国际/中国加速广告过滤规则订阅
+Cold Mo (TRLI) rules is the only one to provide a global comparison of the library.
+冷莫(trli)的规则唯一一个提供全球比较全的库。
+This rule is a popular rule on upstream Github and GitLab. It is not maintained by me. I only maintain the whitelist that uses this rule
+该规则是上游github和gitlab热门规则,并非是我维护,我只维修使用该规则的白名单
+The blacklist and whitelist have been processed, that is, the blacklist has been used, and the mistakenly killed domain name has been processed
+The black and white list is global
+Let me know if it was a mistake
+已经处理黑白名单,即使用了黑名单,在处理的时候已经把误杀的域名处理了
+黑白名单是来自全球的
+误杀就告诉我
+
+ +
📃 项目文件更新总数/Total number of project file updates
+ + +Total ad-hosts-pro 屏蔽追踪广告总数: 8327659 + +Total ad-hosts-lite 屏蔽追踪广告总数: 8034183 + +Total allowlist list 允许名单总数: 108543 + +Total ad-youtube-hosts 屏蔽追踪广告总数: 111242 + +Total DNS分流加速国内规则列表总数: 115156 + +Total DNS分流加速国外规则列表总数: 766551 +
+ +
+ 📃 反馈
+ +[QQ频道【莫莫频道】](https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=1NPqQe&from=246610&biz=ka)
+[冷莫trli项目反馈(qq)](https://support.qq.com/product/496579)
+[冷莫trli项目反馈(github)](https://github.com/Potterli20/hosts/discussions)
+
+ +
+📃 星图/Star
+ +[![Stargazers over time](https://starchart.cc/Potterli20/hosts.svg)](https://starchart.cc/Potterli20/hosts)
+
+ +
+📃 访问量/traffic
+ +![](http://profile-counter.glitch.me/potterli20/count.svg)
+
+ +
+📃 赞助/sponsorship
+ +
+
+ +
+📃 谢谢/thank
+ +@hezhijie0327 @Loyalsoldier @felixonmars ...
+
diff --git a/dnscrypt.md b/dnscrypt.md new file mode 100644 index 00000000..d1b91aa7 --- /dev/null +++ b/dnscrypt.md @@ -0,0 +1,107 @@ + +To use that list, add this to the `[sources]` section of your +`dnscrypt-proxy.toml` configuration file: + + [sources.'public-resolvers'] + urls = ['https://hosts.trli.club/dnscrypt.md'] + minisign_key = 'RWQf6LRCGA9i53mlYecO4IzT51TGPpvWucNSCh1CBM0QTaLn73Y7GFO3' + cache_file = 'dnscrypt.md' + +-- + + +## dns-cdn-ali.trli.club (aliyun dns运营商 干净dns) + +干净的dns/Clean the DNS + +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViCC9kb2gvZG5z +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViCS9kb2gxL2Rucw + + +## dns-cdn-ali.trli.club (aliyun dns运营商 干净dns+hosts) + +干净的dns hosts/Clean the DNS hosts + +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViDi9kb2gvZG5zLWhvc3Rz +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViDy9kb2gxL2Rucy1ob3N0cw + + +## dns-cdn-ali.trli.club (aliyun dns运营商 ad-dns-pro) + +去广告ad-dns-pro/To advertising AD DNS PRO + +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViDy9kb2gvYWQtZG5zLXBybw +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViEC9kb2gxL2FkLWRucy1wcm8 + + +## dns-cdn-ali.trli.club (aliyun dns运营商 ad-dns-lite) + +去广告ad-dns-lite/To advertising AD DNS LITE + +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViEC9kb2gvYWQtZG5zLWxpdGU +sdns://AgcAAAAAAAAAAAAVZG5zLWNkbi1hbGkudHJsaS5jbHViES9kb2gxL2FkLWRucy1saXRl + + +## dns-cdn-tx.trli.club (Tencent dns运营商 干净dns) + +干净的dns/Clean the DNS + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIIL2RvaC9kbnM +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIJL2RvaDEvZG5z + + +## dns-cdn-tx.trli.club (Tencent dns运营商 干净dns+hosts) + +干净的dns hosts/Clean the DNS hosts + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIOL2RvaC9kbnMtaG9zdHM +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIPL2RvaDEvZG5zLWhvc3Rz + + +## dns-cdn-tx.trli.club (Tencent dns运营商 ad-dns-pro) + +去广告ad-dns-pro/To advertising AD DNS PRO + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIPL2RvaC9hZC1kbnMtcHJv +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIQL2RvaDEvYWQtZG5zLXBybw + + +## dns-cdn-tx.trli.club (Tencent dns运营商 ad-dns-lite) + +去广告ad-dns-lite/To advertising AD DNS LITE + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIQL2RvaC9hZC1kbnMtbGl0ZQ +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi10eC50cmxpLmNsdWIRL2RvaDEvYWQtZG5zLWxpdGU + + + +## dns-cdn-hw.trli.club (Huawei dns运营商 干净dns) + +干净的dns/Clean the DNS + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIIL2RvaC9kbnM +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIJL2RvaDEvZG5z + + +## dns-cdn-hw.trli.club (Huawei dns运营商 干净dns+hosts) + +干净的dns hosts/Clean the DNS hosts + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIOL2RvaC9kbnMtaG9zdHM +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIPL2RvaDEvZG5zLWhvc3Rz + + +## dns-cdn-hw.trli.club (Huawei dns运营商 ad-dns-pro) + +去广告ad-dns-pro/To advertising AD DNS PRO + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIPL2RvaC9hZC1kbnMtcHJv +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIQL2RvaDEvYWQtZG5zLXBybw + + +## dns-cdn-hw.trli.club (Huawei dns运营商 ad-dns-lite) + +去广告ad-dns-lite/To advertising AD DNS LITE + +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIQL2RvaC9hZC1kbnMtbGl0ZQ +sdns://AgcAAAAAAAAAAAAUZG5zLWNkbi1ody50cmxpLmNsdWIRL2RvaDEvYWQtZG5zLWxpdGU diff --git a/git.sh b/git.sh new file mode 100644 index 00000000..01308faa --- /dev/null +++ b/git.sh @@ -0,0 +1,10 @@ +rm -rf .git/ +git init +git reflog expire --expire=now --all +git fsck --full --unreachable +git repack -A -d +git gc --aggressive --prune=now +git add . +git commit -m "$(date +' %j 天 %c')" +git remote add origin git@github.com:Potterli20/hosts.git +git push -f -u origin master diff --git a/hosts.sh b/hosts.sh new file mode 100644 index 00000000..840635a2 --- /dev/null +++ b/hosts.sh @@ -0,0 +1,26 @@ +echo " download" +wget -O ad-hosts-pro https://github.com/Potterli20/file/releases/download/ad-hosts-pro/ad-domains.txt +wget -O ad-hosts-sqlist https://github.com/Potterli20/file/releases/download/ad-hosts-lite/ad-domains.txt +wget -O allow https://github.com/Potterli20/file/releases/download/github-hosts/allow.txt +wget -O ad-youtube-hosts https://github.com/Potterli20/file/releases/download/ad-youtube-hosts/ad-youtube-domains.txt +wget -O dns-hosts-china https://github.com/Potterli20/file/releases/download/dns-hosts-all/dnshosts-all-domain-whitelist_full.txt +wget -O dns-hosts-gfw https://github.com/Potterli20/file/releases/download/dns-hosts-all/dnshosts-all-domain-blacklist_full.txt + +echo "Adding Title and SYNC data..." +sed -i '24cTotal ad-hosts-pro 屏蔽追踪广告总数: '$(wc -l ad-hosts-pro)'
' README.md +sed -i '26cTotal ad-hosts-lite 屏蔽追踪广告总数: '$(wc -l ad-hosts-sqlist)'
' README.md +sed -i '28cTotal allowlist list 允许名单总数: '$(wc -l allow)'
' README.md +sed -i '30cTotal ad-youtube-hosts 屏蔽追踪广告总数: '$(wc -l ad-youtube-hosts)'
' README.md +sed -i '32cTotal DNS分流加速国内规则列表总数: '$(wc -l dns-hosts-china)'
' README.md +sed -i '34cTotal DNS分流加速国外规则列表总数: '$(wc -l dns-hosts-gfw)'
' README.md + +sed -i '85c
  • Total ad-hosts-pro 屏蔽追踪广告总数: '$(wc -l ad-hosts-pro)'
  • ' index.html +sed -i '86c
  • Total ad-hosts-lite 屏蔽追踪广告总数: '$(wc -l ad-hosts-sqlist)'
  • ' index.html +sed -i '87c
  • Total allowlist list 允许名单总数: '$(wc -l allow)'
  • ' index.html +sed -i '88c
  • Total ad-youtube-hosts 屏蔽追踪广告总数: '$(wc -l ad-youtube-hosts)'
  • ' index.html +sed -i '89c
  • Total DNS分流加速国内规则列表总数: '$(wc -l dns-hosts-china)'
  • ' index.html +sed -i '90c
  • Total DNS分流加速国外规则列表总数: '$(wc -l dns-hosts-gfw)'
  • ' index.html + +rm ad-* +rm dns-* +rm allow diff --git a/index.html b/index.html new file mode 100644 index 00000000..5f3e261b --- /dev/null +++ b/index.html @@ -0,0 +1,1069 @@ + + + + + + + hosts服务 + + + + +
    + + + + +
    + + +
    系统时间/dateTime
    +
    +
    + + +