├── .github ├── ISSUE_TEMPLATE │ ├── config.yml │ ├── content-allowlist-request.yml │ └── dns-allowlist-request.yml └── workflows │ ├── auto-clean-commit.yml │ ├── autoupdate.yml │ ├── close-inactive-issue.yml │ └── desize.yml ├── CNAME ├── LICENSE ├── README.md ├── Source.md ├── index.html ├── mod ├── rules │ ├── adblock-need-remove.txt │ ├── adblock-rules.txt │ ├── dns-rules.txt │ └── first-dns-rules.txt └── title │ ├── adblock-title.txt │ ├── adblock_lite-title.txt │ ├── adblock_plus-title.txt │ └── dns-title.txt ├── rules └── jiekouAD.txt └── script ├── allowlist.txt ├── clean-readme.sh ├── dns-rules-config.json ├── dns-script ├── singbox.py └── surge.py ├── remove.py ├── rule.py ├── update-content-rules.sh ├── update-dns-rules.sh └── update-upstream.sh /.github/ISSUE_TEMPLATE/config.yml: -------------------------------------------------------------------------------- 1 | 'blank_issues_enabled': false 2 | 'contact_links': 3 | - 'about': > 4 | Please Read Issue Area Rules before submitting an issue. 5 | 'name': 'Issue Area Rules' 6 | 'url': 'https://github.com/Cats-Team/AdRules/wiki/Issue-Area-Rules' 7 | - 'about': > 8 | Only For Chinese User: 建议提 Issue 前先看完这个 9 | 'name': '提问的智慧' 10 | 'url': 'https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way/blob/main/README-zh_CN.md' 11 | - 'about': > 12 | Denylist is best to report to upsteam 13 | 'name': 'Denylist' 14 | 'url': 'https://github.com/damengzhu/banad/issues' 15 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/content-allowlist-request.yml: -------------------------------------------------------------------------------- 1 | name: Content Rules Allowlist Request 2 | description: Report incorrectly blocked website content. 3 | labels: ["content allow"] 4 | assignees: 5 | - zutzo 6 | body: 7 | - type: dropdown 8 | id: adblocker 9 | attributes: 10 | label: Which tool do you use? 11 | description: | 12 | Only the following tools are supported. 13 | multiple: true 14 | options: 15 | - AdGuard 16 | - uBlock Origin 17 | validations: 18 | required: true 19 | 20 | - type: dropdown 21 | id: blocklists 22 | attributes: 23 | label: Which List do you use? 24 | multiple: true 25 | options: 26 | - AdRules AdBlock List Lite 27 | - AdRules AdBlock List Normal 28 | - AdRules AdBlock List Plus 29 | validations: 30 | required: true 31 | 32 | - type: textarea 33 | id: content 34 | attributes: 35 | label: Which content should be unblocked? 36 | description: | 37 | Please provide the content to be unblocked. 38 | validations: 39 | required: true 40 | 41 | - type: textarea 42 | id: reason 43 | attributes: 44 | label: Why should the content be unblocked? Please Upload blocked log and screenshots! 45 | description: | 46 | If necessary, please describe the steps to reproduce. You better add screenshots. 47 | validations: 48 | required: true 49 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/dns-allowlist-request.yml: -------------------------------------------------------------------------------- 1 | name: DNS Rules Allowlist Request 2 | description: Report incorrectly blocked Domains or App 3 | labels: ["dns allow"] 4 | assignees: 5 | - zutzo 6 | - hacamer 7 | body: 8 | - type: dropdown 9 | id: adblocker 10 | attributes: 11 | label: Which tool do you use? 12 | description: | 13 | If the tool is not listed, please select "Other" and enter its name in the comment field below. 14 | multiple: true 15 | options: 16 | - AdGuard 17 | - AdGuard Home 18 | - AdGuard DNS 19 | - Clash Meta 20 | - Quantumult X 21 | - SmartDNS 22 | - Mosdns 23 | - Loon 24 | - Surge 25 | - Other 26 | validations: 27 | required: true 28 | - type: input 29 | id: other 30 | attributes: 31 | label: Other 32 | validations: 33 | required: false 34 | 35 | - type: dropdown 36 | id: blocklists 37 | attributes: 38 | label: Which AdRules DNS List Syntax do you use? 39 | multiple: true 40 | options: 41 | - ABP 42 | - mosdns 43 | - Quantumult X 44 | - SmartDNS 45 | - Clash Domainset 46 | - Loon/Surge Ruleset 47 | validations: 48 | required: true 49 | 50 | - type: textarea 51 | id: domains 52 | attributes: 53 | label: Which domain(s) should be unblocked? 54 | description: | 55 | Please provide the domains to be unblocked. And add logs screenshots. 56 | validations: 57 | required: true 58 | 59 | - type: textarea 60 | id: reason 61 | attributes: 62 | label: Why should the domain(s) be unblocked? 63 | description: | 64 | Please describe the steps to reproduce. You must add screenshots. 65 | validations: 66 | required: true 67 | -------------------------------------------------------------------------------- /.github/workflows/auto-clean-commit.yml: -------------------------------------------------------------------------------- 1 | name: Clear commits 2 | on: 3 | workflow_dispatch: 4 | schedule: 5 | - cron: 0 15 */3 * * 6 | jobs: 7 | build: 8 | runs-on: ubuntu-latest 9 | permissions: 10 | contents: write 11 | actions: write 12 | steps: 13 | - uses: actions/checkout@v2 14 | with: 15 | ref: script 16 | - name: commit 17 | run: | 18 | git init 19 | git config --local user.name "actions" 20 | git config --local user.email "action@github.com" 21 | git checkout --orphan clearhistory 22 | git branch -D script 23 | git checkout --orphan script 24 | git add . 25 | git commit -m "🚀 CI Updated" 26 | git remote set-url --add origin "https://${{ github.actor }}:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }}" 27 | git push -f -u origin script -------------------------------------------------------------------------------- /.github/workflows/autoupdate.yml: -------------------------------------------------------------------------------- 1 | name: Update Rules 2 | on: 3 | schedule: 4 | - cron: '0 */6 * * *' 5 | push: 6 | paths: 7 | - 'script/*' 8 | - 'mod/*' 9 | 10 | workflow_dispatch: 11 | 12 | repository_dispatch: 13 | type: 14 | - [Manual-Update] 15 | 16 | jobs: 17 | update-rules: 18 | runs-on: ubuntu-latest 19 | steps: 20 | - uses: actions/checkout@main 21 | - name: Setup Python 22 | uses: actions/setup-python@v2 23 | with: 24 | python-version: '3.x' 25 | - uses: actions/setup-node@v2 26 | with: 27 | #node-version: '14' 28 | check-latest: true 29 | 30 | # Install hostlist-compiler 31 | - name: Install hostlist-compiler 32 | run: npm i -g @adguard/hostlist-compiler 33 | 34 | - name: Update Upstream 35 | continue-on-error: false 36 | run: | 37 | pip install requests 38 | bash ./script/update-upstream.sh 39 | tar -czvf archive.tar.gz ./tmp/* 40 | 41 | 42 | - name: Upload artifacts 43 | uses: actions/upload-artifact@v4 44 | with: 45 | name: archive.tar.gz 46 | path: archive.tar.gz 47 | 48 | - name: Build Rules 49 | continue-on-error: false 50 | run: | 51 | bash ./script/update-content-rules.sh 52 | bash ./script/update-dns-rules.sh 53 | rm -f archive.tar.gz 54 | 55 | - name: Update other rules 56 | run: | 57 | cd rules 58 | rm *.txt 59 | wget https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt 60 | cd ../ 61 | - name: Git push assets to Github 62 | run: | 63 | git init 64 | git config --local user.name "actions" 65 | git config --local user.email "action@github.com" 66 | git checkout --orphan main 67 | git rm -rf .github 68 | git rm -rf script 69 | git rm -rf *.md 70 | git add *.{conf,txt,list,html,json,srs,mrs} rules/* mod/* 71 | git commit -m "Update at $(TZ=UTC-8 date +"%Y-%m-%d %H:%M")" 72 | git push -f -u origin main 73 | 74 | - name: Git push assets to other repos 75 | continue-on-error: true 76 | run: | 77 | rm -rf .git/ 78 | git init 79 | git config --local user.name "hacamer" 80 | git config --local user.email "${{ secrets.USEREMAIL }}" 81 | git remote add origin "https://cats-team:${{ secrets.GITLAB_TOKEN }}@gitlab.com/cats-team/adrules.git" 82 | git remote set-url --add origin "https://hacamer:${{ secrets.BITBUCKET_TOKEN }}@bitbucket.org/hacamer/adrules.git" 83 | git checkout --orphan clearhistory 84 | git add *.{conf,html,txt,json,srs,mrs,list} rules/* mod/* 85 | git commit -am "Update at $(TZ=UTC-8 date +"%Y-%m-%d %H:%M")" 86 | git branch -m main 87 | git push --force --set-upstream origin main 88 | 89 | - name: Auto Built 90 | continue-on-error: true 91 | run: | 92 | curl -X POST "${{ secrets.CF_TOKEN }}" 93 | - name: Delete workflow runs 94 | uses: Mattraks/delete-workflow-runs@main 95 | with: 96 | token: ${{ secrets.GITHUB_TOKEN }} 97 | repository: ${{ github.repository }} 98 | retain_days: 0 99 | keep_minimum_runs: 2 100 | -------------------------------------------------------------------------------- /.github/workflows/close-inactive-issue.yml: -------------------------------------------------------------------------------- 1 | name: Close inactive issues 2 | on: 3 | schedule: 4 | - cron: "30 1 * * *" 5 | workflow_dispatch: 6 | jobs: 7 | close-issues: 8 | runs-on: ubuntu-latest 9 | permissions: 10 | issues: write 11 | pull-requests: write 12 | steps: 13 | - uses: actions/stale@v5 14 | with: 15 | days-before-issue-stale: 3 16 | days-before-issue-close: 7 17 | stale-issue-label: "stale" 18 | stale-issue-message: "This issue is stale because it has been open for 3 days with no activity." 19 | close-issue-message: "This issue was closed because it has been inactive for 7 days since being marked as stale." 20 | days-before-pr-stale: -1 21 | days-before-pr-close: -1 22 | repo-token: ${{ secrets.GITHUB_TOKEN }} 23 | -------------------------------------------------------------------------------- /.github/workflows/desize.yml: -------------------------------------------------------------------------------- 1 | name: desize 2 | on: 3 | workflow_dispatch: 4 | 5 | jobs: 6 | clean: 7 | runs-on: ubuntu-latest 8 | 9 | steps: 10 | - name: Clone repo 11 | run: git clone --mirror https://cats-team:${{ secrets.GITHUB_TOKEN }}@github.com/${{ github.repository }} repo_gh 12 | 13 | - name: Clean up 14 | run: | 15 | curl -fsSL -o bfg.jar https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar && \ 16 | java -jar bfg.jar --strip-blobs-bigger-than 10K -fs 100M repo_gh && \ 17 | cd repo_gh && \ 18 | git reflog expire --expire=now --all && \ 19 | git gc --prune=now --aggressive 20 | 21 | - name: Push 22 | run: | 23 | cd repo_gh 24 | git show-ref | cut -d' ' -f2 | grep 'pull' | xargs -r -L1 git update-ref -d 25 | git push origin --force 26 | cd ../ 27 | rm -rf repo_gh 28 | 29 | #Gitlab 30 | - name: Clone repo 31 | run: git clone --mirror https://cats-team:${{ secrets.GITLAB_TOKEN }}@gitlab.com/cats-team/adrules.git repo_gh 32 | 33 | - name: Clean up 34 | run: | 35 | curl -fsSL -o bfg.jar https://repo1.maven.org/maven2/com/madgag/bfg/1.14.0/bfg-1.14.0.jar && \ 36 | java -jar bfg.jar --strip-blobs-bigger-than 10K -fs 100M repo_gh && \ 37 | cd repo_gh && \ 38 | git reflog expire --expire=now --all && \ 39 | git gc --prune=now --aggressive 40 | 41 | - name: Push 42 | run: | 43 | cd repo_gh 44 | git show-ref | cut -d' ' -f2 | grep 'pull' | xargs -r -L1 git update-ref -d 45 | git push origin --force 46 | cd ../ 47 | rm -rf repo_gh 48 | -------------------------------------------------------------------------------- /CNAME: -------------------------------------------------------------------------------- 1 | gp.adrules.top -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | 2 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 3 | Version 2, December 2004 4 | 5 | Copyright (C) 2004 Sam Hocevar 6 | 7 | Everyone is permitted to copy and distribute verbatim or modified 8 | copies of this license document, and changing it is allowed as long 9 | as the name is changed. 10 | 11 | DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE 12 | TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 13 | 14 | 0. You just DO WHAT THE FUCK YOU WANT TO. 15 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 |
2 | 3 |

AdRules

4 | 5 |
6 |
7 | 8 | GitHub last commit 9 | 10 | 11 | 12 | 13 | ## Desc. 14 | List for blocking ads in the Chinese region 15 | 16 | ❔Have any questions? Please go to [Chat](#chat) 17 | 📃Want to see the upstream rules? [Source](/Source.md) 18 |
19 | 20 | ### 📃 Rules List 21 | 22 | 23 | > [!CAUTION] 24 | > Use the right filter on the right platform or suffer the consequences. 25 | 26 | > 27 | - **Content Rules** 28 | 29 | | Rules Name | 🚀Github Raw | 🚀Github Pages | 🚀Gitlab Raw | 🚀Cloudflare Pages | 🚀Bitbucket Raw | 30 | | :--------------------- | :------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------- | 31 | | AdRules AdBlock List | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adblock.txt) | [Link](https://gp.adrules.top/adblock.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adblock.txt) | [Link](https://adrules.top/adblock.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adblock.txt) | 32 | | AdRules AdBlock List Lite | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adblock_lite.txt) | [Link](https://gp.adrules.top/adblock_lite.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adblock_lite.txt) | [Link](https://adrules.top/adblock_lite.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adblock_lite.txt) | 33 | | AdRules AdBlock List Plus | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adblock_plus.txt) | [Link](https://gp.adrules.top/adblock_plus.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adblock_plus.txt) | [Link](https://adrules.top/adblock_plus.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adblock_plus.txt) | 34 | 35 | - **DNS Rules** 36 | 37 | | **Syntax** | **🚀Github Raw** | **🚀Github Pages** | **🚀Gitlab Raw** | **🚀Cloudflare Pages** | **🚀Bitbucket Raw** | 38 | | :----------------- | :------------------------------------------------------------------------------------- | :--------------------------------------------------- | :---------------------------------------------------------------------------- | :------------------------------------------------ | :--------------------------------------------------------------------------- | 39 | | ABP | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/dns.txt) | [Link](https://gp.adrules.top/dns.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/dns.txt) | [Link](https://adrules.top/dns.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/dns.txt) | 40 | | SmartDNS | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/smart-dns.conf) | [Link](https://gp.adrules.top/smart-dns.conf) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/smart-dns.conf) | [Link](https://adrules.top/smart-dns.conf) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/smart-dns.conf) | 41 | | MosDNS | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/mosdns_adrules.txt) | [Link](https://gp.adrules.top/mosdns_adrules.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/mosdns_adrules.txt) | [Link](https://adrules.top/mosdns_adrules.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/mosdns_adrules.txt) | 42 | | Clash Domainset | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules_domainset.txt) | [Link](https://gp.adrules.top/adrules_domainset.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adrules_domainset.txt) | [Link](https://adrules.top/adrules_domainset.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adrules_domainset.txt) | 43 | | Surge/Loon Ruleset | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules.list) | [Link](https://gp.adrules.top/adrules.list) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adrules.list) | [Link](https://adrules.top/adrules.list) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adrules.list) | 44 | | Quantumult X | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/qx.conf) | [Link](https://gp.adrules.top/qx.conf) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/qx.conf) | [Link](https://adrules.top/qx.conf) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/qx.conf) | 45 | | Mihomo | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules-mihomo.mrs) | [Link](https://gp.adrules.top/adrules-mihomo.mrs) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adrules-mihomo.mrs) | [Link](https://adrules.top/adrules-mihomo.mrs) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adrules-mihomo.mrs) | 46 | | Singbox | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules-singbox.srs) | [Link](https://gp.adrules.top/adrules-singbox.srs) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adrules-singbox.srs) | [Link](https://adrules.top/adrules-singbox.srs) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adrules-singbox.srs) | 47 | 48 | 49 | 50 | ## License 51 | This project is licensed under the WTFPL License - see the LICENSE file for details. 52 | 53 | The WTFPL License is a permissive license that allows you to do whatever you want with the code, without any restrictions or obligations. It is a short and simple license that promotes freedom and flexibility. 54 | 55 | ## Chat 56 | 57 | **📝 https://github.com/Cats-Team/AdRules/issues** 58 | **💬 https://github.com/Cats-Team/AdRules/discussions** 59 | 60 | ## Sponsor 61 | [Afdian](https://afdian.com/a/Cats-Team) 62 | 63 | [Back to top](#) 64 | -------------------------------------------------------------------------------- /Source.md: -------------------------------------------------------------------------------- 1 | > [!WARNING] 2 | > Some information may be outdated. 3 | 4 | List Source | Type | Author | License | Comment 5 | :---:|:---:|:---:|:---:|:---: 6 | | | | | 7 | Lite | | | | 8 | https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt | ABP | xinggsf | No or Unknown | 9 | https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt | ABP | damengzhu | No or Unknown | 10 | https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt | ABP | Noyllopa | MIT License | 11 | https://filters.adtidy.org/extension/ublock/filters/224.txt | ABP | AdGuard Team | GPL-3.0 license | 12 | https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt | ABP | cjx82630 | LGPL-3.0 license | 13 | https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt | ABP | reek | CC BY-SA 4.0 license | 14 | https://easylist-downloads.adblockplus.org/antiadblockfilters.txt | ABP | EasyList | EasyList Licence | 15 | https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt | ABP | Adblock Plus Team | GPL-3.0 license | 16 | | | | | 17 | Normal (Based on Lite version) | | | | 18 | https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt | ABP | DandelionSprout | DandelionSprout's Licence | 19 | https://filters.adtidy.org/extension/ublock/filters/3_optimized.txt | ABP | AdGuard Team | GPL-3.0 license | 20 | https://easylist-downloads.adblockplus.org/easyprivacy.txt | ABP | EasyList | EasyList Repository Licences | 21 | | | | | 22 | Plus (Based on Normal version) | | | | 23 | https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances.txt 24 | https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt | ABP | uBlock Team | GPL-3.0 license | 25 | https://filters.adtidy.org/windows/filters/2.txt 26 | https://filters.adtidy.org/windows/filters/11.txt 27 | https://filters.adtidy.org/windows/filters/3.txt 28 | https://filters.adtidy.org/windows/filters/224.txt 29 | https://filters.adtidy.org/windows/filters/14.txt 30 | https://filters.adtidy.org/windows/filters/4.txt 31 | https://filters.adtidy.org/windows/filters/17.txt | ABP | AdGuard Team | GPL-3.0 license | 32 | | | | | 33 | DNS (Base on Content Filter) | | | | 34 | https://filters.adavoid.org/ultimate-ad-filter.txt 35 | https://filters.adavoid.org/ultimate-privacy-filter.txt | ABP | ultimate Team | GNU GPLv3 / CC BY 3.0 | | 36 | https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt | ABP | Fanboy Team | GNU GPLv3 / CC BY 3.0 | | 37 | https://raw.githubusercontent.com/banbendalao/ADgk/master/ADgk.txt | ABP | Banbendalao | MIT License | 38 | https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.txt | ABP | hoshsadiq | MIT License | 39 | https://raw.githubusercontent.com/durablenapkin/scamblocklist/master/adguard.txt | ABP | durablenapkin | MIT License | 40 | https://raw.githubusercontent.com/d3ward/toolz/master/src/d3host.adblock | ABP | d3ward | CC BY-NC-SA | | 41 | https://adaway.org/hosts.txt | Hosts | Adaway Team | CC Attribution 3.0 | 42 | https://raw.githubusercontent.com/jdlingyu/ad-wars/master/hosts | Hosts | jdlingyu | No or Unknown | 43 | https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt | Hosts | crazy-max | MIT License | 44 | https://gitlab.com/quidsup/notrack-blocklists/-/raw/master/malware.hosts | Hosts | QuidsUp | GNU General Public License v3.0 | 45 | https://raw.githubusercontent.com/bigdargon/hostsVN/master/hosts | Hosts | bigdargon | MIT License | 46 | https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts | Hosts | StevenBlack | MIT License | 47 | https://urlhaus.abuse.ch/downloads/hostfile/ | Hosts | urlhaus Team | No or Unknown | 48 | https://someonewhocares.org/hosts/zero/hosts | Hosts | someonewhocares | No or Unknown | 49 | https://raw.githubusercontent.com/Spam404/lists/master/main-blacklist.txt | Hosts | Spam404 | No or Unknown 50 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | AdRules 11 | 15 | 469 | 470 | 471 | 472 | 473 | 477 | 478 |
479 |
480 |

