Cats-Team/AdRules: a China-focused blocklist for AdGuard, Clash, Surge and MosDNS
List for blocking ads in the Chinese region. Block Ads, Trackers, Malware, HTTPDNS, PCDN.
At a glance
- What is it?
- AdRules publishes one rule set in several syntaxes, aimed at ads, trackers, malware, HTTPDNS and PCDN in the Chinese region. The useful part is the format coverage; the risk is picking the wrong file for your client.
- Who is it for?
- Adopt AdRules if you run a Chinese-region network and your client matches one of the published syntaxes: adblock.txt for AdGuard, adrules_domainset.txt for Clash, adrules-surge.conf for Surge, mosdns_adrules.txt for MosDNS. Skip it if you need a single canonical plain-domain list, if you cannot subscribe to a remote URL, or if your users are not in that region, because the list is scoped to it by design.
- Can I use it commercially?
- Yes. 0BSD is a permissive licence: you can use, modify and sell software built on it, as long as you keep its copyright and licence notices.
- Is it still maintained?
- Yes. The repository received new commits within the last day.
- What is it written in?
- Mainly Python, according to GitHub's language statistics.
Answers come from the project's GitHub data, last synced on November 24, 2026, and from our analysis. They are not legal advice.
Star history
- Cats-Team/AdRules3,695 ★ · +52
| Repository | 2026-09-24 | 2026-11-24 |
|---|---|---|
| Cats-Team/AdRules | 3.6k | 3.7k |
52 Stars in the last 61 days, measured from the daily GitHub snapshot. Compare with other projects
Editorial analysis
What AdRules actually solves for a Chinese-region network
Most public blocklists are built around Western ad networks. They do not cover the DNS tricks, the tracker domains, or the HTTPDNS resolution paths that Chinese apps use to route around a filter. AdRules is scoped to that gap. The README states the project is a list for blocking ads in the Chinese region and names five categories: ads, trackers, malware, HTTPDNS and PCDN.
The audience is narrow on purpose. It is for someone running a self-hosted resolver, a proxy client, or a browser-level blocker whose users mostly browse Chinese sites and apps. It is not a general-purpose EasyList replacement. The README carries a blunt warning above the rule tables: use the right filter on the right platform or suffer the consequences. That sentence is the whole design philosophy. The project would rather ship five syntaxes of the same data than force one syntax on every client.
One rule set, five syntaxes, and why that is the real feature
The repository layout puts the generator in script/ and the outputs at the repository root, which is what makes the raw.githubusercontent.com and Cloudflare Pages URLs in the README resolvable. The README lists content rules and DNS rules as two separate families.
Content rules come in three variants: AdRules AdBlock List, AdBlock List Lite, and AdBlock List Plus, each published as adblock.txt, adblock_lite.txt and adblock_plus.txt. DNS rules are published per client: dns.txt for ABP syntax, smart-dns.conf for SmartDNS, mosdns_adrules.txt for MosDNS, adrules_domainset.txt for Clash domain-set, adrules.list for Loon rule-set, plus adrules-surge.conf and adrules_surge_domainset.txt for Surge.
Each file is mirrored across five hosts: GitHub raw, gp.adrules.top, GitLab raw, adrules.top, and Bitbucket raw. That redundancy matters in this region, where any single host can become unreachable. The README does not explain how the mirrors are kept in sync; the Source.md file is where the upstream rule sources are listed.
Subscribing to AdRules in AdGuard, Clash, Surge or MosDNS
There is no installer. AdRules is a set of text files you subscribe to by URL. The README's rule tables give the raw and mirror URLs for every format, so the first step is picking the file that matches your client rather than the file that looks most complete.
For a DNS-level blocker such as AdGuard Home, the documented target is the ABP-syntax DNS list. The README publishes it at the Cloudflare Pages address:
https://adrules.top/dns.txtFor a Clash-based client, the README publishes a domain-set file, not an ABP list. The distinction matters because Clash parses domain-set syntax, and pointing it at adblock.txt gives it a rule set it cannot read:
https://adrules.top/adrules_domainset.txtSurge users get a rule-set file instead, adrules-surge.conf, with a domain-set variant at adrules_surge_domainset.txt. MosDNS users take mosdns_adrules.txt, and SmartDNS users take smart-dns.conf. Every one of those files is also available from gp.adrules.top, GitLab raw, Bitbucket raw and GitHub raw, as the README tables show. After subscribing, the client should show the rule count for the newly added list and start matching entries on the next DNS query or connection. If the count stays at zero, the URL returned HTML rather than plain text, which usually means the mirror is serving an error page.
The wrong-filter failure mode is the main hazard
The README's caution is not boilerplate. Every published file except the adblock family is a different syntax, and a client that silently accepts an unparseable list is worse than one that rejects it, because you get a filter that appears enabled and blocks nothing.
The second limitation is scope. A list tuned for the Chinese region will have thin coverage of ad networks that serve mostly European or North American traffic, and the README does not claim otherwise. If your users are outside that region, the list will underperform a general-purpose one.
The third is that the README does not document the build pipeline's schedule, the update cadence of the generated files, or how the Lite and Plus variants differ in content. The repository has a script/ directory and a Source.md, and that is the extent of what the README exposes. If you need to know exactly what changed between two pulls of adblock.txt, you will be reading the diff yourself.
How AdRules differs from a general-purpose blocklist
The obvious alternative is a mainstream list such as EasyList or one of the OISD lists. The difference is not quality, it is targeting. Those projects optimise for global coverage and publish in a small number of formats, expecting client authors to adapt. AdRules does the opposite: it accepts a narrower geographic scope and pays for it by emitting a file for every client its users actually run, including MosDNS and SmartDNS, which mainstream lists rarely address.
A second difference is the category set. HTTPDNS and PCDN are unusual entries for a blocklist. HTTPDNS is a resolution path apps use to bypass the system resolver, and PCDN is peer-assisted content delivery that consumes upload bandwidth. A list that targets those is solving a problem that EasyList was never designed to see.
The trade-off is maintenance surface. Five mirrors times roughly a dozen output files is a lot of URLs to keep correct, and the README itself shows one inconsistency: the Surge Rule-Set row links to adrules-surge.conf on GitHub raw but to adrules_surge.conf on the gp.adrules.top mirror. That is the kind of drift a multi-format project has to live with.
Licence and what the 0BSD terms mean for redistribution
The repository carries a 0BSD licence, which is a permissive licence that imposes no attribution requirement. For a blocklist this is a practical choice: you can bundle adblock.txt into a router firmware image, a commercial DNS service, or an internal mirror without adding a notice file.
The caveat is upstream. AdRules is generated from other lists, and those lists are catalogued in Source.md. A 0BSD licence on this repository does not relicense the upstream sources it aggregates. If you plan to redistribute the output inside a product, read Source.md and check the terms of the lists feeding it, because the permissive licence here covers the compilation, not necessarily every constituent. Nothing in the README states how upstream licence conflicts are handled. This is not legal advice; it is a pointer to the file that matters.
Maintenance status and upgrade cost
The repository is not archived, and the last push was on 2026-09-23. That is the only maintenance signal available here; the README does not publish a release schedule, and the repository has no published releases.
Upgrade cost is low if you subscribe by URL. The client refetches the file on its own interval, and you do nothing. It is higher if you vendor the list, because you then own the diff review for a file whose variant differences the README does not describe. The multi-mirror setup also means a broken subscription is more likely to be a host problem than a list problem, so check a second mirror before assuming the project stopped publishing. The default branch is script, which is where the generator lives, so anyone reading the repository for the first time should switch to it rather than expecting the outputs on main.
Editorial conclusion
Adopt AdRules if you run a Chinese-region network and your client matches one of the published syntaxes: adblock.txt for AdGuard, adrules_domainset.txt for Clash, adrules-surge.conf for Surge, mosdns_adrules.txt for MosDNS. Skip it if you need a single canonical plain-domain list, if you cannot subscribe to a remote URL, or if your users are not in that region, because the list is scoped to it by design. Before subscribing, open the file you intend to use, confirm the syntax matches your client, and check the Source.md upstream list so you know what you are inheriting. The repository is not archived and the last push was on 2026-09-23.
Frequently asked questions
Are ad blockers legal?
The AdRules README does not address legality. It publishes filtering rules and a 0BSD licence for the repository, which is a copyright licence, not a statement about whether filtering is permitted in your jurisdiction.
How do I permanently block ads with AdRules?
AdRules is a subscription list, so permanence depends on your client refetching the URL. Add the file that matches your client, such as https://adrules.top/dns.txt for AdGuard Home or https://adrules.top/adrules_domainset.txt for a Clash domain-set, and leave the update interval enabled.
How do you use an ad blocker with the AdRules list?
Pick the published syntax for your client rather than a single universal file. The README warns to use the right filter on the right platform, and lists separate outputs for AdGuard, Clash, Surge, Loon, MosDNS and SmartDNS.
Is Adblock really free?
The AdRules repository is published under the 0BSD licence, which is permissive and requires no attribution. Upstream sources aggregated into the list are catalogued in Source.md and may carry their own terms.
Official sources
Add this badge to your README
If you maintain this project, the badge below links readers to this analysis and shows its maintenance status from the daily GitHub snapshot. Paste the markdown into your README; add ?metric=license or ?metric=stars to the image URL for a different field.
[](https://hysenlabs.com/projects/cats-team-adrules)Star history chart for your README
[](https://hysenlabs.com/projects/cats-team-adrules)Was this useful?