Skip to content

Commit

Permalink
202501151410
Browse files Browse the repository at this point in the history
  • Loading branch information
root committed Jan 15, 2025
0 parents commit 1764d2d
Show file tree
Hide file tree
Showing 7 changed files with 1,310 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions CNAME
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
hosts.trli.club
67 changes: 67 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
[HOSTS 网站/HOSTS Website(https://hosts.trli.club)](https://hosts.trli.club)<br/>

<details>
<summary><code><strong>📃 项目说明/Project description<br/></strong></code></summary>
🛑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 !!!!<br/>
🛑仅供学习交流和自用、学术研究使用,请勿商用!!!请遵守当地法律法规,下载后24小时内必须删除!!!!<br/>
International/China accelerated ad filtering rules subscription.<br/>
国际/中国加速广告过滤规则订阅<br/>
Cold Mo (TRLI) rules is the only one to provide a global comparison of the library.<br/>
冷莫(trli)的规则唯一一个提供全球比较全的库。 <br/>
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<br/>
该规则是上游github和gitlab热门规则,并非是我维护,我只维修使用该规则的白名单<br/>
The blacklist and whitelist have been processed, that is, the blacklist has been used, and the mistakenly killed domain name has been processed<br/>
The black and white list is global<br/>
Let me know if it was a mistake<br/>
已经处理黑白名单,即使用了黑名单,在处理的时候已经把误杀的域名处理了<br/>
黑白名单是来自全球的<br/>
误杀就告诉我<br/>
</details>

<details><summary><code><strong>📃 项目文件更新总数/Total number of project file updates<br/></strong></code></summary>


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
</details>

<details>
<summary><code><strong>📃 反馈<br/></strong></code></summary>

[QQ频道【莫莫频道】](https://qun.qq.com/qqweb/qunpro/share?_wv=3&_wwv=128&inviteCode=1NPqQe&from=246610&biz=ka) <br/>
[冷莫trli项目反馈(qq)](https://support.qq.com/product/496579)<br/>
[冷莫trli项目反馈(github)](https://github.com/Potterli20/hosts/discussions)<br/>
</details>

<details>
<summary><code><strong>📃 星图/Star<br/></strong></code></summary>

[![Stargazers over time](https://starchart.cc/Potterli20/hosts.svg)](https://starchart.cc/Potterli20/hosts)<br/>
</details>

<details>
<summary><code><strong>📃 访问量/traffic<br/></strong></code></summary>

![](http://profile-counter.glitch.me/potterli20/count.svg)<br/>
</details>

<details>
<summary><code><strong>📃 赞助/sponsorship<br/></strong></code></summary>

<img width="200" src="https://file-git.trli.club/file/picture/0.jpg" /><br/>
</details>

<details>
<summary><code><strong>📃 谢谢/thank<br/></strong></code></summary>

@hezhijie0327 @Loyalsoldier @felixonmars ...<br/>
</details>
107 changes: 107 additions & 0 deletions dnscrypt.md
Original file line number Diff line number Diff line change
@@ -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
10 changes: 10 additions & 0 deletions git.sh
Original file line number Diff line number Diff line change
@@ -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 [email protected]:Potterli20/hosts.git
git push -f -u origin master
26 changes: 26 additions & 0 deletions hosts.sh
Original file line number Diff line number Diff line change
@@ -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)' <br/> ' README.md
sed -i '26cTotal ad-hosts-lite 屏蔽追踪广告总数: '$(wc -l ad-hosts-sqlist)' <br/> ' README.md
sed -i '28cTotal allowlist list 允许名单总数: '$(wc -l allow)' <br/>' README.md
sed -i '30cTotal ad-youtube-hosts 屏蔽追踪广告总数: '$(wc -l ad-youtube-hosts)' <br/>' README.md
sed -i '32cTotal DNS分流加速国内规则列表总数: '$(wc -l dns-hosts-china)' <br/>' README.md
sed -i '34cTotal DNS分流加速国外规则列表总数: '$(wc -l dns-hosts-gfw)' <br/>' README.md

sed -i '85c<li>Total ad-hosts-pro 屏蔽追踪广告总数: '$(wc -l ad-hosts-pro)' </li> ' index.html
sed -i '86c<li>Total ad-hosts-lite 屏蔽追踪广告总数: '$(wc -l ad-hosts-sqlist)' </li> ' index.html
sed -i '87c<li>Total allowlist list 允许名单总数: '$(wc -l allow)' </li>' index.html
sed -i '88c<li>Total ad-youtube-hosts 屏蔽追踪广告总数: '$(wc -l ad-youtube-hosts)' </li> ' index.html
sed -i '89c<li>Total DNS分流加速国内规则列表总数: '$(wc -l dns-hosts-china)' </li>' index.html
sed -i '90c<li>Total DNS分流加速国外规则列表总数: '$(wc -l dns-hosts-gfw)' </li>' index.html

rm ad-*
rm dns-*
rm allow
Loading

0 comments on commit 1764d2d

Please sign in to comment.