AdRules

481 |

List for blocking ads in the Chinese region

482 |
483 | Stars 485 | GitHub last commit 487 | License 488 |
489 |
490 | 491 |
492 |
493 |
Choose Your Tool:
494 |
495 | 499 |
500 |
501 |
Browser & App
502 |
Browser Extension
503 |
AdGuard for Android/iOS
504 |
AdGuard for Windows/Mac
505 |
506 |
507 |
DNS & Proxy
508 |
AdGuard Home
509 |
SmartDNS
510 |
Quantumult X
511 |
Clash
512 |
mosdns
513 |
Loon
514 |
Surge
515 |
Mihomo
516 |
Singbox
517 |
518 |
519 |
520 |
521 | 522 |
523 |
524 |
525 |
526 | ### AdGuard for Android / iOS  
527 | 
528 | [AdRules AdBlock List](./adblock.txt)
529 |                     
530 |
531 |
532 | 533 | 534 |
535 |
536 | 537 |
538 |
539 |
540 | ### AdGuard for Windows / Mac
541 | 
542 | [AdRules AdBlock List Plus](./adblock_plus.txt)
543 |                     
544 |
545 |
546 | 547 | 548 |
549 |
550 | 551 |
552 |
553 |
554 | ### AdGuard Browser extension / uBlock Origin
555 | 
556 | [AdRules AdBlock List](./adblock.txt)
557 |                     
558 |
559 |
560 | 561 | 562 |
563 |
564 | 565 |
566 |
567 |
568 | ### AdGuard Home  
569 | 
570 | [AdRules DNS List](./dns.txt)
571 |                     
572 |
573 |
574 | 575 |
576 |
577 | 578 |
579 |
580 |
581 | ### SmartDNS
582 | 
583 | [AdRules SmartDNS List](./smart-dns.conf)
584 |                     
585 |
586 |
587 | 588 |
589 |
590 | 591 |
592 |
593 |
594 | ### Quantumult X
595 | 
596 | [AdRules Quantumult X List](./qx.conf)
597 |                     
598 |
599 |
600 | 601 |
602 |
603 | 604 |
605 |
606 |
607 | ### Clash / Mihomo
608 | 
609 | [AdRules Clash Domainset List](./adrules_domainset.txt)
610 |                     
611 |
612 |
613 | 614 |
615 |
616 | 617 |
618 |
619 |
620 | ### mosdns
621 | 
622 | [AdRules MosDNS List](./mosdns_adrules.txt)
623 |                     
624 |
625 |
626 | 627 |
628 |
629 | 630 |
631 |
632 |
633 | ### Loon 
634 | 
635 | [AdRules Ruleset List](./adrules.list)
636 |                     
637 |
638 |
639 | 640 |
641 |
642 | 643 |
644 |
645 |
646 | ### Surge 
647 | 
648 | [AdRules Surge List](./adrules-surge.conf)
649 |                     
650 |
651 |
652 | 653 |
654 |
655 | 656 |
657 |
658 |
659 | ### Mihomo
660 | 
661 | [AdRules Mihomo List](./adrules-mihomo.mrs)
662 |                     
663 |
664 |
665 | 666 |
667 |
668 | 669 |
670 |
671 |
672 | ### Singbox
673 | 
674 | [AdRules Singbox List](./adrules-singbox.srs)
675 |                     
676 |
677 |
678 | 679 |
680 |
681 |
682 |
683 | 684 |
685 |
Ciallo~(∠・ω< )⌒☆
686 |

❔Have any questions? Please go to Chat

687 |

📃Want to see the upstream rules? Source

689 |

🌟Get more or give a star? GitHub Homepage

690 |
691 |
692 | 693 | 829 | 830 | 831 | 832 | -------------------------------------------------------------------------------- /mod/rules/adblock-need-remove.txt: -------------------------------------------------------------------------------- 1 | ||imasdk.googleapis.com^ 2 | 3 | ||bing.com/fd/ls/GLinkPing.aspx? 4 | 5 | ||bing.com^*/glinkping.aspx$ping,xmlhttprequest 6 | 7 | ||bing.com/fd/ls/ 8 | 9 | ||gia.jd.com^ 10 | -------------------------------------------------------------------------------- /mod/rules/adblock-rules.txt: -------------------------------------------------------------------------------- 1 | ! ------加强屏蔽Start------ ! 2 | 3 | !酷安"提到的好物" 4 | ||coolapk.com/v6/page/dataList?$replace=/extra_entities// 5 | ||coolapk.com/v6/feed/detail?$replace=/extra_entities// 6 | ||coolapk.com/v6/main/indexV?$replace=/extra_entities// 7 | ||coolapk.com/v6/feed/detail?$replace=/extra_title// 8 | ||coolapk.com/v6/feed/detail?$replace=/include_goods// 9 | 10 | !去除"什么值得买" 11 | ||coolapk.com/v6/main/indexV8?$replace=/\{"entityType":"card"\,"entityTemplate":"listCard".*?\}\,\{"id/{"id/ 12 | !去除热搜 13 | ||coolapk.com/v6/main/init?$replace=/\{"data":\[\{"entityType":"card"\,"entityTemplate":"textCard"\,"title":"\\u70ed\\u95e8\\u641c\\u7d22".*?\}\,\{"entityType":"card"\,"entityTemplate":"configCard"/\{"data":[\{"entityType":"card"\,"entityTemplate":"configCard"/ 14 | ||coolapk.com/v6/search?type=hotSearch$replace=/\{"data":\[.*\]/{"data":[]/ 15 | !去除随机应用推荐 16 | ||coolapk.com/v6/main/indexV8?$replace=/\,\{.*?"entityType": "card"\,"entityTemplate":"apkImageCard".*?\}\,\{"id"/,{"id"/ 17 | !去除评论区下某广告 18 | ||coolapk.com/v6/feed/detail?$replace=/detailSponsorCard// 19 | 20 | ! 信息流及评论区广告 21 | ||ctobsnssdk.com^ 22 | ||pangolin.snssdk.com^ 23 | ||pangolin-sdk-toutiao.com^ 24 | ||pangolin-sdk-toutiao-b.com^ 25 | ||pglstatp-toutiao.com^ 26 | ||umeng.com^ 27 | ||tnc*.zijieapi.com^$app 28 | ! 帖子详情好物推荐 29 | ||api2.coolapk.com/v6/feed/detail$replace=/"_ids":\[.*?]\,"":\[.*?]\,/ / 30 | ! 帖子详情赞助内容 31 | ||api2.coolapk.com/v6/feed/detail$replace=/\,"":{.*}/}}/ 32 | ! 发现页去除酷品 33 | ||api2.coolapk.com/v6/main/init$replace=/{"id":1170.*?}\,/ / 34 | ! 应用游戏页去除推广视频 35 | ||api2.coolapk.com/v6/page/dataList$replace=/{"entityType":"card"\,"entityTemplate":"apkImageCard".*?\\u0022}"}\,/ / 36 | ! 去除首页还有什么值得买推广 37 | ||api2.coolapk.com/v6/main/indexV8$replace=/{"entityType":"card"\,"entityTemplate":"listCard".*?}"}\,/ / 38 | 39 | !酷我 40 | ||g.koowo.com^$app=cn.kuwo.player 41 | ||fvedio.kuwo.cn^$app=cn.kuwo.player 42 | ||searchrecterm.kuwo.cn^$app=cn.kuwo.player 43 | ||media.cdn.kuwo.cn*tuijian*.json$app=cn.kuwo.player 44 | 45 | !全民k歌 46 | ||y.qq.com/music/common/upload/t_kg_activity_show^ 47 | ||y.gtimg.cn/music/common//upload/kg_ad^ 48 | ||us.l.qq.com/exapp^ 49 | ||httpdns.kg.qq.com^ 50 | 51 | 52 | 53 | !抖音屏蔽大部分广告 54 | !番茄小说广告全屏蔽 55 | ||ads*-normal*.zijieapi.com^ 56 | ||p*-ad-sign.byteimg.com^ 57 | 58 | ! 大海影视 59 | ||uty.micocc.com^ 60 | ||lanm.huliyinzi.com^ 61 | ||ns.adobe.com^ 62 | ||swimg2.tsderen.cn^ 63 | ||st.huliyinzi.com/ads_app_pic/^ 64 | 65 | ! 快手AD 66 | ||yoda.kwd.inkuai.com^ 67 | ||gdfp.gifshow.com^ 68 | ||volceapplog.com^ 69 | 70 | !小睡眠 71 | ||api.psy-1.com/cosleep/newborn/vips/picks^ 72 | ||api.psy-1.com/cosleep/newborn/ad^ 73 | ||res.psy-1.com/music/recommend^$app=com.psyone.brainmusic 74 | 75 | !小米遥控器 76 | ||home.mi.com/cgi-op/api/v1/recommendation/banner^ 77 | 78 | !由asky88提供的不太记得是什么作用的规则 79 | 80 | ||xj-landing.gdtimg.com^ 81 | ||*/vhot2.qqvideo.tc.qq.com^ 82 | ||soup.v.qq.com^ 83 | 84 | ! -------加强屏蔽End------- ! 85 | 86 | ! -------白名单Start------- ! 87 | ! AdGuard 88 | @@||local.adguard.org^ 89 | 90 | ! Edge新闻 91 | @@||www.msn.cn/spartan/mmx^ 92 | 93 | ! 银联 94 | @@||yyfweb.postar.cn^ 95 | 96 | ! Bilibili 97 | bilibili.com#@#.btn-ctnr 98 | 99 | ! Phone Youku 100 | @@||vali.cp*.ott.cibntv.net^$domain=m.youku.com,third-party 101 | 102 | ! 皮皮虾评论区误杀 103 | @@||i.snssdk.com/bds^$app=com.sup.android.superb 104 | 105 | !mydrivers.com 106 | mydrivers.com#@#.baidu, a[href^=http][target=_blank] 107 | 108 | ! Bilibiili API 109 | @@||api.bilibili.com/*^$removeparam 110 | 111 | !https://es6.ruanyifeng.com/#docs/module无法加载 112 | ruanyifeng.com#@#a[href*=".apeclass.com"] 113 | 114 | ! b站 投币 收藏 #66 115 | bilibili.com#@#.bili-dialog-m 116 | 117 | ! 百度云转存 #59 118 | @@||pan.baidu.com/$removeparam,domain=pan.baidu.com 119 | 120 | ! 验证码 121 | cjcx.neea.edu.cn#@#[style="visibility: visible; display: block;"] 122 | 123 | ! 魅族主题 #90 124 | @@||ccm*.res.meizu.com/fileserver/operation/ad/img/*.png 125 | 126 | #189 127 | @@||safe.zhanhuo.com^$domain=safe.zhanhuo.com 128 | ! --------白名单End-------- ! 129 | -------------------------------------------------------------------------------- /mod/rules/dns-rules.txt: -------------------------------------------------------------------------------- 1 | !-- 2 | ! 3 | ! From Acl4ssr BanAD.List And BanProgramAD.list 4 | ! China Ad Alliance 5 | ||09mk.cn^ 6 | ||100peng.com^ 7 | ||114la.com^ 8 | ||123juzi.net^ 9 | ||138lm.com^ 10 | ||17un.com^ 11 | ||2cnt.net^ 12 | ||3gmimo.com^ 13 | ||3xx.vip^ 14 | ||51.la^ 15 | ||51taifu.com^ 16 | ||51yes.com^ 17 | ||600ad.com^ 18 | ||6dad.com^ 19 | ||70e.com^ 20 | ||86.cc^ 21 | ||8le8le.com^ 22 | ||8ox.cn^ 23 | ||95558000.com^ 24 | ||99click.com^ 25 | ||99youmeng.com^ 26 | ||a3p4.net^ 27 | ||acs86.com^ 28 | ||acxiom-online.com^ 29 | ||ad-brix.com^ 30 | ||ad-delivery.net^ 31 | ||ad-locus.com^ 32 | ||ad-plus.cn^ 33 | ||ad7.com^ 34 | ||adadapted.com^ 35 | ||adadvisor.net^ 36 | ||adap.tv^ 37 | ||adbana.com^ 38 | ||adchina.com^ 39 | ||adcome.cn^ 40 | ||ader.mobi^ 41 | ||adform.net^ 42 | ||adfuture.cn^ 43 | ||adhouyi.com^ 44 | ||adinfuse.com^ 45 | ||adirects.com^ 46 | ||adjust.io^ 47 | ||adkmob.com^ 48 | ||adlive.cn^ 49 | ||adlocus.com^ 50 | ||admaji.com^ 51 | ||admin6.com^ 52 | ||admon.cn^ 53 | ||adnyg.com^ 54 | ||adpolestar.net^ 55 | ||adpro.cn^ 56 | ||adpush.cn^ 57 | ||adquan.com^ 58 | ||adreal.cn^ 59 | ||ads8.com^ 60 | ||adsame.com^ 61 | ||adsmogo.com^ 62 | ||adsmogo.org^ 63 | ||adsunflower.com^ 64 | ||adsunion.com^ 65 | ||adtrk.me^ 66 | ||adups.com^ 67 | ||aduu.cn^ 68 | ||advertising.com^ 69 | ||adview.cn^ 70 | ||advmob.cn^ 71 | ||adwetec.com^ 72 | ||adwhirl.com^ 73 | ||adwo.com^ 74 | ||adxmi.com^ 75 | ||adyun.com^ 76 | ||adzerk.net^ 77 | ||agrant.cn^ 78 | ||agrantsem.com^ 79 | ||aihaoduo.cn^ 80 | ||ajapk.com^ 81 | ||allyes.cn^ 82 | ||allyes.com^ 83 | ||amazon-adsystem.com^ 84 | ||analysys.cn^ 85 | ||angsrvr.com^ 86 | ||anquan.org^ 87 | ||anysdk.com^ 88 | ||appadhoc.com^ 89 | ||appads.com^ 90 | ||appboy.com^ 91 | ||appdriver.cn^ 92 | ||appjiagu.com^ 93 | ||applifier.com^ 94 | ||appsflyer.com^ 95 | ||atdmt.com^ 96 | ||baifendian.com^ 97 | ||banmamedia.com^ 98 | ||baoyatu.cc^ 99 | ||baycode.cn^ 100 | ||bayimob.com^ 101 | ||behe.com^ 102 | ||bfshan.cn^ 103 | ||biddingos.com^ 104 | ||biddingx.com^ 105 | ||bjvvqu.cn^ 106 | ||bjxiaohua.com^ 107 | ||bloggerads.net^ 108 | ||branch.io^ 109 | ||bsdev.cn^ 110 | ||bshare.cn^ 111 | ||btyou.com^ 112 | ||bugtags.com^ 113 | ||buysellads.com^ 114 | ||c0563.com^ 115 | ||cacafly.com^ 116 | ||casee.cn^ 117 | ||cdnmaster.com^ 118 | ||chance-ad.com^ 119 | ||chanet.com.cn^ 120 | ||chartbeat.com^ 121 | ||chartboost.com^ 122 | ||chengadx.com^ 123 | ||chmae.com^ 124 | ||clickadu.com^ 125 | ||clicki.cn^ 126 | ||clicktracks.com^ 127 | ||clickzs.com^ 128 | ||cloudmobi.net^ 129 | ||cmcore.com^ 130 | ||cnxad.com^ 131 | ||cnzz.com^ 132 | ||cnzzlink.com^ 133 | ||cocounion.com^ 134 | ||coocaatv.com^ 135 | ||cooguo.com^ 136 | ||coolguang.com^ 137 | ||coremetrics.com^ 138 | ||cpmchina.co^ 139 | ||cpx24.com^ 140 | ||crasheye.cn^ 141 | ||crosschannel.com^ 142 | ||ctrmi.com^ 143 | ||customer-security.online^ 144 | ||daoyoudao.com^ 145 | ||datouniao.com^ 146 | ||ddapp.cn^ 147 | ||dianjoy.com^ 148 | ||dianru.com^ 149 | ||disqusads.com^ 150 | ||domob.cn^ 151 | ||domob.com.cn^ 152 | ||domob.org^ 153 | ||dotmore.com.tw^ 154 | ||doubleverify.com^ 155 | ||doudouguo.com^ 156 | ||doumob.com^ 157 | ||duanat.com^ 158 | ||duiba.com.cn^ 159 | ||duomeng.cn^ 160 | ||dxpmedia.com^ 161 | ||edigitalsurvey.com^ 162 | ||eduancm.com^ 163 | ||emarbox.com^ 164 | ||exosrv.com^ 165 | ||fancyapi.com^ 166 | ||feitian001.com^ 167 | ||feixin2.com^ 168 | ||flashtalking.com^ 169 | ||fraudmetrix.cn^ 170 | ||g1.tagtic.cn^ 171 | ||gentags.net^ 172 | ||gepush.com^ 173 | ||getui.com^ 174 | ||glispa.com^ 175 | ||go-mpulse.net^ 176 | ||go-mpulse^ 177 | ||godloveme.cn^ 178 | ||gridsum.com^ 179 | ||gridsumdissector.cn^ 180 | ||gridsumdissector.com^ 181 | ||growingio.com^ 182 | ||guohead.com^ 183 | ||guomob.com^ 184 | ||haoghost.com^ 185 | ||hivecn.cn^ 186 | ||hypers.com^ 187 | ||icast.cn^ 188 | ||igexin.com^ 189 | ||il8r.com^ 190 | ||imageter.com^ 191 | ||immob.cn^ 192 | ||inad.com^ 193 | ||inmobi.cn^ 194 | ||inmobi.net^ 195 | ||inmobicdn.cn^ 196 | ||inmobicdn.net^ 197 | ||innity.com^ 198 | ||instabug.com^ 199 | ||intely.cn^ 200 | ||iperceptions.com^ 201 | ||ipinyou.com^ 202 | ||irs01.com^ 203 | ||irs01.net^ 204 | ||irs09.com^ 205 | ||istreamsche.com^ 206 | ||jesgoo.com^ 207 | ||jiaeasy.net^ 208 | ||jiguang.cn^ 209 | ||jisucn.com^ 210 | ||jmgehn.cn^ 211 | ||jpush.cn^ 212 | ||jusha.com^ 213 | ||juzi.cn^ 214 | ||juzilm.com^ 215 | ||kejet.com^ 216 | ||kejet.net^ 217 | ||keydot.net^ 218 | ||keyrun.cn^ 219 | ||kmd365.com^ 220 | ||krux.net^ 221 | ||lnk0.com^ 222 | ||lnk8.cn^ 223 | ||localytics.com^ 224 | ||lomark.cn^ 225 | ||lotuseed.com^ 226 | ||lrswl.com^ 227 | ||lufax.com^ 228 | ||madhouse.cn^ 229 | ||madmini.com^ 230 | ||madserving.com^ 231 | ||magicwindow.cn^ 232 | ||mathtag.com^ 233 | ||maysunmedia.com^ 234 | ||mbai.cn^ 235 | ||mediaplex.com^ 236 | ||mediav.com^ 237 | ||megajoy.com^ 238 | ||mgogo.com^ 239 | ||miaozhen.com^ 240 | ||microad-cn.com^ 241 | ||miidi.net^ 242 | ||mijifen.com^ 243 | ||mixpanel.com^ 244 | ||mjmobi.com^ 245 | ||mng-ads.com^ 246 | ||moad.cn^ 247 | ||moatads.com^ 248 | ||mobaders.com^ 249 | ||mobclix.com^ 250 | ||mobgi.com^ 251 | ||mobisage.cn^ 252 | ||mobvista.com^ 253 | ||moogos.com^ 254 | ||mopub.com^ 255 | ||moquanad.com^ 256 | ||mpush.cn^ 257 | ||mxpnl.com^ 258 | ||myhug.cn^ 259 | ||mzy2014.com^ 260 | ||networkbench.com^ 261 | ||ninebox.cn^ 262 | ||nylalobghyhirgh.com^ 263 | ||o2omobi.com^ 264 | ||oadz.com^ 265 | ||oneapm.com^ 266 | ||onetad.com^ 267 | ||optaim.com^ 268 | ||optimix.asia^ 269 | ||optimix.cn^ 270 | ||optimizelyapis.com^ 271 | ||overture.com^ 272 | ||p0y.cn^ 273 | ||pagechoice.net^ 274 | ||pingdom.net^ 275 | ||plugrush.com^ 276 | ||popin.cc^ 277 | ||pro.cn^ 278 | ||publicidad.net^ 279 | ||publicidad.tv^ 280 | ||pubmatic.com^ 281 | ||pubnub.com^ 282 | ||qcl777.com^ 283 | ||qiyou.com^ 284 | ||qtmojo.com^ 285 | ||quantcount.com^ 286 | ||qucaigg.com^ 287 | ||qumi.com^ 288 | ||qxxys.com^ 289 | ||reachmax.cn^ 290 | ||responsys.net^ 291 | ||revsci.net^ 292 | ||rlcdn.com^ 293 | ||rtbasia.com^ 294 | ||sanya1.com^ 295 | ||scupio.com^ 296 | ||serving-sys.com^ 297 | ||shuiguo.com^ 298 | ||shuzilm.cn^ 299 | ||sitemeter.com^ 300 | ||sitescout.com^ 301 | ||sitetag.us^ 302 | ||smartmad.com^ 303 | ||social-touch.com^ 304 | ||somecoding.com^ 305 | ||sponsorpay.com^ 306 | ||stargame.com^ 307 | ||stg8.com^ 308 | ||switchadhub.com^ 309 | ||sycbbs.com^ 310 | ||synacast.com^ 311 | ||sysdig.com^ 312 | ||talkingdata.com^ 313 | ||talkingdata.net^ 314 | ||tansuotv.com^ 315 | ||tanv.com^ 316 | ||tanx.com^ 317 | ||tapjoy.cn^ 318 | ||th7.cn^ 319 | ||thoughtleadr.com^ 320 | ||tianmidian.com^ 321 | ||tiqcdn.com^ 322 | ||touclick.com^ 323 | ||trafficjam.cn^ 324 | ||trafficmp.com^ 325 | ||tuia.cn^ 326 | ||ueadlian.com^ 327 | ||uerzyr.cn^ 328 | ||ugdtimg.com^ 329 | ||ugvip.com^ 330 | ||ujian.cc^ 331 | ||ukeiae.com^ 332 | ||umeng.co^ 333 | ||umeng.com^ 334 | ||umtrack.com^ 335 | ||unimhk.com^ 336 | ||union-wifi.com^ 337 | ||union001.com^ 338 | ||unionsy.com^ 339 | ||unlitui.com^ 340 | ||uri6.com^ 341 | ||ushaqi.com^ 342 | ||usingde.com^ 343 | ||uuzu.com^ 344 | ||uyunad.com^ 345 | ||vamaker.com^ 346 | ||vlion.cn^ 347 | ||voiceads.cn^ 348 | ||voiceads.com^ 349 | ||vpon.com^ 350 | ||vungle.cn^ 351 | ||vungle.com^ 352 | ||waps.cn^ 353 | ||wapx.cn^ 354 | ||webterren.com^ 355 | ||whpxy.com^ 356 | ||winads.cn^ 357 | ||winasdaq.com^ 358 | ||wiyun.com^ 359 | ||wooboo.com.cn^ 360 | ||wqmobile.com^ 361 | ||wrating.com^ 362 | ||wumii.cn^ 363 | ||xcy8.com^ 364 | ||xdrig.com^ 365 | ||xiaozhen.com^ 366 | ||xibao100.com^ 367 | ||xtgreat.com^ 368 | ||xy.com^ 369 | ||yandui.com^ 370 | ||yigao.com^ 371 | ||yijifen.com^ 372 | ||yinooo.com^ 373 | ||yiqifa.com^ 374 | ||yiwk.com^ 375 | ||ylunion.com^ 376 | ||ymapp.com^ 377 | ||ymcdn.cn^ 378 | ||yongyuelm.com^ 379 | ||yooli.com^ 380 | ||youmi.net^ 381 | ||youxiaoad.com^ 382 | ||yoyi.com.cn^ 383 | ||yoyi.tv^ 384 | ||yrxmr.com^ 385 | ||ysjwj.com^ 386 | ||yunjiasu.com^ 387 | ||yunpifu.cn^ 388 | ||zampdsp.com^ 389 | ||zamplus.com^ 390 | ||zcdsp.com^ 391 | ||zhidian3g.cn^ 392 | ||zhiziyun.com^ 393 | ||zhjfad.com^ 394 | ||zqzxz.com^ 395 | ||zzsx8.com^ 396 | ! 397 | ! 398 | !--- 399 | ! 400 | ! 401 | ! Global Ad Alliance 402 | ||acuityplatform.com^ 403 | ||ad-stir.com^ 404 | ||ad-survey.com^ 405 | ||ad4game.com^ 406 | ||adcloud.jp^ 407 | ||adcolony.com^ 408 | ||addthis.com^ 409 | ||adfurikun.jp^ 410 | ||adhigh.net^ 411 | ||adhood.com^ 412 | ||adinall.com^ 413 | ||adition.com^ 414 | ||adk2x.com^ 415 | ||admarket.mobi^ 416 | ||admarvel.com^ 417 | ||admedia.com^ 418 | ||adnxs.com^ 419 | ||adotmob.com^ 420 | ||adperium.com^ 421 | ||adriver.ru^ 422 | ||adroll.com^ 423 | ||adsco.re^ 424 | ||adservice.com^ 425 | ||adsrvr.org^ 426 | ||adsymptotic.com^ 427 | ||adtaily.com^ 428 | ||adtech.de^ 429 | ||adtechjp.com^ 430 | ||adtechus.com^ 431 | ||airpush.com^ 432 | ||am15.net^ 433 | ||amobee.com^ 434 | ||appier.net^ 435 | ||applift.com^ 436 | ||apsalar.com^ 437 | ||atas.io^ 438 | ||awempire.com^ 439 | ||axonix.com^ 440 | ||beintoo.com^ 441 | ||bepolite.eu^ 442 | ||bidtheatre.com^ 443 | ||bidvertiser.com^ 444 | ||blismedia.com^ 445 | ||brucelead.com^ 446 | ||bttrack.com^ 447 | ||casalemedia.com^ 448 | ||celtra.com^ 449 | ||channeladvisor.com^ 450 | ||connexity.net^ 451 | ||criteo.com^ 452 | ||criteo.net^ 453 | ||csbew.com^ 454 | ||directrev.com^ 455 | ||dumedia.ru^ 456 | ||effectivemeasure.com^ 457 | ||effectivemeasure.net^ 458 | ||eqads.com^ 459 | ||everesttech.net^ 460 | ||exoclick.com^ 461 | ||extend.tv^ 462 | ||eyereturn.com^ 463 | ||fastapi.net^ 464 | ||fastclick.com^ 465 | ||fastclick.net^ 466 | ||flurry.com^ 467 | ||gosquared.com^ 468 | ||gtags.net^ 469 | ||heyzap.com^ 470 | ||histats.com^ 471 | ||hitslink.com^ 472 | ||hot-mob.com^ 473 | ||hyperpromote.com^ 474 | ||i-mobile.co.jp^ 475 | ||imrworldwide.com^ 476 | ||inmobi.com^ 477 | ||inner-active.mobi^ 478 | ||intentiq.com^ 479 | ||inter1ads.com^ 480 | ||ipredictive.com^ 481 | ||ironsrc.com^ 482 | ||iskyworker.com^ 483 | ||jizzads.com^ 484 | ||juicyads.com^ 485 | ||kochava.com^ 486 | ||leadbolt.com^ 487 | ||leadbolt.net^ 488 | ||leadboltads.net^ 489 | ||leadboltapps.net^ 490 | ||leadboltmobile.net^ 491 | ||lenzmx.com^ 492 | ||liveadvert.com^ 493 | ||marketgid.com^ 494 | ||marketo.com^ 495 | ||mdotm.com^ 496 | ||medialytics.com^ 497 | ||medialytics.io^ 498 | ||meetrics.com^ 499 | ||meetrics.net^ 500 | ||mgid.com^ 501 | ||millennialmedia.com^ 502 | ||mobadme.jp^ 503 | ||mobfox.com^ 504 | ||mobileadtrading.com^ 505 | ||mobilityware.com^ 506 | ||mojiva.com^ 507 | ||mookie1.com^ 508 | ||msads.net^ 509 | ||mydas.mobi^ 510 | ||nend.net^ 511 | ||netshelter.net^ 512 | ||nexage.com^ 513 | ||owneriq.net^ 514 | ||pixels.asia^ 515 | ||plista.com^ 516 | ||popads.net^ 517 | ||powerlinks.com^ 518 | ||propellerads.com^ 519 | ||quantserve.com^ 520 | ||rayjump.com^ 521 | ||revdepo.com^ 522 | ||rubiconproject.com^ 523 | ||sape.ru^ 524 | ||scorecardresearch.com^ 525 | ||segment.com^ 526 | ||serving-sys.com^ 527 | ||sharethis.com^ 528 | ||smaato.com^ 529 | ||smaato.net^ 530 | ||smartadserver.com^ 531 | ||smartnews-ads.com^ 532 | ||startapp.com^ 533 | ||startappexchange.com^ 534 | ||statcounter.com^ 535 | ||steelhousemedia.com^ 536 | ||stickyadstv.com^ 537 | ||supersonic.com^ 538 | ||taboola.com^ 539 | ||tapjoy.com^ 540 | ||tapjoyads.com^ 541 | ||trafficjunky.com^ 542 | ||trafficjunky.net^ 543 | ||tribalfusion.com^ 544 | ||turn.com^ 545 | ||uberads.com^ 546 | ||vidoomy.com^ 547 | ||viglink.com^ 548 | ||voicefive.com^ 549 | ||wedolook.com^ 550 | ||yadro.ru^ 551 | ||yengo.com^ 552 | ||zedo.com^ 553 | ||zemanta.com^ 554 | ! 555 | ! 556 | !-- 557 | ! 558 | ! App Ads 559 | ! 163 560 | ||a.youdao.com^ 561 | ||adgeo.corp.163.com^ 562 | ||analytics.126.net^ 563 | ||bobo.corp.163.com^ 564 | ||c.youdao.com^ 565 | ||clkservice.youdao.com^ 566 | ||conv.youdao.com^ 567 | ||dsp-impr2.youdao.com^ 568 | ||dsp.youdao.com^ 569 | ||fa.corp.163.com^ 570 | ||g.corp.163.com^ 571 | ||g1.corp.163.com^ 572 | ||gb.corp.163.com^ 573 | ||gorgon.youdao.com^ 574 | ||haitaoad.nosdn.127.net^ 575 | ||iadmatvideo.nosdn.127.net^ 576 | ||img1.126.net^ 577 | ||img2.126.net^ 578 | ||ir.mail.126.com^ 579 | ||ir.mail.yeah.net^ 580 | ||mimg.126.net^ 581 | ||nc004x.corp.youdao.com^ 582 | ||nc045x.corp.youdao.com^ 583 | ||nex.corp.163.com^ 584 | ||oimagea2.ydstatic.com^ 585 | ||pagechoice.net^ 586 | ||prom.gome.com.cn^ 587 | ||qchannel0d.cn^ 588 | ||qt002x.corp.youdao.com^ 589 | ||rlogs.youdao.com^ 590 | ||static.flv.uuzuonline.com^ 591 | ||tb060x.corp.youdao.com^ 592 | ||tb104x.corp.youdao.com^ 593 | ||union.youdao.com^ 594 | ||wanproxy.127.net^ 595 | ||ydpushserver.youdao.com^ 596 | 597 | ! 17173 598 | ||cvda.17173.com^ 599 | ||imgapp.yeyou.com^ 600 | ||log1.17173.com^ 601 | ||s.17173cdn.com^ 602 | ||ue.yeyoucdn.com^ 603 | ||vda.17173.com^ 604 | 605 | ! 178 606 | ||analytics.wanmei.com^ 607 | ||gg.stargame.com^ 608 | 609 | 610 | ! 360 611 | ||3600.com^ 612 | ||gamebox.360.cn^ 613 | ||jiagu.360.cn^ 614 | ||kuaikan.netmon.360safe.com^ 615 | ||leak.360.cn^ 616 | ||lianmeng.360.cn^ 617 | ||pub.se.360.cn^ 618 | ||s.so.360.cn^ 619 | ||shouji.360.cn^ 620 | ||soft.data.weather.360.cn^ 621 | ||stat.360safe.com^ 622 | ||stat.m.360.cn^ 623 | ||wan.360.cn^ 624 | 625 | ! 58 626 | ||58.xgo.com.cn^ 627 | ||brandshow.58.com^ 628 | ||imp.xgo.com.cn^ 629 | ||jing.58.com^ 630 | ||stat.xgo.com.cn^ 631 | ||track.58.com^ 632 | ||tracklog.58.com^ 633 | 634 | ! Alibaba 635 | ||acjs.aliyun.com^ 636 | ||adash-c.m.taobao.com^ 637 | ||adash-c.ut.taobao.com^ 638 | ||adashx4yt.m.taobao.com^ 639 | ||adashxgc.ut.taobao.com^ 640 | ||afp.alicdn.com^ 641 | ||ai.m.taobao.com^ 642 | ||alipaylog.com^ 643 | ||atanx.alicdn.com^ 644 | ||atanx2.alicdn.com^ 645 | ||fav.simba.taobao.com^ 646 | ||g.click.taobao.com^ 647 | ||g.tbcdn.cn^ 648 | ||gma.alicdn.com^ 649 | ||gtmsdd.alicdn.com^ 650 | ||hydra.alibaba.com^ 651 | ||m.simba.taobao.com^ 652 | ||pindao.huoban.taobao.com^ 653 | ||re.m.taobao.com^ 654 | ||redirect.simba.taobao.com^ 655 | ||rj.m.taobao.com^ 656 | ||sdkinit.taobao.com^ 657 | ||show.re.taobao.com^ 658 | ||simaba.m.taobao.com^ 659 | ||simaba.taobao.com^ 660 | ||srd.simba.taobao.com^ 661 | ||strip.taobaocdn.com^ 662 | ||tns.simba.taobao.com^ 663 | ||tyh.taobao.com^ 664 | ||userimg.qunar.com^ 665 | ||yiliao.hupan.com^ 666 | 667 | ! Adobe 668 | ||3dns-2.adobe.com^ 669 | ||3dns-3.adobe.com^ 670 | ||activate-sea.adobe.com^ 671 | ||activate-sjc0.adobe.com^ 672 | ||activate.adobe.com^ 673 | ||adobe-dns-2.adobe.com^ 674 | ||adobe-dns-3.adobe.com^ 675 | ||adobe-dns.adobe.com^ 676 | ||ereg.adobe.com^ 677 | ||geo2.adobe.com^ 678 | ||hl2rcv.adobe.com^ 679 | ||hlrcv.stage.adobe.com^ 680 | ||lm.licenses.adobe.com^ 681 | ||lmlicenses.wip4.adobe.com^ 682 | ||na1r.services.adobe.com^ 683 | ||na2m-pr.licenses.adobe.com^ 684 | ||practivate.adobe.com^ 685 | ||wip3.adobe.com^ 686 | ||wwis-dubc1-vip60.adobe.com^ 687 | 688 | ! Apple 689 | ||adserver.unityads.unity3d.com^ 690 | 691 | ! AutoHome 692 | ||33.autohome.com.cn^ 693 | ||adproxy.autohome.com.cn^ 694 | ||al.autohome.com.cn^ 695 | ||alert.autohome.com.cn^ 696 | ||applogapi.autohome.com.cn^ 697 | ||c.autohome.com.cn^ 698 | ||cmx.autohome.com.cn^ 699 | ||dspmnt.autohome.com.cn^ 700 | ||pcd.autohome.com.cn^ 701 | ||push.app.autohome.com.cn^ 702 | ||pvx.autohome.com.cn^ 703 | ||rd.autohome.com.cn^ 704 | ||rdx.autohome.com.cn^ 705 | ||stats.autohome.com.cn^ 706 | 707 | ! Baidu 708 | ||a.baidu.cn^ 709 | ||a.baidu.com^ 710 | ||ad.duapps.com^ 711 | ||ad.player.baidu.com^ 712 | ||adm.baidu.cn^ 713 | ||adm.baidu.com^ 714 | ||adscdn.baidu.cn^ 715 | ||adscdn.baidu.com^ 716 | ||adx.xiaodutv.com^ 717 | ||ae.bdstatic.com^ 718 | ||afd.baidu.cn^ 719 | ||afd.baidu.com^ 720 | ||als.baidu.cn^ 721 | ||als.baidu.com^ 722 | ||anquan.baidu.cn^ 723 | ||anquan.baidu.com^ 724 | ||antivirus.baidu.com^ 725 | ||api.mobula.sdk.duapps.com^ 726 | ||appc.baidu.cn^ 727 | ||appc.baidu.com^ 728 | ||as.baidu.cn^ 729 | ||as.baidu.com^ 730 | ||baichuan.baidu.com^ 731 | ||baidu9635.com^ 732 | ||baidustatic.com^ 733 | ||baidutv.baidu.com^ 734 | ||banlv.baidu.com^ 735 | ||bar.baidu.com^ 736 | ||bdplus.baidu.com^ 737 | ||btlaunch.baidu.com^ 738 | ||c.baidu.cn^ 739 | ||c.baidu.com^ 740 | ||cb.baidu.cn^ 741 | ||cb.baidu.com^ 742 | ||cbjs.baidu.cn^ 743 | ||cbjs.baidu.com^ 744 | ||cbjslog.baidu.cn^ 745 | ||cbjslog.baidu.com^ 746 | ||cjhq.baidu.cn^ 747 | ||cjhq.baidu.com^ 748 | ||cleaner.baidu.com^ 749 | ||click.bes.baidu.com^ 750 | ||click.hm.baidu.com^ 751 | ||click.qianqian.com^ 752 | ||cm.baidu.com^ 753 | ||cpro.baidu.cn^ 754 | ||cpro.baidu.com^ 755 | ||cpro.baidustatic.com^ 756 | ||cpro.tieba.baidu.com^ 757 | ||cpro.zhidao.baidu.com^ 758 | ||cpro2.baidu.cn^ 759 | ||cpro2.baidu.com^ 760 | ||cpu-admin.baidu.com^ 761 | ||crs.baidu.cn^ 762 | ||crs.baidu.com^ 763 | ||datax.baidu.com^ 764 | ||dl-vip.bav.baidu.com^ 765 | ||dl-vip.pcfaster.baidu.co.th^ 766 | ||dl.client.baidu.com^ 767 | ||dl.ops.baidu.com^ 768 | ||dl1sw.baidu.com^ 769 | ||dl2.bav.baidu.com^ 770 | ||dlsw.baidu.com^ 771 | ||dlsw.br.baidu.com^ 772 | ||download.bav.baidu.com^ 773 | ||download.sd.baidu.com^ 774 | ||drmcmm.baidu.cn^ 775 | ||drmcmm.baidu.com^ 776 | ||dup.baidustatic.com^ 777 | ||dxp.baidu.com^ 778 | ||dzl.baidu.com^ 779 | ||e.baidu.cn^ 780 | ||e.baidu.com^ 781 | ||eclick.baidu.cn^ 782 | ||eclick.baidu.com^ 783 | ||ecma.bdimg.com^ 784 | ||ecmb.bdimg.com^ 785 | ||ecmc.bdimg.com^ 786 | ||eiv.baidu.cn^ 787 | ||eiv.baidu.com^ 788 | ||em.baidu.com^ 789 | ||ers.baidu.com^ 790 | ||fc-feed.cdn.bcebos.com^ 791 | ||fclick.baidu.com^ 792 | ||fexclick.baidu.com^ 793 | ||g.baidu.com^ 794 | ||gimg.baidu.com^ 795 | ||guanjia.baidu.com^ 796 | ||hc.baidu.cn^ 797 | ||hc.baidu.com^ 798 | ||hm.baidu.cn^ 799 | ||hm.baidu.com^ 800 | ||hmma.baidu.cn^ 801 | ||hmma.baidu.com^ 802 | ||hpd.baidu.cn^ 803 | ||hpd.baidu.com^ 804 | ||idm-su.baidu.com^ 805 | ||iebar.baidu.com^ 806 | ||ikcode.baidu.com^ 807 | ||imageplus.baidu.cn^ 808 | ||imageplus.baidu.com^ 809 | ||img.taotaosou.cn^ 810 | ||img01.taotaosou.cn^ 811 | ||itsdata.map.baidu.com^ 812 | ||j.br.baidu.com^ 813 | ||kstj.baidu.com^ 814 | ||log.music.baidu.com^ 815 | ||log.nuomi.com^ 816 | ||m1.baidu.com^ 817 | ||ma.baidu.cn^ 818 | ||ma.baidu.com^ 819 | ||mg09.zhaopin.com^ 820 | ||mipcache.bdstatic.com^ 821 | ||mobads-logs.baidu.cn^ 822 | ||mobads-logs.baidu.com^ 823 | ||mobads.baidu.cn^ 824 | ||mobads.baidu.com^ 825 | ||mpro.baidu.com^ 826 | ||mtj.baidu.cn^ 827 | ||mtj.baidu.com^ 828 | ||neirong.baidu.com^ 829 | ||nsclick.baidu.cn^ 830 | ||nsclick.baidu.com^ 831 | ||nsclickvideo.baidu.com^ 832 | ||openrcv.baidu.com^ 833 | ||pc.videoclick.baidu.com^ 834 | ||pos.baidu.com^ 835 | ||pups.baidu.cn^ 836 | ||pups.baidu.com^ 837 | ||pups.bdimg.com^ 838 | ||push.music.baidu.com^ 839 | ||push.zhanzhang.baidu.com^ 840 | ||qchannel0d.cn^ 841 | ||qianclick.baidu.com^ 842 | ||release.baidu.com^ 843 | ||res.limei.com^ 844 | ||res.mi.baidu.com^ 845 | ||rigel.baidustatic.com^ 846 | ||river.zhidao.baidu.com^ 847 | ||rj.baidu.cn^ 848 | ||rj.baidu.com^ 849 | ||rp.baidu.cn^ 850 | ||rp.baidu.com^ 851 | ||rplog.baidu.com^ 852 | ||s.baidu.com^ 853 | ||sclick.baidu.com^ 854 | ||sestat.baidu.com^ 855 | ||shadu.baidu.com^ 856 | ||share.baidu.com^ 857 | ||sobar.baidu.com^ 858 | ||sobartop.baidu.com^ 859 | ||spcode.baidu.cn^ 860 | ||spcode.baidu.com^ 861 | ||stat.v.baidu.com^ 862 | ||su.bdimg.com^ 863 | ||su.bdstatic.com^ 864 | ||tk.baidu.cn^ 865 | ||tk.baidu.com^ 866 | ||tkweb.baidu.com^ 867 | ||tob-cms.bj.bcebos.com^ 868 | ||toolbar.baidu.com^ 869 | ||tracker.baidu.com^ 870 | ||tuijian.baidu.com^ 871 | ||tuisong.baidu.cn^ 872 | ||tuisong.baidu.com^ 873 | ||ubmcmm.baidustatic.com^ 874 | ||ucstat.baidu.cn^ 875 | ||ucstat.baidu.com^ 876 | ||ulic.baidu.com^ 877 | ||ulog.imap.baidu.com^ 878 | ||union.baidu.cn^ 879 | ||union.baidu.com^ 880 | ||unionimage.baidu.com^ 881 | ||utility.baidu.cn^ 882 | ||utility.baidu.com^ 883 | ||utk.baidu.cn^ 884 | ||utk.baidu.com^ 885 | ||videopush.baidu.cn^ 886 | ||videopush.baidu.com^ 887 | ||vv84.bj.bcebos.com^ 888 | ||w.gdown.baidu.com^ 889 | ||w.x.baidu.com^ 890 | ||wangmeng.baidu.cn^ 891 | ||wangmeng.baidu.com^ 892 | ||weishi.baidu.com^ 893 | ||wenku-cms.bj.bcebos.com^ 894 | ||wisepush.video.baidu.com^ 895 | ||wm.baidu.cn^ 896 | ||wm.baidu.com^ 897 | ||znsv.baidu.cn^ 898 | ||znsv.baidu.com^ 899 | ||zz.bdstatic.com^ 900 | ||zzy1.quyaoya.com^ 901 | 902 | ! Book-app 起点 掌阅 书旗 宜搜 903 | ||ad.zhangyue.com^ 904 | ||adm.ps.easou.com^ 905 | ||aishowbger.com^ 906 | ||api.itaoxiaoshuo.com^ 907 | ||assets.ps.easou.com^ 908 | ||bbcoe.cn^ 909 | ||cj.qidian.com^ 910 | ||dkeyn.com^ 911 | ||drdwy.com^ 912 | ||e.aa985.cn^ 913 | ||e.v02u9.cn^ 914 | ||e701.net^ 915 | ||ehxyz.com^ 916 | ||ethod.gzgmjcx.com^ 917 | ||focuscat.com^ 918 | ||game.qidian.com^ 919 | ||hdswgc.com^ 920 | ||jyd.fjzdmy.com^ 921 | ||m.ourlj.com^ 922 | ||m.txtxr.com^ 923 | ||m.vsxet.com^ 924 | ||miam4.cn^ 925 | ||o.if.qidian.com^ 926 | ||p.vq6nsu.cn^ 927 | ||picture.duokan.com^ 928 | ||push.zhangyue.com^ 929 | ||pyerc.com^ 930 | ||s1.cmfu.com^ 931 | ||sc.shayugg.com^ 932 | ||sdk.cferw.com^ 933 | ||sezvc.com^ 934 | ||sys.zhangyue.com^ 935 | ||tjlog.ps.easou.com^ 936 | ||tongji.qidian.com^ 937 | ||ut2.shuqistat.com^ 938 | ||xgcsr.com^ 939 | ||xjq.jxmqkj.com^ 940 | ||xpe.cxaerp.com^ 941 | ||xtzxmy.com^ 942 | ||xyrkl.com^ 943 | ||zhuanfakong.com^ 944 | 945 | ! ByteDance 头条抖音 946 | ||ad.toutiao.com^ 947 | ||dsp.toutiao.com^ 948 | ||ic.snssdk.com^ 949 | ||log.snssdk.com^ 950 | ||nativeapp.toutiao.com^ 951 | ||pangolin-sdk-toutiao-b.com^ 952 | ||pangolin-sdk-toutiao.com^ 953 | ||pangolin.snssdk.com^ 954 | ||partner.toutiao.com^ 955 | ||pglstatp-toutiao.com^ 956 | ||sm.toutiao.com^ 957 | 958 | ! Dangdang 959 | ||a.dangdang.com^ 960 | ||click.dangdang.com^ 961 | ||schprompt.dangdang.com^ 962 | ||t.dangdang.com^ 963 | 964 | ! Duomi 965 | ||ad.duomi.com^ 966 | ||boxshows.com^ 967 | 968 | ! Facebook 969 | ||staticxx.facebook.com^ 970 | 971 | ! Fang 972 | ||click1n.soufun.com^ 973 | ||clickm.fang.com^ 974 | ||clickn.fang.com^ 975 | ||countpvn.light.fang.com^ 976 | ||countubn.light.soufun.com^ 977 | ||mshow.fang.com^ 978 | ||tongji.home.soufun.com^ 979 | 980 | ! Google 981 | ||admob.com^ 982 | ||ads.gmodules.com^ 983 | ||ads.google.com^ 984 | ||adservice.google.com^ 985 | ||afd.l.google.com^ 986 | ||badad.googleplex.com^ 987 | ||csi.gstatic.com^ 988 | ||doubleclick.com^ 989 | ||doubleclick.net^ 990 | ||google-analytics.com^ 991 | ||googleadservices.com^ 992 | ||googleadsserving.cn^ 993 | ||googlecommerce.com^ 994 | ||googlesyndication.com^ 995 | ||mobileads.google.com^ 996 | ||pagead-tpc.l.google.com^ 997 | ||pagead.google.com^ 998 | ||pagead.l.google.com^ 999 | ||service.urchin.com^ 1000 | 1001 | ! JD 1002 | ||ads.union.jd.com^ 1003 | ||c-nfa.jd.com^ 1004 | ||cps.360buy.com^ 1005 | ||img-x.jd.com^ 1006 | ||jrclick.jd.com^ 1007 | ||jzt.jd.com^ 1008 | ||policy.jd.com^ 1009 | ||stat.m.jd.com^ 1010 | 1011 | ! Kugou 1012 | ||ads.service.kugou.com^ 1013 | ||adsfile.bssdlbig.kugou.com^ 1014 | ||d.kugou.com^ 1015 | ||downmobile.kugou.com^ 1016 | ||gad.kugou.com^ 1017 | ||game.kugou.com^ 1018 | ||gamebox.kugou.com^ 1019 | ||gcapi.sy.kugou.com^ 1020 | ||gg.kugou.com^ 1021 | ||install.kugou.com^ 1022 | ||install2.kugou.com^ 1023 | ||kgmobilestat.kugou.com^ 1024 | ||kuaikaiapp.com^ 1025 | ||log.stat.kugou.com^ 1026 | ||log.web.kugou.com^ 1027 | ||minidcsc.kugou.com^ 1028 | ||mo.kugou.com^ 1029 | ||mobilelog.kugou.com^ 1030 | ||msg.mobile.kugou.com^ 1031 | ||mvads.kugou.com^ 1032 | ||p.kugou.com^ 1033 | ||push.mobile.kugou.com^ 1034 | ||rtmonitor.kugou.com^ 1035 | ||sdn.kugou.com^ 1036 | ||tj.kugou.com^ 1037 | ||update.mobile.kugou.com^ 1038 | 1039 | ! Kuwo 1040 | ||apk.shouji.koowo.com^ 1041 | ||deliver.kuwo.cn^ 1042 | ||g.koowo.com^ 1043 | ||g.kuwo.cn^ 1044 | ||kwmsg.kuwo.cn^ 1045 | ||log.kuwo.cn^ 1046 | ||mobilead.kuwo.cn^ 1047 | ||msclick2.kuwo.cn^ 1048 | ||msphoneclick.kuwo.cn^ 1049 | ||updatepage.kuwo.cn^ 1050 | ||wa.kuwo.cn^ 1051 | ||webstat.kuwo.cn^ 1052 | 1053 | ! Meizu flyme 魅族 1054 | ||aider-res.meizu.com^ 1055 | ||api-flow.meizu.com^ 1056 | ||api-game.meizu.com^ 1057 | ||api-push.meizu.com^ 1058 | ||aries.mzres.com^ 1059 | ||bro.flyme.cn^ 1060 | ||cal.meizu.com^ 1061 | ||ebook.meizu.com^ 1062 | ||ebook.res.meizu.com^ 1063 | ||game-res.meizu.com^ 1064 | ||game.res.meizu.com^ 1065 | ||infocenter.meizu.com^ 1066 | ||openapi-news.meizu.com^ 1067 | ||push.res.meizu.com^ 1068 | ||reader.meizu.com^ 1069 | ||reader.res.meizu.com^ 1070 | ||t-e.flyme.cn^ 1071 | ||t-flow.flyme.cn^ 1072 | ||tongji-res1.meizu.com^ 1073 | ||tongji.meizu.com^ 1074 | ||umid.orion.meizu.com^ 1075 | ||upush.res.meizu.com^ 1076 | ||uxip.meizu.com^ 1077 | 1078 | ! Meitu 1079 | ||a.koudai.com^ 1080 | ||adui.tg.meitu.com^ 1081 | ||corp.meitu.com^ 1082 | ||dc.meitustat.com^ 1083 | ||gg.meitu.com^ 1084 | ||mdc.meitustat.com^ 1085 | ||meitubeauty.meitudata.com^ 1086 | ||message.meitu.com^ 1087 | ||rabbit.meitustat.com^ 1088 | ||rabbit.tg.meitu.com^ 1089 | ||tuiguang.meitu.com^ 1090 | ||xiuxiu.android.dl.meitu.com^ 1091 | ||xiuxiu.mobile.meitudata.com^ 1092 | 1093 | ! Miui 小米 1094 | ||a.market.xiaomi.com^ 1095 | ||ad.xiaomi.com^ 1096 | ||ad1.xiaomi.com^ 1097 | ||adv.sec.intl.miui.com^ 1098 | ||adv.sec.miui.com^ 1099 | ||bss.pandora.xiaomi.com^ 1100 | ||d.g.mi.com^ 1101 | ||data.mistat.xiaomi.com^ 1102 | ||de.pandora.xiaomi.com^ 1103 | ||dvb.pandora.xiaomi.com^ 1104 | ||jellyfish.pandora.xiaomi.com^ 1105 | ||migc.g.mi.com^ 1106 | ||migcreport.g.mi.com^ 1107 | ||notice.game.xiaomi.com^ 1108 | ||ppurifier.game.xiaomi.com^ 1109 | ||r.browser.miui.com^ 1110 | ||security.browser.miui.com^ 1111 | ||shenghuo.xiaomi.com^ 1112 | ||stat.pandora.xiaomi.com^ 1113 | ||union.mi.com^ 1114 | ||wtradv.market.xiaomi.com^ 1115 | 1116 | ! Moji 1117 | ||ad.api.moji.com^ 1118 | ||app.moji001.com^ 1119 | ||cdn.moji002.com^ 1120 | ||cdn2.moji002.com^ 1121 | ||fds.api.moji.com^ 1122 | ||log.moji.com^ 1123 | ||stat.moji.com^ 1124 | ||ugc.moji001.com^ 1125 | 1126 | ! Qingting.fm 1127 | ||ad.qingting.fm^ 1128 | ||admgr.qingting.fm^ 1129 | ||dload.qd.qingting.fm^ 1130 | ||logger.qingting.fm^ 1131 | ||s.qd.qingting.fm^ 1132 | ||s.qd.qingtingfm.com^ 1133 | 1134 | ! QQ 1135 | 1136 | ||adsmind.apdcdn.tc.qq.com^ 1137 | ||adsmind.gdtimg.com^ 1138 | ||adsmind.tc.qq.com^ 1139 | ||pgdt.gtimg.cn^ 1140 | ||pgdt.gtimg.com^ 1141 | ||pgdt.ugdtimg.com^ 1142 | ||splashqqlive.gtimg.com^ 1143 | ||wa.gtimg.com^ 1144 | ||wxsnsdy.wxs.qq.com^ 1145 | ||wxsnsdythumb.wxs.qq.com^ 1146 | ||act.qq.com^ 1147 | ||ad.qun.qq.com^ 1148 | ||adsfile.qq.com^ 1149 | ||bugly.qq.com^ 1150 | ||buluo.qq.com^ 1151 | ||e.qq.com^ 1152 | ||gdt.qq.com^ 1153 | ||l.qq.com^ 1154 | ||monitor.qq.com^ 1155 | ||pingma.qq.com^ 1156 | ||pingtcss.qq.com^ 1157 | ||report.qq.com^ 1158 | ||tajs.qq.com^ 1159 | ||tcss.qq.com^ 1160 | ||uu.qq.com^ 1161 | 1162 | ! RenRen 1163 | ||ebp.renren.com^ 1164 | ||jebe.renren.com^ 1165 | ||jebe.xnimg.cn^ 1166 | 1167 | ! Sina 1168 | ||ad.sina.com.cn^ 1169 | ||adbox.sina.com.cn^ 1170 | ||add.sina.com.cn^ 1171 | ||adimg.mobile.sina.cn^ 1172 | ||adm.sina.com.cn^ 1173 | ||alitui.weibo.com.cn^ 1174 | ||biz.weibo.com.cn^ 1175 | ||cre.dp.sina.cn^ 1176 | ||dcads.sina.com.cn^ 1177 | ||dd.sina.com.cn^ 1178 | ||dmp.sina.com.cn^ 1179 | ||game.weibo.com.cn^ 1180 | ||gw5.push.mcp.weibo.cn^ 1181 | ||leju.sina.com.cn^ 1182 | ||log.mix.sina.com.cn^ 1183 | ||mobileads.dx.cn^ 1184 | ||newspush.sinajs.cn^ 1185 | ||pay.mobile.sina.cn^ 1186 | ||sax.mobile.sina.cn^ 1187 | ||sax.sina.com.cn^ 1188 | ||saxd.sina.com.cn^ 1189 | ||sdkapp.mobile.sina.cn^ 1190 | ||sdkapp.uve.weibo.com^ 1191 | ||sdkclick.mobile.sina.cn^ 1192 | ||slog.sina.com.cn^ 1193 | ||trends.mobile.sina.cn^ 1194 | ||tui.weibo.com^ 1195 | ||u1.img.mobile.sina.cn^ 1196 | ||wax.weibo.com.cn^ 1197 | ||wbapp.mobile.sina.cn^ 1198 | ||wbapp.uve.weibo.com^ 1199 | ||wbclick.mobile.sina.cn^ 1200 | ||wbpctips.mobile.sina.cn^ 1201 | ||zymo.mps.weibo.com^ 1202 | 1203 | ! Sougou 1204 | ||123.sogou.com^ 1205 | ||123.sogoucdn.com^ 1206 | ||adsence.sogou.com^ 1207 | ||amfi.gou.sogou.com^ 1208 | ||brand.sogou.com^ 1209 | ||cpc.sogou.com^ 1210 | ||epro.sogou.com^ 1211 | ||fair.sogou.com^ 1212 | ||files2.sogou.com^ 1213 | ||galaxy.sogoucdn.com^ 1214 | ||golden1.sogou.com^ 1215 | ||goto.sogou.com^ 1216 | ||inte.sogou.com^ 1217 | ||iwan.sogou.com^ 1218 | ||lu.sogou.com^ 1219 | ||lu.sogoucdn.com^ 1220 | ||pb.sogou.com^ 1221 | ||pd.sogou.com^ 1222 | ||pv.sogou.com^ 1223 | ||theta.sogou.com^ 1224 | ||wan.sogou.com^ 1225 | ||wangmeng.sogou.com^ 1226 | 1227 | ! Teleplus 1228 | ||applovin.com^ 1229 | ||guangzhuiyuan.com^ 1230 | 1231 | ! Twitter 1232 | ||ads-twitter.com^ 1233 | ||ads.twitter.com^ 1234 | ||analytics.twitter.com^ 1235 | ||p.twitter.com^ 1236 | ||scribe.twitter.com^ 1237 | ||syndication-o.twitter.com^ 1238 | ||syndication.twitter.com^ 1239 | ||tellapart.com^ 1240 | ||urls.api.twitter.com^ 1241 | 1242 | ! UC ali 1243 | ||adslot.uc.cn^ 1244 | ||api.mp.uc.cn^ 1245 | ||applog.uc.cn^ 1246 | ||client.video.ucweb.com^ 1247 | ||cms.ucweb.com^ 1248 | ||dispatcher.upmc.uc.cn^ 1249 | ||huichuan.sm.cn^ 1250 | ||log.cs.pp.cn^ 1251 | ||m.uczzd.cn^ 1252 | ||patriot.cs.pp.cn^ 1253 | ||puds.ucweb.com^ 1254 | ||server.m.pp.cn^ 1255 | ||track.uc.cn^ 1256 | ||u.uc123.com^ 1257 | ||u.ucfly.com^ 1258 | ||uc.ucweb.com^ 1259 | ||ucsec.ucweb.com^ 1260 | ||ucsec1.ucweb.com^ 1261 | 1262 | ! Weifeng 1263 | ||aoodoo.feng.com^ 1264 | ||fengbuy.com^ 1265 | ||push.feng.com^ 1266 | ||we.tm^ 1267 | ||yes1.feng.com^ 1268 | 1269 | ! WPS Office 1270 | ||ad.docer.wps.cn^ 1271 | ||adm.zookingsoft.com^ 1272 | ||bannera.kingsoft-office-service.com^ 1273 | ||bole.shangshufang.ksosoft.com^ 1274 | ||counter.kingsoft.com^ 1275 | ||docerad.wps.cn^ 1276 | ||gou.wps.cn^ 1277 | ||hoplink.ksosoft.com^ 1278 | ||ic.ksosoft.com^ 1279 | ||img.gou.wpscdn.cn^ 1280 | ||info.wps.cn^ 1281 | ||ios-informationplatform.wps.cn^ 1282 | ||minfo.wps.cn^ 1283 | ||mo.res.wpscdn.cn^ 1284 | ||news.docer.com^ 1285 | ||notify.wps.cn^ 1286 | ||pc.uf.ksosoft.com^ 1287 | ||pcfg.wps.cn^ 1288 | ||pixiu.shangshufang.ksosoft.com^ 1289 | ||push.wps.cn^ 1290 | ||rating6.kingsoft-office-service.com^ 1291 | ||up.wps.kingsoft.com^ 1292 | ||wpsweb-dc.wps.cn^ 1293 | 1294 | ! Wi-Fi key 1295 | ||c.51y5.net^ 1296 | ||cdsget.51y5.net^ 1297 | ||news-imgpb.51y5.net^ 1298 | ||wifiapidd.51y5.net^ 1299 | ||wkanc.51y5.net^ 1300 | 1301 | ! Ximalaya 喜马拉雅 1302 | ||adse.ximalaya.com^ 1303 | ||linkeye.ximalaya.com^ 1304 | ||location.ximalaya.com^ 1305 | ||xdcs-collector.ximalaya.com^ 1306 | 1307 | ! Xunlei 迅雷app&看看 1308 | ||biz5.kankan.com^ 1309 | ||float.kankan.com^ 1310 | ||hub5btmain.sandai.net^ 1311 | ||hub5emu.sandai.net^ 1312 | ||logic.cpm.cm.kankan.com^ 1313 | ||upgrade.xl9.xunlei.com^ 1314 | 1315 | ! Yahoo 1316 | ||ad.wretch.cc^ 1317 | ||ads.yahoo.com^ 1318 | ||adserver.yahoo.com^ 1319 | ||adss.yahoo.com^ 1320 | ||analytics.query.yahoo.com^ 1321 | ||analytics.yahoo.com^ 1322 | ||ane.yahoo.co.jp^ 1323 | ||ard.yahoo.co.jp^ 1324 | ||beap-bc.yahoo.com^ 1325 | ||clicks.beap.bc.yahoo.com^ 1326 | ||comet.yahoo.com^ 1327 | ||doubleplay-conf-yql.media.yahoo.com^ 1328 | ||flurry.com^ 1329 | ||gemini.yahoo.com^ 1330 | ||geo.yahoo.com^ 1331 | ||js-apac-ss.ysm.yahoo.com^ 1332 | ||locdrop.query.yahoo.com^ 1333 | ||onepush.query.yahoo.com^ 1334 | ||p3p.yahoo.com^ 1335 | ||partnerads.ysm.yahoo.com^ 1336 | ||ws.progrss.yahoo.com^ 1337 | ||yads.yahoo.co.jp^ 1338 | ||ybp.yahoo.com^ 1339 | 1340 | 1341 | ! Ads in Video apps 下面都是 ******************** 1342 | 1343 | ! 6间房 1344 | ||shrek.6.cn^ 1345 | ||simba.6.cn^ 1346 | ||union.6.cn^ 1347 | 1348 | ! Baofeng 暴风影音 1349 | ||logger.baofeng.com^ 1350 | ||xs.houyi.baofeng.net^ 1351 | 1352 | ! Douyu 1353 | ||dotcounter.douyutv.com^ 1354 | 1355 | ! Fenghuang 凤凰TV 1356 | ||api.newad.ifeng.com^ 1357 | ||exp.3g.ifeng.com^ 1358 | ||game.ifeng.com^ 1359 | ||iis3g.deliver.ifeng.com^ 1360 | ||mfp.deliver.ifeng.com^ 1361 | ||stadig.ifeng.com^ 1362 | 1363 | ! Funshion 风行 1364 | ||adm.funshion.com^ 1365 | ||jobsfe.funshion.com^ 1366 | ||po.funshion.com^ 1367 | ||pub.funshion.com^ 1368 | ||pv.funshion.com^ 1369 | ||stat.funshion.com^ 1370 | 1371 | ! iqiyi PPS 爱奇艺 1372 | ||ad.m.iqiyi.com^ 1373 | ||afp.iqiyi.com^ 1374 | ||c.uaa.iqiyi.com^ 1375 | ||cloudpush.iqiyi.com^ 1376 | ||cm.passport.iqiyi.com^ 1377 | ||emoticon.sns.iqiyi.com^ 1378 | ||gamecenter.iqiyi.com^ 1379 | ||ifacelog.iqiyi.com^ 1380 | ||mbdlog.iqiyi.com^ 1381 | ||meta.video.qiyi.com^ 1382 | ||msg.71.am^ 1383 | ||msg1.video.qiyi.com^ 1384 | ||msg2.video.qiyi.com^ 1385 | ||paopao.iqiyi.com^ 1386 | ||paopaod.qiyipic.com^ 1387 | ||policy.video.iqiyi.com^ 1388 | ||yuedu.iqiyi.com^ 1389 | 1390 | ! Ku6 酷6 1391 | ||gug.ku6cdn.com^ 1392 | ||pq.stat.ku6.com^ 1393 | ||st.vq.ku6.cn^ 1394 | ||static.ku6.com^ 1395 | 1396 | ! LeTV 乐视 1397 | ||1.letvlive.com^ 1398 | ||2.letvlive.com^ 1399 | ||ark.letv.com^ 1400 | ||dc.letv.com^ 1401 | ||fz.letv.com^ 1402 | ||g3.letv.com^ 1403 | ||game.letvstore.com^ 1404 | ||i0.letvimg.com^ 1405 | ||i3.letvimg.com^ 1406 | ||minisite.letv.com^ 1407 | ||n.mark.letv.com^ 1408 | ||pro.hoye.letv.com^ 1409 | ||pro.letv.com^ 1410 | ||stat.letv.com^ 1411 | ||static.app.m.letv.com^ 1412 | 1413 | ! MGTV 芒果TV 1414 | ||click.hunantv.com^ 1415 | ||da.hunantv.com^ 1416 | ||da.mgtv.com^ 1417 | ||log.hunantv.com^ 1418 | ||log.v2.hunantv.com^ 1419 | ||p2.hunantv.com^ 1420 | ||res.hunantv.com^ 1421 | 1422 | ! Sohu 搜狐 1423 | ||888.tv.sohu.com^ 1424 | ||adnet.sohu.com^ 1425 | ||ads.sohu.com^ 1426 | ||aty.hd.sohu.com^ 1427 | ||aty.sohu.com^ 1428 | ||bd.hd.sohu.com^ 1429 | ||click.hd.sohu.com^ 1430 | ||click2.hd.sohu.com^ 1431 | ||ctr.hd.sohu.com^ 1432 | ||epro.sogou.com^ 1433 | ||epro.sohu.com^ 1434 | ||go.sohu.com^ 1435 | ||golden1.sogou.com^ 1436 | ||golden1.sohu.com^ 1437 | ||hui.sohu.com^ 1438 | ||inte.sogou.com^ 1439 | ||inte.sogoucdn.com^ 1440 | ||inte.sohu.com^ 1441 | ||lm.tv.sohu.com^ 1442 | ||lu.sogoucdn.com^ 1443 | ||pb.hd.sohu.com^ 1444 | ||push.tv.sohu.com^ 1445 | ||pv.hd.sohu.com^ 1446 | ||pv.sogou.com^ 1447 | ||pv.sohu.com^ 1448 | ||theta.sogoucdn.com^ 1449 | ||um.hd.sohu.com^ 1450 | ||uranus.sogou.com^ 1451 | ||uranus.sohu.com^ 1452 | ||wan.sohu.com^ 1453 | ||wl.hd.sohu.com^ 1454 | ||yule.sohu.com^ 1455 | 1456 | ! PPTV、PPLive 1457 | ||afp.pplive.com^ 1458 | ||app.aplus.pptv.com^ 1459 | ||as.aplus.pptv.com^ 1460 | ||asimgs.pplive.cn^ 1461 | ||de.as.pptv.com^ 1462 | ||jp.as.pptv.com^ 1463 | ||pp2.pptv.com^ 1464 | ||stat.pptv.com^ 1465 | 1466 | ! QQ Live 1467 | ||btrace.video.qq.com^ 1468 | ||c.l.qq.com^ 1469 | ||dp3.qq.com^ 1470 | ||livep.l.qq.com^ 1471 | ||lives.l.qq.com^ 1472 | ||livew.l.qq.com^ 1473 | ||mcgi.v.qq.com^ 1474 | ||mdevstat.qqlive.qq.com^ 1475 | ||omgmta1.qq.com^ 1476 | ||p.l.qq.com^ 1477 | ||rcgi.video.qq.com^ 1478 | ||t.l.qq.com^ 1479 | ||u.l.qq.com^ 1480 | 1481 | ! Youku & Tudou 1482 | ||a-dxk.play.api.3g.youku.com^ 1483 | ||actives.youku.com^ 1484 | ||ad.api.3g.tudou.com^ 1485 | ||ad.api.3g.youku.com^ 1486 | ||ad.api.mobile.youku.com^ 1487 | ||ad.mobile.youku.com^ 1488 | ||adcontrol.tudou.com^ 1489 | ||adplay.tudou.com^ 1490 | ||b.smartvideo.youku.com^ 1491 | ||c.yes.youku.com^ 1492 | ||dev-push.m.youku.com^ 1493 | ||dl.g.youku.com^ 1494 | ||dmapp.youku.com^ 1495 | ||e.stat.ykimg.com^ 1496 | ||gamex.mobile.youku.com^ 1497 | ||goods.tudou.com^ 1498 | ||hudong.pl.youku.com^ 1499 | ||hz.youku.com^ 1500 | ||iwstat.tudou.com^ 1501 | ||iyes.youku.com^ 1502 | ||l.ykimg.com^ 1503 | ||l.youku.com^ 1504 | ||lstat.youku.com^ 1505 | ||lvip.youku.com^ 1506 | ||mobilemsg.youku.com^ 1507 | ||msg.youku.com^ 1508 | ||myes.youku.com^ 1509 | ||nstat.tudou.com^ 1510 | ||p-log.ykimg.com^ 1511 | ||p.l.ykimg.com^ 1512 | ||p.l.youku.com^ 1513 | ||passport-log.youku.com^ 1514 | ||push.m.youku.com^ 1515 | ||r.l.youku.com^ 1516 | ||s.p.youku.com^ 1517 | ||sdk.m.youku.com^ 1518 | ||stat.tudou.com^ 1519 | ||stat.youku.com^ 1520 | ||stats.tudou.com^ 1521 | ||store.tv.api.3g.youku.com^ 1522 | ||store.xl.api.3g.youku.com^ 1523 | ||tdrec.youku.com^ 1524 | ||test.ott.youku.com^ 1525 | ||v.l.youku.com^ 1526 | ||val.api.youku.com^ 1527 | ||wan.youku.com^ 1528 | ||ykatr.youku.com^ 1529 | ||ykrec.youku.com^ 1530 | ||ykrectab.youku.com^ 1531 | 1532 | ! Youtube 1533 | ||azabu-u.ac.jp^ 1534 | ||couchcoaster.jp^ 1535 | ||delivery.dmkt-sp.jp^ 1536 | ||ehg-youtube.hitbox.com^ 1537 | ||nichibenren.or.jp^ 1538 | ||nicorette.co.kr^ 1539 | ||ssl-youtube.2cnt.net^ 1540 | ||youtube.112.2o7.net^ 1541 | ||youtube.2cnt.net^ 1542 | 1543 | ! Others ads in Video apps 1544 | ||acsystem.wasu.tv^ 1545 | ||ads.wasu.tv^ 1546 | ||afp.wasu.tv^ 1547 | ||c.algovid.com^ 1548 | ||gg.jtertp.com^ 1549 | ||gridsum-vd.cntv.cn^ 1550 | ||kwflvcdn.000dn.com^ 1551 | ||logstat.t.sfht.com^ 1552 | ||match.rtbidder.net^ 1553 | ||n-st.vip.com^ 1554 | ||pop.uusee.com^ 1555 | ||static.duoshuo.com^ 1556 | ||t.cr-nielsen.com^ 1557 | ||terren.cntv.cn^ 1558 | 1559 | ! 1560 | ! 1561 | !--- 1562 | ! 1563 | ! Website Ads 1564 | ||1.win7china.com^ 1565 | ||168.it168.com^ 1566 | ||2.win7china.com^ 1567 | ||801.tianya.cn^ 1568 | ||801.tianyaui.cn^ 1569 | ||803.tianya.cn^ 1570 | ||803.tianyaui.cn^ 1571 | ||806.tianya.cn^ 1572 | ||806.tianyaui.cn^ 1573 | ||808.tianya.cn^ 1574 | ||808.tianyaui.cn^ 1575 | ||92x.tumblr.com^ 1576 | ||a1.itc.cn^ 1577 | ||ad-channel.wikawika.xyz^ 1578 | ||ad-display.wikawika.xyz^ 1579 | ||ad.12306.cn^ 1580 | ||ad.3.cn^ 1581 | ||ad.95306.cn^ 1582 | ||ad.caiyunapp.com^ 1583 | ||ad.cctv.com^ 1584 | ||ad.cmvideo.cn^ 1585 | ||ad.csdn.net^ 1586 | ||ad.ganji.com^ 1587 | ||ad.house365.com^ 1588 | ||ad.thepaper.cn^ 1589 | ||ad.unimhk.com^ 1590 | ||adadmin.house365.com^ 1591 | ||adhome.1fangchan.com^ 1592 | ||adm.10jqka.com.cn^ 1593 | ||ads.csdn.net^ 1594 | ||ads.feedly.com^ 1595 | ||ads.genieessp.com^ 1596 | ||ads.house365.com^ 1597 | ||ads.linkedin.com^ 1598 | ||adshownew.it168.com^ 1599 | ||adv.ccb.com^ 1600 | ||advert.api.thejoyrun.com^ 1601 | ||analytics.ganji.com^ 1602 | ||api-deal.kechenggezi.com^ 1603 | ||api-z.weidian.com^ 1604 | ||app-monitor.ele.me^ 1605 | ||bat.bing.com^ 1606 | ||bd1.52che.com^ 1607 | ||bd2.52che.com^ 1608 | ||bdj.tianya.cn^ 1609 | ||bdj.tianyaui.cn^ 1610 | ||beacon.tingyun.com^ 1611 | ||cdn.jiuzhilan.com^ 1612 | ||click.cheshi-img.com^ 1613 | ||click.cheshi.com^ 1614 | ||click.ganji.com^ 1615 | ||click.tianya.cn^ 1616 | ||click.tianyaui.cn^ 1617 | ||client-api.ele.me^ 1618 | ||collector.githubapp.com^ 1619 | ||counter.csdn.net^ 1620 | ||d0.xcar.com.cn^ 1621 | ||de.soquair.com^ 1622 | ||dol.tianya.cn^ 1623 | ||dol.tianyaui.cn^ 1624 | ||dw.xcar.com.cn^ 1625 | ||e.nexac.com^ 1626 | ||eq.10jqka.com.cn^ 1627 | ||exp.17wo.cn^ 1628 | ||game.51yund.com^ 1629 | ||ganjituiguang.ganji.com^ 1630 | ||grand.ele.me^ 1631 | ||hosting.miarroba.info^ 1632 | ||iadsdk.apple.com^ 1633 | ||image.gentags.com^ 1634 | ||its-dori.tumblr.com^ 1635 | ||log.outbrain.com^ 1636 | ||m.12306media.com^ 1637 | ||media.cheshi-img.com^ 1638 | ||media.cheshi.com^ 1639 | ||mobile-pubt.ele.me^ 1640 | ||mobileads.msn.com^ 1641 | ||n.cosbot.cn^ 1642 | ||newton-api.ele.me^ 1643 | ||ozone.10jqka.com.cn^ 1644 | ||pdl.gionee.com^ 1645 | ||pica-juicy.picacomic.com^ 1646 | ||pixel.wp.com^ 1647 | ||pub.mop.com^ 1648 | ||push.wandoujia.com^ 1649 | ||pv.cheshi-img.com^ 1650 | ||pv.cheshi.com^ 1651 | ||pv.xcar.com.cn^ 1652 | ||qdp.qidian.com^ 1653 | ||res.gwifi.com.cn^ 1654 | ||ssp.kssws.ks-cdn.com^ 1655 | ||sta.ganji.com^ 1656 | ||stat.10jqka.com.cn^ 1657 | ||stat.it168.com^ 1658 | ||stats.chinaz.com^ 1659 | ||stats.developingperspective.com^ 1660 | ||track.hujiang.com^ 1661 | ||tracker.yhd.com^ 1662 | ||tralog.ganji.com^ 1663 | ||up.qingdaonews.com^ 1664 | ||vaserviece.10jqka.com.cn^ 1665 | ! Pcdn BlockList by MkQtS and tianming25 1666 | ! PCDN domains 1667 | ||ali-p2p*pull*com^ 1668 | ||ali-p2p-v2.pull.yximgs.com^ 1669 | ||ali-p2p.pull.yximgs.com^ 1670 | ||bsccdn.net^ 1671 | ||dyp2p-ali.douyucdn.cn^ 1672 | ||dyp2p-hw.douyucdn.cn^ 1673 | ||fileserverpcdn.cdn.huya.com^ 1674 | ||hw-p2p*pull*com^ 1675 | ||hw-p2p-pull.live-voip.com^ 1676 | ||hw-p2p-pull.video-voip.com^ 1677 | ||hw-p2p-v2.pull.yximgs.com^ 1678 | ||hw-p2p.pull.yximgs.com^ 1679 | ||ks-p2p*pull*com^ 1680 | ||ks-p2p-v2.pull.yximgs.com^ 1681 | ||ks-p2p.pull.yximgs.com^ 1682 | ||kuiniuca.com^ 1683 | ||livewebbs2pcdn.msstatic.com^ 1684 | ||mcdn.bilivideo.cn^ 1685 | ||mcdn.bilivideo.com^ 1686 | ||onethingpcs.com^ 1687 | ||p2p-ali.douyucdn.cn^ 1688 | ||p2p.huya.com^ 1689 | ||p2p.qq.com^ 1690 | ||p2pchunk-hw.douyucdn.cn^ 1691 | ||p2pchunk-table.douyucdn.cn^ 1692 | ||p2pchunk-ws.douyucdn.cn^ 1693 | ||p2perrorlog.douyucdn.cn^ 1694 | ||p2plive-ali.douyucdn.cn^ 1695 | ||p2plive-ws.douyucdn.cn^ 1696 | ||p2plog.douyucdn.cn^ 1697 | ||p2ptun.qq.com^ 1698 | ||p2pup*.gamedl.qq.com^ 1699 | ||p2pupdate.gamedl.qq.com^ 1700 | ||p2pupgrade.gamedl.qq.com^ 1701 | ||p2pvod-ws.douyucdn.cn^ 1702 | ||pcdn.yximgs.com^ 1703 | ||pkoplink.com^ 1704 | ||pp-cdnfile1pcdn.msstatic.com^ 1705 | ||qn-*pcdn.cdn.huya.com^ 1706 | ||qn-*pcdn.cdn.msstatic.com^ 1707 | ||qn-cdnfile1pcdn.msstatic.com^ 1708 | ||qn-fileserverpcdn.cdn.huya.com^ 1709 | ||qn-hydlpcdn.cdn.huya.com^ 1710 | ||qn-livewebbs2pcdn.msstatic.com^ 1711 | ||saxysec.com^ 1712 | ||stun.douyucdn.cn^ 1713 | ||stun.hitv.com^ 1714 | ||stun1.douyucdn.cn^ 1715 | ||szbdyd.com^ 1716 | ||tp2p.kg.qq.com^ 1717 | ||ts-p2p*pull*com^ 1718 | ||tx-p2p-pull.live-voip.com^ 1719 | ||tx-p2p-pull.video-voip.com^ 1720 | ||tx-p2p-v2.pull.yximgs.com^ 1721 | ||tx-p2p.pull.yximgs.com^ 1722 | ||uhabo.com^ 1723 | ||ws-p2p*pull*com^ 1724 | ||ws-p2p-pull.live-voip.com^ 1725 | ||ws-p2p-pull.video-voip.com^ 1726 | ||ws-p2p-v2.pull.yximgs.com^ 1727 | ||ws-p2p.pull.yximgs.com^ 1728 | ||xy-*pcdn.msstatic.com^ 1729 | ||xy-cdnfile1pcdn.msstatic.com^ 1730 | ||xy-fileserverpcdn.cdn.huya.com^ 1731 | ||xy-livewebbs2pcdn.msstatic.com^ 1732 | ||xycdn.com^ 1733 | 1734 | ! HTTPDNS by MkQtS 1735 | ||apidns.kwd.inkuai.com^ 1736 | ||doh.dns.apple.com^ 1737 | ||doh.iqiyi.com^ 1738 | ||doh.ptqy.gitv.tv^ 1739 | ||dotserver.douyucdn.cn^ 1740 | ||dns.jd.com^ 1741 | ||dns.qiyipic.iqiyi.com^ 1742 | ||dns.weibo.cn^ 1743 | ||dns.weixin.qq.com^ 1744 | ||dns.weixin.qq.com.cn^ 1745 | ||hdns.ksyun.com^ 1746 | ||httpdns-api.aliyuncs.com^ 1747 | ||httpdns-browser.platform.dbankcloud.cn^ 1748 | ||httpdns-sc.aliyuncs.com^ 1749 | ||httpdns-sdk.n.netease.com^ 1750 | ||httpdns.alicdn.com^ 1751 | ||httpdns.baidu.com^ 1752 | ||httpdns.baidubce.com^ 1753 | ||httpdns.bcelive.com^ 1754 | ||httpdns.bilivideo.com^ 1755 | ||httpdns.browser.miui.com^ 1756 | ||httpdns.c.cdnhwc2.com^ 1757 | ||httpdns.cctv.com^ 1758 | ||httpdns.danuoyi.tbcache.com^ 1759 | ||httpdns.gslb.yy.com^ 1760 | ||httpdns.huaweicloud.com^ 1761 | ||httpdns.kg.qq.com^ 1762 | ||httpdns.kwd.inkuai.com^ 1763 | ||httpdns.meituan.com^ 1764 | ||httpdns.music.163.com^ 1765 | ||httpdns.n.netease.com^ 1766 | ||httpdns.n.shifen.com^ 1767 | ||httpdns.ocloud.heytapmobi.com^ 1768 | ||httpdns.ocloud.oppomobile.com^ 1769 | ||httpdns.platform.dbankcloud.cn^ 1770 | ||httpdns.platform.dbankcloud.com^ 1771 | ||httpdns.pro^ 1772 | ||httpdns.push.oppomobile.com^ 1773 | ||httpdns.volcengineapi.com^ 1774 | ||httpdns.yunxindns.com^ 1775 | ||httpdns.zybang.com^ 1776 | ||httpdns1.cc.cdnhwc5.com^ 1777 | ||httpsdns.baidu.com^ 1778 | ||kuaishou.httpdns.pro^ 1779 | ||lofter.httpdns.c.163.com^ 1780 | ||music.httpdns.c.163.com^ 1781 | -------------------------------------------------------------------------------- /mod/rules/first-dns-rules.txt: -------------------------------------------------------------------------------- 1 | /^admarvel\./ 2 | /^admaster\./ 3 | /^adsage\./ 4 | /^adsensor\./ 5 | /^adservice\./ 6 | /^adsmogo\./ 7 | /^adsrvmedia\./ 8 | /^adsserving\./ 9 | /^adsystem\./ 10 | /^adwords\./ 11 | /^applovin\./ 12 | /^appsflyer\./ 13 | /^domob\./ 14 | /^duomeng\./ 15 | /^dwtrack\./ 16 | /^guanggao\./ 17 | /^omgmta\./ 18 | /^omgmtaw\./ 19 | /^omniture\./ 20 | /^openx\./ 21 | /^partnerad\./ 22 | /^pingfore\./ 23 | /^socdm\./ 24 | /^supersonicads\./ 25 | /^wlmonitor\./ 26 | /^zjtoolbar\./ 27 | /^.+stat\.kugou\.com/ 28 | -------------------------------------------------------------------------------- /mod/title/adblock-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdRules AdBlock List 3 | ! Homepage: https://github.com/Cats-Team/AdRules 4 | ! Powerd by Cats-Team 5 | ! Expires: 1 day (update frequency) 6 | ! Description: Merge from EasyList,EasyListChina etc. and Add Some Rules. 7 | ! -------------------------------------------------------------------------------- /mod/title/adblock_lite-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdRules AdBlock List Lite 3 | ! Homepage: https://github.com/Cats-Team/AdRules 4 | ! Powerd by Cats-Team 5 | ! Expires: 1 day (update frequency) 6 | ! Description: AdRules AdBlock List's Lite Version, And Remove Some Filters 7 | ! -------------------------------------------------------------------------------- /mod/title/adblock_plus-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdRules AdBlock List Plus 3 | ! Homepage: https://github.com/Cats-Team/AdRules 4 | ! Powerd by Cats-Team 5 | ! Expires: 1 day (update frequency) 6 | ! Description: AdRules AdBlock List's Plus Verison, And Add Some Filters 7 | ! -------------------------------------------------------------------------------- /mod/title/dns-title.txt: -------------------------------------------------------------------------------- 1 | [Adblock Plus 2.0] 2 | ! Title: AdRules DNS List 3 | ! Homepage: https://github.com/Cats-Team/AdRules 4 | ! Powerd by Cats-Team 5 | ! Expires: 1 (update frequency) 6 | ! Description: The DNS Filters 7 | -------------------------------------------------------------------------------- /script/allowlist.txt: -------------------------------------------------------------------------------- 1 | #!-白名单-!# 2 | 3 | #! Apple 白名单 Start !# 4 | #苹果商店 5 | xp.apple.com 6 | #苹果音乐 7 | securemetrics.apple.com 8 | #苹果小游戏 9 | stats.gc.apple.com 10 | #苹果图标 11 | is[0-9]\-ssl.mzstatic.com 12 | #! Apple 白名单 End !# 13 | 14 | #! 网易 白名单 Start !# 15 | #光遇 16 | fp-upload.dun.163.com 17 | #网易严选商家后台 #140 18 | dl.reg.163.com 19 | #网易云音乐-直播 20 | api.iplay.163.com 21 | #! 网易 白名单 End !# 22 | 23 | #! 百度 白名单 Start !# 24 | #手机web百度跳转 25 | boxer.baidu.com 26 | #百度盘p2p 27 | bcsp2p.baidu.com 28 | #百度地图 #201 29 | newvector.map.baidu.com 30 | #额外 31 | sv.map.baidu.com 32 | #百度贴吧签到 33 | als.baidu.com 34 | #贴吧网页版表情 #146 35 | gsp0.baidu.com 36 | #成都 地震预警 37 | newloc.map.n.shifen.com 38 | #爱奇艺VIP活动 39 | act.vip.iqiyi.com 40 | #投屏 41 | cupid.iqiyi.com 42 | #! 百度 白名单 End !# 43 | 44 | #! Microsoft 白名单 Start !# 45 | #win天气 #202 46 | api.msn.com 47 | #skype #199 #188 48 | events.data.microsoft.com 49 | mobile.pipe.aria.microsoft.com 50 | browser.pipe.aria.microsoft.com 51 | c1.skype.com 52 | c.bing.com 53 | #edge and windows 54 | ntp.msn.cn 55 | ntp.msn.com 56 | assets.msn.cn 57 | #Microsoft游戏纸牌 58 | solitaireevents.microsoftcasualgames.com 59 | #! Microsoft 白名单 End !# 60 | 61 | #! 小米 白名单 Start !# 62 | # 小米 隐私条款撤回 #195 63 | data.sec.miui.com 64 | #MIUI校正流量 65 | api.sec.miui.com 66 | # 小米社区 67 | api.vip.miui.com 68 | #mipush 69 | chat.xiaomi.net 70 | register.xmpush.xiaomi.com 71 | cn.app.chat.xiaomi.net 72 | resolver.msg.xiaomi.net 73 | #小米天气 74 | wtradv.market.xiaomi.com 75 | #应用商店 76 | f8.market.xiaomi.com 77 | #! 小米 白名单 End !# 78 | 79 | #! Google 白名单 Start !# 80 | # 186 麦当劳 81 | firebaseremoteconfig.googleapis.com 82 | #google 83 | safebrowsing.googleapis.com 84 | #mytvsuper 85 | imasdk.googleapis.com 86 | #fcm push 87 | firebaseinstallations.googleapis.com 88 | #! Google 白名单 End !# 89 | 90 | #! 三大运营商 白名单 Start !# 91 | #电信一键登录 92 | id6.me 93 | #移动一键登录 94 | da.mmarket.com 95 | #免流 96 | cmpassport.com 97 | #中国联通app充值以及相关页面误杀 #153 98 | fraudmetrix.cn 99 | #移动云盘AI 100 | ad.mcloud.139.com 101 | #! 三大运营商 白名单 End !# 102 | 103 | #! 阿里 白名单 Start !# 104 | #阿里 105 | amdc.m.taobao.com 106 | #淘宝千牛商家 #151 107 | acs.m.taobao.com 108 | #淘宝 109 | click.mz.simba.taobao.com 110 | #淘宝阿里旺旺买家版聊天对话窗 111 | amos.alicdn.com 112 | #UC浏览器 113 | wgo.mmstat.com 114 | gm.mmstat.com 115 | #优酷 116 | mmstat.com 117 | #饿了么会员开通 118 | cashier.ele.me 119 | #饿了么再来一单 120 | buy.ele.me 121 | #饿了么搜索 122 | h-adashx.ut.ele.me 123 | # 夸克登录 124 | api.open.uc.cn 125 | # uc 126 | p.bokecc.com 127 | #! 阿里 白名单 End !# 128 | 129 | #! 直播与短视频平台 白名单 Start !# 130 | #斗鱼礼物 131 | gift.douyucdn.cn 132 | #抖音图片 133 | p3-ad-sign.byteimg.com 134 | #虎牙直播 #177 135 | va.huya.com 136 | #火山视频图片 137 | img2.autoimg.cn 138 | #今日头条 139 | ib.snssdk.com 140 | ic.snssdk.com 141 | is.snssdk.com 142 | #抖音验证码 143 | mcs.snssdk.com 144 | vcs.snssdk.com 145 | verify.snssdk.com 146 | #虎牙 147 | livewebbs2.msstatic.com 148 | liveweb\*\.msstatic\.com 149 | #哔哩哔哩橱窗功能 #122 150 | miniapp.bilibili.com 151 | #bili评论 152 | grpc.biliapi.net 153 | #bili直播 154 | live-trace.bilibili.com 155 | #! 直播与短视频平台 白名单 End !# 156 | 157 | #! 未分类大厂 白名单 Start !# 158 | #facebook 159 | graph.facebook.com 160 | 161 | #pdd #224 162 | th.pinduoduo.com 163 | ta.pinduoduo.com 164 | #pronhub cdn 165 | evtubescms.phncdn.com 166 | #雅虎 js 167 | consent.cmp.oath.com 168 | # 迅雷书签 169 | api-shoulei-ssl.xunlei.com 170 | #cdn 171 | cloudfront.net 172 | #京东礼品卡 173 | gia.jd.com 174 | #微信验证 175 | szlong.weixin.qq.com 176 | # 搜狗同步 177 | get.sogou.com 178 | input.shouji.sogou.com 179 | ping.pinyin.sogou.com 180 | info.pinyin.sogou.com 181 | #360智慧生活 182 | sobot.com 183 | #360DNS 184 | qhres2.com 185 | # adtidy 186 | ^[a-zA-Z0-9-]*\.*adtidy\.org$ 187 | adtidy.org 188 | # 通配误杀脚本之家 189 | \*\.jbzj\.com 190 | #adg邮件跳转 191 | email-link.adtidy.org 192 | #奇怪的cname误杀 193 | tanx.com 194 | #招商银行掌上生活 195 | metric.ccc.cmbchina.com 196 | #OPPO 197 | client-uc.heytapmobi.com 198 | #OPPO应用配置 199 | appconf.heytapdownload.com 200 | #QQ打卡 201 | tianshu.gtimg.cn 202 | #Intel驱动 203 | static.cloud.coveo.com 204 | #企业微信 #208 205 | tdid.m.qq.com 206 | #! 未分类大厂 白名单 End !# 207 | 208 | #! 乱七八糟的域名 白名单 Start !# 209 | 210 | #jameswoof 游戏 211 | app.jameswoof.com 212 | 213 | #OpenCat 214 | lc-cn-n1-shared.com 215 | 216 | #bmcx.com cname 217 | 7x24s.com 218 | 219 | # 待补充 220 | similarweb.com 221 | 222 | #纵横小说 223 | static.zongheng.com 224 | 225 | #乘车码 #178 226 | ecard.shenzhentong.com 227 | 228 | #东方财富 图片 229 | dfcfw.com 230 | 231 | #umiwi.com 232 | imgcdn.umiwi.com 233 | 234 | #误杀CNAME angtv.cc 235 | gotoip55.com 236 | 237 | # 网盘 #168 238 | pan.tenire.com 239 | 240 | #今日基督教 #167 241 | christianitytoday.activehosted.com 242 | 243 | #sm图床 244 | loli.net 245 | 246 | #电影 247 | free-adsmind.ugdtimg.com 248 | 249 | #mytvsuper #144 250 | jwpcdn.com 251 | 252 | #游戏换购码 253 | statistics.pandadastudio.com 254 | 255 | #云课堂 256 | www.mosoteach.cn 257 | api.mosoteach.cn 258 | 259 | # 图床 260 | z4a.net 261 | 262 | # 开心消消乐 263 | animalmobile.happyelements.cn 264 | 265 | # 汽车之家加载页 266 | activity.app.autohome.com.cn 267 | 268 | #不知道的域名 #49 269 | epochtimes.com 270 | epochtimes.org 271 | 272 | # 购物党 273 | browser.gwdang.com 274 | 275 | #206 276 | logrocket.com 277 | 278 | #app mirror #209 279 | html-load.com 280 | content-loader.com 281 | 282 | #215 283 | instant.page 284 | 285 | #game randomly stutters or freezes. #219 286 | vs-api.voodoo-tech.io 287 | 288 | #! 乱七八糟的域名 白名单 End !# 289 | 290 | 291 | #---END---# 292 | -------------------------------------------------------------------------------- /script/clean-readme.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | num_adl=`sed -n 's/^! Total count: //p' adblock_lite.txt` 3 | num_adb=`sed -n 's/^! Total count: //p' adblock.txt` 4 | num_adp=`sed -n 's/^! Total count: //p' adblock_plus.txt` 5 | num_dns=`sed -n 's/^! Total count: //p' dns.txt` 6 | #num_domains=`sed -n 's/^! Total count: //p' ad-domains.txt` 7 | 8 | time=$(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S') 9 | sed -i "s/^Update Time:.*/Update Time: $time /g" README.md 10 | sed -i 's/^AdRules AdBlock List :.*/AdRules AdBlock List : '$num_adb' /g' README.md 11 | sed -i 's/^AdRules AdBlock List Plus :.*/AdRules AdBlock List Plus : '$num_adp' /g' README.md 12 | sed -i 's/^AdRules AdBlock List Lite :.*/AdRules AdBlock List Lite : '$num_adl' /g' README.md 13 | sed -i 's/^AdRules DNS List .*/AdRules DNS List : '$num_dns' /g' README.md 14 | exit 15 | -------------------------------------------------------------------------------- /script/dns-rules-config.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "The DNS List", 3 | "description": "Blocks ads, analytics, trackers, crypto-jacking & other such threats/nuisances. Addon lists are available to extend this list.", 4 | "sources": [ 5 | { 6 | "name": "DNS List", 7 | "source": "dns.txt", 8 | "type": "adblock", 9 | "transformations": ["RemoveComments", "Compress","RemoveModifiers","Deduplicate","Validate"] 10 | }, 11 | { 12 | "name": "DNS Filters", 13 | "source": "https://raw.githubusercontent.com/Cats-Team/dns-filter/main/abp.txt", 14 | "type": "adblock", 15 | "transformations": ["RemoveComments", "Compress"] 16 | } 17 | ], 18 | "exclusions_sources": ["https://raw.githubusercontent.com/Cats-Team/deadhosts/main/dead.txt","https://raw.githubusercontent.com/Cats-Team/AdRules/refs/heads/script/script/allowlist.txt"], 19 | "transformations": ["Deduplicate", "Compress","TrimLines","Deduplicate","Validate","RemoveEmptyLines"] 20 | } 21 | -------------------------------------------------------------------------------- /script/dns-script/singbox.py: -------------------------------------------------------------------------------- 1 | import json 2 | from datetime import datetime 3 | 4 | with open('domain.txt', 'r') as file: 5 | domains = [line.strip() for line in file] 6 | 7 | rules = { 8 | "version": "2", 9 | "rules": [ 10 | { 11 | "domain_suffix": domains 12 | } 13 | ] 14 | } 15 | 16 | with open('adrules-singbox.json', 'w') as file: 17 | json.dump(rules, file, indent=4) 18 | -------------------------------------------------------------------------------- /script/dns-script/surge.py: -------------------------------------------------------------------------------- 1 | import re 2 | import requests 3 | from datetime import datetime 4 | 5 | url = "https://raw.githubusercontent.com/ACL4SSR/ACL4SSR/master/Clash/BanAD.list" 6 | response = requests.get(url) 7 | banad_list = response.text.splitlines() 8 | 9 | with open("adrules-surge.conf", "w") as surge_file: 10 | surge_file.write(f"# Generated at {datetime.now().strftime('%Y-%m-%d %H:%M:%S')}\n") 11 | domain_wildcard_count = 0 12 | domain_keyword_count = 0 13 | domain_suffix_count = 0 14 | for line in banad_list: 15 | if line.startswith("DOMAIN-KEYWORD"): 16 | domain_keyword_count += 1 17 | 18 | pattern = r"(?<=\|\|).+(?=\^)" 19 | with open('dns.txt', 'r') as file: 20 | lines = file.readlines() 21 | 22 | domains = [] 23 | for line in lines: 24 | line = line.strip() 25 | match = re.search(pattern, line) 26 | if match: 27 | domain = match.group(0) 28 | if '*' in domain: 29 | domains.append(f"DOMAIN-WILDCARD,{domain}") 30 | domain_wildcard_count += 1 31 | else: 32 | domains.append(f"DOMAIN-SUFFIX,{domain}") 33 | domain_suffix_count += 1 34 | 35 | domains.sort() 36 | 37 | # Write sorted domains to adrules-surge.conf 38 | with open('adrules-surge.conf', 'a') as output_file: 39 | output_file.write(f"# DOMAIN-WILDCARD: {domain_wildcard_count}\n") 40 | output_file.write(f"# DOMAIN-KEYWORD: {domain_keyword_count}\n") 41 | output_file.write(f"# DOMAIN-SUFFIX: {domain_suffix_count}\n") 42 | for line in banad_list: 43 | if line.startswith("DOMAIN-KEYWORD"): 44 | output_file.write(line + "\n") 45 | 46 | for domain in domains: 47 | output_file.write(domain + "\n") -------------------------------------------------------------------------------- /script/remove.py: -------------------------------------------------------------------------------- 1 | import re 2 | 3 | # 从文件中读取黑名单 4 | with open('./dns.txt', 'r', encoding='utf-8') as f: 5 | blacklist = [line.strip() for line in f.readlines() if line.strip() and not line.startswith("#")] 6 | 7 | # 从文件中读取白名单 8 | with open('./script/allowlist.txt', 'r', encoding='utf-8') as f: 9 | whitelist = [line.strip() for line in f.readlines() if line.strip() and not line.startswith("#")] 10 | 11 | # 新的黑名单 12 | new_blacklist = blacklist 13 | 14 | # 遍历白名单 15 | for white_item in whitelist: 16 | # 判断白名单项是否为正则表达式 17 | try: 18 | re.compile(white_item) 19 | is_regex = True 20 | except re.error: 21 | is_regex = False 22 | 23 | # 根据白名单项是正则表达式还是子字符串进行处理 24 | if is_regex: 25 | # 如果是正则表达式,添加前缀和后缀 26 | white_item = r'^\|\|' + white_item + r'\^$' 27 | new_blacklist = [domain for domain in new_blacklist if not re.match(white_item, domain)] 28 | else: 29 | new_blacklist = [domain for domain in new_blacklist if domain != white_item] 30 | 31 | # 将新的黑名单写入到文件中 32 | with open('./dns.txt', 'w', encoding='utf-8') as f: 33 | for domain in new_blacklist: 34 | f.write(domain + '\n') 35 | -------------------------------------------------------------------------------- /script/rule.py: -------------------------------------------------------------------------------- 1 | import os 2 | import sys 3 | 4 | gpus = sys.argv[1] 5 | result = [] 6 | 7 | # 读取文件内容,注意指定newline参数为LF 8 | with open(gpus, "r+", encoding="utf8", newline='') as ffo: 9 | result = list(set(ffo.readlines())) 10 | result.sort() 11 | 12 | # 重新写入文件,注意指定newline参数为LF 13 | with open(gpus, "w", encoding="utf8", newline='') as ffo: 14 | ffo.writelines(result) 15 | -------------------------------------------------------------------------------- /script/update-content-rules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | set -euo pipefail # 严格模式 3 | 4 | # 日志函数 5 | log_info() { 6 | echo "[INFO] $(date '+%Y-%m-%d %H:%M:%S') - $*" >&2 7 | } 8 | 9 | log_error() { 10 | echo "[ERROR] $(date '+%Y-%m-%d %H:%M:%S') - $*" >&2 11 | } 12 | 13 | log_warn() { 14 | echo "[WARN] $(date '+%Y-%m-%d %H:%M:%S') - $*" >&2 15 | } 16 | 17 | # 配置 18 | LC_ALL='C' 19 | SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" 20 | TMP_DIR="${SCRIPT_DIR}/tmp" 21 | MOD_DIR="${SCRIPT_DIR}/mod" 22 | CONTENT_DIR="${TMP_DIR}/content" 23 | SCRIPT_PATH="${SCRIPT_DIR}/script" 24 | 25 | declare -A TITLES=( 26 | ["lite"]="adblock_lite-title.txt" 27 | ["normal"]="adblock-title.txt" 28 | ["plus"]="adblock_plus-title.txt" 29 | ) 30 | 31 | # 清理函数 32 | cleanup() { 33 | local exit_code=$? 34 | log_info "清理临时文件..." 35 | rm -f "${TMP_DIR}"/adblock*pre.txt "${TMP_DIR}"/pre-*.txt "${TMP_DIR}"/tpdate.txt "${TMP_DIR}"/total.txt "${TMP_DIR}"/*_temp.txt 36 | exit $exit_code 37 | } 38 | 39 | trap cleanup EXIT INT TERM 40 | 41 | # 检查依赖 42 | check_dependencies() { 43 | local deps=("python" "grep" "sort" "uniq" "wc" "cat") 44 | for dep in "${deps[@]}"; do 45 | if ! command -v "$dep" >/dev/null 2>&1; then 46 | log_error "缺少依赖 $dep" 47 | exit 1 48 | fi 49 | done 50 | } 51 | 52 | # 生成时间戳 53 | generate_timestamp() { 54 | echo "! Version: $(TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S')(GMT+8)" 55 | } 56 | 57 | # 运行Python规则处理 58 | run_python_script() { 59 | local file="$1" 60 | if [[ -f "${SCRIPT_PATH}/rule.py" ]]; then 61 | python "${SCRIPT_PATH}/rule.py" "$file" || { 62 | log_warn "Python脚本执行失败" 63 | } 64 | fi 65 | } 66 | 67 | # 应用移除规则 68 | apply_remove_rules() { 69 | local input_file="$1" 70 | local output_file="$2" 71 | 72 | if [[ -f "${MOD_DIR}/rules/adblock-need-remove.txt" ]]; then 73 | grep -vxFf "${MOD_DIR}/rules/adblock-need-remove.txt" "$input_file" > "$output_file" 74 | else 75 | cp "$input_file" "$output_file" 76 | fi 77 | } 78 | 79 | # 生成最终文件格式 80 | finalize_file() { 81 | local version="$1" 82 | local input_file="$2" 83 | local output_file="$3" 84 | 85 | # 创建临时文件进行处理 86 | local temp_file="${input_file}_temp.txt" 87 | cp "$input_file" "$temp_file" 88 | 89 | run_python_script "$temp_file" 90 | 91 | local count=$(wc -l < "$temp_file") 92 | { 93 | cat "${MOD_DIR}/title/${TITLES[$version]}" 94 | generate_timestamp 95 | echo "! Total count: $count" 96 | cat "$temp_file" 97 | } > "$output_file" 98 | 99 | # 清理临时文件 100 | rm -f "$temp_file" 101 | 102 | log_info "${version} 版本处理完成,共 $count 条规则" 103 | } 104 | 105 | # 主函数 106 | main() { 107 | log_info "开始合并和去重处理..." 108 | 109 | check_dependencies 110 | 111 | cd "$TMP_DIR" || { 112 | log_error "无法切换到目录 $TMP_DIR" 113 | exit 1 114 | } 115 | log_info "当前工作目录: $(pwd)" 116 | 117 | # 处理lite版本 118 | log_info "处理 lite 版本..." 119 | local lite_rules=( 120 | jiekouAD.txt 121 | 224.txt 122 | NoAppDownload.txt 123 | cjx-annoyance.txt 124 | anti-adblock-killer-filters.txt 125 | antiadblockfilters.txt 126 | abp-filters-anti-cv.txt 127 | ) 128 | 129 | echo " " > pre-lite.txt 130 | for file in "${lite_rules[@]}"; do 131 | local full_path="${CONTENT_DIR}/${file}" 132 | if [[ -f "$full_path" ]]; then 133 | cat "$full_path" >> pre-lite.txt 134 | else 135 | log_warn "文件不存在 $full_path" 136 | fi 137 | done 138 | 139 | { 140 | if [[ -f "${MOD_DIR}/title/${TITLES[lite]}" ]]; then 141 | cat "${MOD_DIR}/title/${TITLES[lite]}" 142 | fi 143 | if [[ -f "${MOD_DIR}/rules/adblock-rules.txt" ]]; then 144 | cat "${MOD_DIR}/rules/adblock-rules.txt" 145 | fi 146 | cat pre-lite.txt 147 | } | grep -Ev "^((\!)|(\[)).*" | sort -n | uniq > adblock_lite_pre.txt 148 | 149 | apply_remove_rules adblock_lite_pre.txt adblock_lite_temp.txt 150 | finalize_file "lite" adblock_lite_temp.txt adblock_lite.txt 151 | 152 | # 处理normal版本 153 | log_info "处理 normal 版本..." 154 | if [[ ! -f "adblock_lite.txt" ]]; then 155 | log_error "adblock_lite.txt 不存在" 156 | exit 1 157 | fi 158 | 159 | { 160 | cat "${MOD_DIR}/title/${TITLES[normal]}" 161 | cat adblock_lite.txt 162 | 163 | for file in 3.txt clear_urls_uboified.txt easyprivacy.txt; do 164 | local full_path="${CONTENT_DIR}/${file}" 165 | if [[ -f "$full_path" ]]; then 166 | cat "$full_path" 167 | else 168 | log_warn "文件不存在 $full_path" 169 | fi 170 | done 171 | } | grep -Ev "^((\!)|(\[)).*" | sort -n | uniq > adblock_pre.txt 172 | 173 | apply_remove_rules adblock_pre.txt adblock_temp.txt 174 | finalize_file "normal" adblock_temp.txt adblock.txt 175 | 176 | # 处理plus版本 177 | log_info "处理 plus 版本..." 178 | if [[ ! -f "adblock.txt" ]]; then 179 | log_error "adblock.txt 不存在" 180 | ls -la adblock* 181 | exit 1 182 | fi 183 | 184 | { 185 | cat adblock.txt 186 | for file in "${CONTENT_DIR}"/*.txt; do 187 | if [[ -f "$file" ]]; then 188 | cat "$file" 189 | fi 190 | done 191 | } | grep -Ev "^((\!)|(\[)).*" | sort -n | uniq > adblock_plus_pre.txt 192 | 193 | apply_remove_rules adblock_plus_pre.txt adblock_plus_temp.txt 194 | finalize_file "plus" adblock_plus_temp.txt adblock_plus.txt 195 | 196 | log_info "清理临时文件并移动最终文件..." 197 | rm -f adblock*pre.txt pre-lite.txt adblock*_temp.txt 198 | 199 | for file in adblock_lite.txt adblock.txt adblock_plus.txt; do 200 | if [[ -f "$file" ]]; then 201 | mv "$file" ../ 202 | log_info "已移动 $file 到上级目录" 203 | fi 204 | done 205 | 206 | log_info "所有版本处理完成!" 207 | } 208 | 209 | main "$@" 210 | -------------------------------------------------------------------------------- /script/update-dns-rules.sh: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | # 配置和常量 4 | readonly SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)" 5 | readonly TMP_DIR="${SCRIPT_DIR}/tmp" 6 | readonly DNS_DIR="${TMP_DIR}/dns" 7 | readonly OUTPUT_DIR="${SCRIPT_DIR}" 8 | readonly TOOLS_DIR="${TMP_DIR}/tools" 9 | 10 | # 文件路径 11 | readonly DNS_TXT="dns.txt" 12 | readonly DOMAIN_TXT="domain.txt" 13 | readonly QX_CONF="qx.conf" 14 | readonly SMART_DNS_CONF="smart-dns.conf" 15 | readonly ADRULES_LIST="adrules.list" 16 | readonly ADRULES_DOMAINSET="adrules_domainset.txt" 17 | readonly MOSDNS_ADRULES="mosdns_adrules.txt" 18 | 19 | # 下载URL 20 | readonly MIHOMO_RELEASES_URL="https://github.com/MetaCubeX/mihomo/releases/download/Prerelease-Alpha" 21 | 22 | # 错误处理 23 | set -euo pipefail 24 | trap cleanup EXIT 25 | 26 | # 日志函数 27 | log_info() { 28 | echo "[INFO] $(date '+%Y-%m-%d %H:%M:%S') - $*" >&2 29 | } 30 | 31 | log_error() { 32 | echo "[ERROR] $(date '+%Y-%m-%d %H:%M:%S') - $*" >&2 33 | } 34 | 35 | log_warn() { 36 | echo "[WARN] $(date '+%Y-%m-%d %H:%M:%S') - $*" >&2 37 | } 38 | 39 | # 清理函数 40 | cleanup() { 41 | local exit_code=$? 42 | if [[ $exit_code -ne 0 ]]; then 43 | log_error "脚本执行失败,退出码: $exit_code" 44 | fi 45 | 46 | # 清理临时文件 47 | [[ -f "dns-output.txt" ]] && rm -f "dns-output.txt" 48 | [[ -f "total.txt" ]] && rm -f "total.txt" 49 | [[ -f "version.txt" ]] && rm -f "version.txt" 50 | [[ -f "$DOMAIN_TXT" ]] && rm -f "$DOMAIN_TXT" 51 | [[ -d "$TOOLS_DIR" ]] && rm -rf "$TOOLS_DIR" 52 | 53 | log_info "清理完成" 54 | } 55 | 56 | # 检查必要的命令 57 | check_dependencies() { 58 | local deps=("grep" "sort" "uniq" "sed" "wget" "python" "gzip" "chmod") 59 | local missing=() 60 | 61 | for dep in "${deps[@]}"; do 62 | if ! command -v "$dep" &> /dev/null; then 63 | missing+=("$dep") 64 | fi 65 | done 66 | 67 | if [[ ${#missing[@]} -gt 0 ]]; then 68 | log_error "缺少必要的依赖: ${missing[*]}" 69 | exit 1 70 | fi 71 | } 72 | 73 | # 检查必要的文件和目录 74 | check_files() { 75 | local required_dirs=("./mod/rules" "./script") 76 | local required_files=("./script/dns-rules-config.json" "./script/remove.py" "./script/rule.py") 77 | 78 | for dir in "${required_dirs[@]}"; do 79 | if [[ ! -d "$dir" ]]; then 80 | log_error "目录不存在: $dir" 81 | exit 1 82 | fi 83 | done 84 | 85 | for file in "${required_files[@]}"; do 86 | if [[ ! -f "$file" ]]; then 87 | log_error "文件不存在: $file" 88 | exit 1 89 | fi 90 | done 91 | } 92 | 93 | # 创建必要的目录 94 | setup_directories() { 95 | mkdir -p "$DNS_DIR" "$TOOLS_DIR" 96 | } 97 | 98 | # 生成时间戳 99 | generate_timestamp() { 100 | TZ=UTC-8 date +'%Y-%m-%d %H:%M:%S' 101 | } 102 | 103 | # 处理DNS规则 104 | process_dns_rules() { 105 | log_info "开始处理 DNS 规则..." 106 | 107 | # 复制规则文件 108 | if ! cp ./mod/rules/*rule* "$DNS_DIR/" 2>/dev/null; then 109 | log_warn "没有找到规则文件,或复制失败" 110 | fi 111 | 112 | # 处理DNS文件 113 | if ls "$DNS_DIR"/* &>/dev/null; then 114 | cat "$DNS_DIR"/* | \ 115 | grep -Ev '[A-Z]' | \ 116 | grep -vE '@|:|\?|\$|\#|\!|/' | \ 117 | sort | uniq > "$DNS_TXT" 118 | else 119 | log_warn "DNS 目录为空,创建空的 dns.txt" 120 | touch "$DNS_TXT" 121 | fi 122 | 123 | log_info "DNS规则预处理完成" 124 | } 125 | 126 | # 编译hostlist 127 | compile_hostlist() { 128 | log_info "编译 hostlist..." 129 | 130 | if command -v hostlist-compiler &> /dev/null; then 131 | if hostlist-compiler -c ./script/dns-rules-config.json -o dns-output.txt; then 132 | grep -P "^\|\|[a-z0-9\.\-\*]+\^$" dns-output.txt > "$DNS_TXT" || log_warn "hostlist 编译结果为空" 133 | else 134 | log_warn "hostlist-compiler 执行失败,跳过此步骤" 135 | fi 136 | else 137 | log_warn "hostlist-compiler 未安装,跳过此步骤" 138 | fi 139 | } 140 | 141 | # 运行Python脚本 142 | run_python_scripts() { 143 | log_info "运行 Python 处理脚本..." 144 | 145 | if [[ -f "./script/remove.py" ]]; then 146 | python ./script/remove.py || log_warn "remove.py 执行失败" 147 | fi 148 | 149 | # 添加首要DNS规则 150 | if [[ -f "./mod/rules/first-dns-rules.txt" ]]; then 151 | cat ./mod/rules/first-dns-rules.txt >> "$DNS_TXT" 152 | fi 153 | 154 | if [[ -f "./script/rule.py" ]]; then 155 | python ./script/rule.py "$DNS_TXT" || log_warn "rule.py 执行失败" 156 | fi 157 | } 158 | 159 | # 生成最终的DNS文件 160 | generate_final_dns() { 161 | log_info "生成最终 DNS 文件..." 162 | 163 | local update_time 164 | update_time="$(generate_timestamp)(GMT+8)" 165 | local count 166 | count=$(wc -l < "$DNS_TXT" 2>/dev/null || echo "0") 167 | 168 | # 创建总计信息 169 | { 170 | echo "! Total count: $count" 171 | echo "! Update: $update_time" 172 | } > total.txt 173 | 174 | # 合并文件并清理空行 175 | { 176 | [[ -f "./mod/title/dns-title.txt" ]] && cat ./mod/title/dns-title.txt 177 | cat total.txt 178 | cat "$DNS_TXT" 179 | } | sed '/^$/d' > tmp.txt && mv tmp.txt "$DNS_TXT" 180 | 181 | log_info "DNS 文件生成完成,共 $count 条规则" 182 | } 183 | 184 | # 生成各种格式的配置文件 185 | generate_configs() { 186 | log_info "生成各种格式的配置文件..." 187 | 188 | local update_time 189 | update_time="$(generate_timestamp)(GMT+8)" 190 | 191 | # 初始化配置文件 192 | { 193 | echo "# Title:AdRules Quantumult X List" 194 | echo "# Update: $update_time" 195 | } > "$QX_CONF" 196 | 197 | { 198 | echo "# Title:AdRules SmartDNS List" 199 | echo "# Update: $update_time" 200 | } > "$SMART_DNS_CONF" 201 | 202 | { 203 | echo "# Title:AdRules List" 204 | echo "# Update: $update_time" 205 | } > "$ADRULES_LIST" 206 | 207 | { 208 | echo "# Update: $update_time" 209 | } > "$ADRULES_DOMAINSET" 210 | 211 | # 提取域名 212 | grep -vE '(@|\*)' "$DNS_TXT" | \ 213 | grep -Po "(?<=\|\|).+(?=\^)" | \ 214 | grep -v "\*" > "$DOMAIN_TXT" || { 215 | log_warn "域名提取失败,创建空域名文件" 216 | touch "$DOMAIN_TXT" 217 | } 218 | 219 | # 生成不同格式 220 | if [[ -s "$DOMAIN_TXT" ]]; then 221 | # Quantumult X 格式 222 | sed 's/^/host-suffix,/g; s/$/,reject/g' "$DOMAIN_TXT" >> "$QX_CONF" 223 | 224 | # SmartDNS 格式 225 | sed 's/^/address \//g; s/$/\/#/g' "$DOMAIN_TXT" >> "$SMART_DNS_CONF" 226 | 227 | # mosdns 格式 228 | sed 's/^/domain:/g' "$DOMAIN_TXT" > "$MOSDNS_ADRULES" 229 | 230 | # domainset 格式 231 | sed 's/^/\+\./g' "$DOMAIN_TXT" >> "$ADRULES_DOMAINSET" 232 | 233 | # adrules 格式 234 | sed 's/^/DOMAIN-SUFFIX,/g' "$DOMAIN_TXT" >> "$ADRULES_LIST" 235 | 236 | log_info "配置文件生成完成" 237 | else 238 | log_warn "域名文件为空,配置文件可能不完整" 239 | fi 240 | } 241 | 242 | # 运行附加Python脚本 243 | run_additional_scripts() { 244 | log_info "运行附加处理脚本..." 245 | 246 | [[ -f "./script/dns-script/singbox.py" ]] && { 247 | python ./script/dns-script/singbox.py || log_warn "singbox.py 执行失败" 248 | } 249 | 250 | [[ -f "./script/dns-script/surge.py" ]] && { 251 | python ./script/dns-script/surge.py || log_warn "surge.py 执行失败" 252 | } 253 | } 254 | 255 | # 下载并使用sing-box 256 | process_with_singbox() { 257 | log_info "处理 sing-box 规则转换..." 258 | 259 | local singbox_version="1.11.11" 260 | local singbox_archive="sing-box-${singbox_version}-linux-amd64.tar.gz" 261 | local download_url="https://github.com/SagerNet/sing-box/releases/download/v${singbox_version}/${singbox_archive}" 262 | local singbox_dir="$TOOLS_DIR/sing-box-${singbox_version}-linux-amd64" 263 | local singbox_bin="$TOOLS_DIR/sing-box" 264 | 265 | # 下载 sing-box 266 | log_info "下载 sing-box v${singbox_version}..." 267 | if wget -q --timeout=60 -P "$TOOLS_DIR" "$download_url"; then 268 | # 解压到工具目录 269 | if tar -zxf "$TOOLS_DIR/$singbox_archive" -C "$TOOLS_DIR"; then 270 | # 移动可执行文件 271 | if [[ -f "$singbox_dir/sing-box" ]]; then 272 | mv "$singbox_dir/sing-box" "$singbox_bin" 273 | chmod +x "$singbox_bin" 274 | 275 | # 转换规则 276 | log_info "转换规则文件..." 277 | if "$singbox_bin" rule-set convert "$DNS_TXT" -t adguard; then 278 | # 移动生成的文件 279 | if [[ -f "dns.srs" ]]; then 280 | mv "dns.srs" "adrules-singbox.srs" 281 | log_info "sing-box 规则文件已生成: adrules-singbox.srs" 282 | else 283 | log_warn "未找到生成的 dns.srs 文件" 284 | fi 285 | else 286 | log_warn "sing-box 规则转换失败" 287 | fi 288 | else 289 | log_error "sing-box 可执行文件不存在" 290 | fi 291 | else 292 | log_error "sing-box 解压失败" 293 | fi 294 | else 295 | log_error "下载 sing-box 失败" 296 | fi 297 | } 298 | 299 | # 下载并使用mihomo 300 | process_with_mihomo() { 301 | log_info "下载并使用 mihomo..." 302 | 303 | local version_file="$TOOLS_DIR/version.txt" 304 | local mihomo_gz="$TOOLS_DIR/mihomo.gz" 305 | local mihomo_bin="$TOOLS_DIR/mihomo" 306 | 307 | if wget -q -O "$version_file" "${MIHOMO_RELEASES_URL}/version.txt"; then 308 | local version 309 | version=$(cat "$version_file") 310 | 311 | if wget -q -O "$mihomo_gz" "${MIHOMO_RELEASES_URL}/mihomo-linux-amd64-${version}.gz"; then 312 | if gzip -d "$mihomo_gz"; then 313 | local mihomo_extracted="${mihomo_gz%.gz}" 314 | chmod +x "$mihomo_extracted" 315 | 316 | if "$mihomo_extracted" convert-ruleset domain text "$ADRULES_DOMAINSET" adrules-mihomo.mrs; then 317 | log_info "mihomo 处理完成" 318 | else 319 | log_warn "mihomo 转换失败" 320 | fi 321 | else 322 | log_warn "mihomo 解压失败" 323 | fi 324 | else 325 | log_warn "mihomo 下载失败" 326 | fi 327 | else 328 | log_warn "mihomo 版本信息获取失败" 329 | fi 330 | } 331 | 332 | # 主函数 333 | main() { 334 | log_info "开始执行 DNS 规则生成脚本..." 335 | 336 | # 设置环境 337 | export LC_ALL=C 338 | 339 | # 检查依赖和文件 340 | check_dependencies 341 | check_files 342 | setup_directories 343 | 344 | # 处理流程 345 | process_dns_rules 346 | compile_hostlist 347 | run_python_scripts 348 | generate_final_dns 349 | generate_configs 350 | run_additional_scripts 351 | process_with_singbox 352 | process_with_mihomo 353 | 354 | log_info "脚本执行完成!" 355 | } 356 | 357 | # 执行主函数 358 | main "$@" 359 | -------------------------------------------------------------------------------- /script/update-upstream.sh: -------------------------------------------------------------------------------- 1 | #!/bin/sh 2 | set -euo pipefail # 严格模式 3 | LC_ALL='C' 4 | 5 | # 日志函数 6 | log_info() { 7 | echo "[INFO] $(date '+%Y-%m-%d %H:%M:%S') - $*" 8 | } 9 | log_warn() { 10 | echo "[WARN] $(date '+%Y-%m-%d %H:%M:%S') - $*" 11 | } 12 | log_error() { 13 | echo "[ERROR] $(date '+%Y-%m-%d %H:%M:%S') - $*" 14 | } 15 | 16 | cd "$(dirname "${BASH_SOURCE[0]}")/.." 17 | 18 | download_file() { 19 | local url="$1" 20 | local directory="$2" 21 | local filename 22 | filename=$(basename "$url") 23 | local filepath="$directory/$filename" 24 | local retries=3 25 | 26 | while [ $retries -gt 0 ]; do 27 | if curl -sS -L -o "$filepath" "$url"; then 28 | # 插入来源注释 29 | sed -i "1i\\! url: $url" "$filepath" 30 | #log_info "下载成功: $url -> $filepath" 31 | return 0 32 | else 33 | retries=$((retries - 1)) 34 | log_warn "下载失败,重试($retries剩余): $url" 35 | sleep 1 36 | fi 37 | done 38 | 39 | log_error "下载最终失败: $url" 40 | # 记录失败的链接 41 | echo "$url" >> ../download_failed.log 42 | return 1 43 | } 44 | 45 | log_info "开始下载规则..." 46 | 47 | mkdir -p ./tmp 48 | cd tmp 49 | mkdir -p ./content ./dns 50 | 51 | # 规则链接数组 52 | content_urls=( 53 | #damengzhu 54 | "https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt" 55 | #Noyllopa NoAppDownload 56 | "https://raw.githubusercontent.com/Noyllopa/NoAppDownload/master/NoAppDownload.txt" 57 | #china 58 | #"https://filters.adtidy.org/extension/ublock/filters/224.txt" 59 | #cjx 60 | "https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt" 61 | #anti-anti-ad 62 | "https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt" 63 | "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt" 64 | "https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt" 65 | #--normal 66 | #Clean Url 67 | "https://raw.githubusercontent.com/DandelionSprout/adfilt/master/ClearURLs%20for%20uBo/clear_urls_uboified.txt" 68 | #english opt 69 | "https://filters.adtidy.org/extension/ublock/filters/2_optimized.txt" 70 | #EasyListPrvacy 71 | "https://easylist-downloads.adblockplus.org/easyprivacy.txt" 72 | #--plus 73 | #ubo annoyance 74 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances-others.txt" 75 | #ubo privacy 76 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt" 77 | #adg base 78 | "https://filters.adtidy.org/windows/filters/2.txt" 79 | #adg privacy 80 | "https://filters.adtidy.org/windows/filters/3.txt" 81 | #adg cn 82 | "https://filters.adtidy.org/windows/filters/224.txt" 83 | #adg annoyance 84 | "https://filters.adtidy.org/windows/filters/14.txt" 85 | ) 86 | 87 | dns_urls=( 88 | #Ultimate Ad Filter 89 | "https://filters.adavoid.org/ultimate-ad-filter.txt" 90 | #Ultimate Privacy Filter 91 | "https://filters.adavoid.org/ultimate-privacy-filter.txt" 92 | #Social 93 | "https://filters.adtidy.org/windows/filters/4.txt" 94 | #Annoying 95 | "https://filters.adtidy.org/windows/filters/14.txt" 96 | "https://easylist-downloads.adblockplus.org/fanboy-annoyance.txt" 97 | #Mobile Ads 98 | "https://filters.adtidy.org/windows/filters/11.txt" 99 | #Chinese and English 100 | "https://filters.adtidy.org/windows/filters/2.txt" 101 | "https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt" 102 | "https://filters.adtidy.org/windows/filters/224.txt" 103 | #Fuck Tracking 104 | "https://easylist-downloads.adblockplus.org/easyprivacy.txt" 105 | "https://filters.adtidy.org/windows/filters/3.txt" 106 | #anti-coin 107 | "https://raw.githubusercontent.com/hoshsadiq/adblock-nocoin-list/master/nocoin.txt" 108 | #scam 109 | "https://raw.githubusercontent.com/durablenapkin/scamblocklist/master/adguard.txt" 110 | #damengzhu 111 | "https://raw.githubusercontent.com/damengzhu/banad/main/jiekouAD.txt" 112 | #xinggsf 113 | "https://raw.githubusercontent.com/xinggsf/Adblock-Plus-Rule/master/mv.txt" 114 | #uBO 115 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/annoyances-others.txt" 116 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/badware.txt" 117 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/filters.txt" 118 | "https://raw.githubusercontent.com/uBlockOrigin/uAssets/master/filters/privacy.txt" 119 | #cjx 120 | "https://raw.githubusercontent.com/cjx82630/cjxlist/master/cjx-annoyance.txt" 121 | #anti-anti-ad 122 | "https://raw.githubusercontent.com/reek/anti-adblock-killer/master/anti-adblock-killer-filters.txt" 123 | "https://easylist-downloads.adblockplus.org/antiadblockfilters.txt" 124 | "https://easylist-downloads.adblockplus.org/abp-filters-anti-cv.txt" 125 | #HostsVN 126 | "https://raw.githubusercontent.com/bigdargon/hostsVN/master/filters/adservers-all.txt" 127 | #hosts 128 | #anti-windows-spy 129 | "https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt" 130 | #Notarck-Malware 131 | "https://gitlab.com/quidsup/notrack-blocklists/-/raw/master/malware.hosts" 132 | #hostsVN 133 | "https://raw.githubusercontent.com/bigdargon/hostsVN/master/filters/adservers-all.txt" 134 | #StevenBlack 135 | "https://raw.githubusercontent.com/StevenBlack/hosts/master/data/StevenBlack/hosts" 136 | #SomeoneNewWhoCares 137 | "https://someonewhocares.org/hosts/zero/hosts" 138 | #Brave 139 | "https://raw.githubusercontent.com/brave/adblock-lists/master/brave-lists/brave-firstparty.txt" 140 | #Me 141 | "https://raw.githubusercontent.com/Cats-Team/dns-filter/main/abp.txt" 142 | ) 143 | 144 | # 清空失败日志 145 | > ../download_failed.log 146 | 147 | # 并发下载 148 | for url in "${content_urls[@]}"; do 149 | download_file "$url" "./content" & 150 | done 151 | 152 | for url in "${dns_urls[@]}"; do 153 | download_file "$url" "./dns" & 154 | done 155 | 156 | wait 157 | 158 | # 换行符处理 159 | convert_line_endings() { 160 | dir=$1 161 | file_count=0 162 | if ls "$dir"/*.txt >/dev/null 2>&1; then 163 | if command -v dos2unix >/dev/null 2>&1; then 164 | for file in "$dir"/*.txt; do 165 | dos2unix "$file" >/dev/null 2>&1 166 | file_count=$((file_count+1)) 167 | done 168 | else 169 | for file in "$dir"/*.txt; do 170 | [ -f "$file" ] && sed -i 's/\r$//' "$file" 171 | file_count=$((file_count+1)) 172 | done 173 | fi 174 | fi 175 | log_info "$dir 转换了 $file_count 个文件" 176 | } 177 | 178 | convert_line_endings "content" 179 | convert_line_endings "dns" 180 | 181 | # 显示失败链接 182 | if [ -s ../download_failed.log ]; then 183 | log_error "下载失败链接如下:" 184 | cat ../download_failed.log >&2 185 | rm -f ../download_failed.log 186 | fi 187 | 188 | log_info "全部完成 ✅" 189 | exit 0 190 | --------------------------------------------------------------------------------