<center>

<h1>AdRules</h1>

</center>
<br>
<img src="https://img.shields.io/github/stars/Cats-Team/AdRules?style=flat-square&color=yellow">
<img alt="GitHub last commit" src="https://img.shields.io/github/last-commit/cats-team/adrules/main?style=flat-square&color=red">
<img alt="GitHub License" src="https://img.shields.io/github/license/Cats-Team/AdRules?style=flat-square&link=https%3A%2F%2Fgithub.com%2FCats-Team%2FAdRules%2Fblob%2Fscript%2FLICENSE">


</centre>

## Desc.
List for blocking ads in the Chinese region
Block Ads, Trackers, Malware, HTTPDNS, PCDN.

❔Have any questions? Please go to [Chat](#chat)  
📃Want to see the upstream rules? [Source](/Source.md)
<br>  

### 📃 Rules List


> [!CAUTION]
> Use the right filter on the right platform or suffer the consequences.

> 
- **Content Rules**

| Rules Name             | 🚀Github Raw                                                                                             | 🚀Github Pages                                                                                         | 🚀Gitlab Raw                                                                                             | 🚀Cloudflare Pages                                                                                     | 🚀Bitbucket Raw                                                                                             |
| :--------------------- | :------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------- | :----------------------------------------------------------------------------------------------------- | :------------------------------------------------------------------------------------------------------- |
| 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)                                       |
| 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)                                  |
| 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)                                  |

- **DNS Rules**

| **Syntax**         | **🚀Github Raw**                                                                       | **🚀Github Pages**                                   | **🚀Gitlab Raw**                                                              | **🚀Cloudflare Pages**                            | **🚀Bitbucket Raw**                                                          |
| :----------------- | :------------------------------------------------------------------------------------- | :--------------------------------------------------- | :---------------------------------------------------------------------------- | :------------------------------------------------ | :--------------------------------------------------------------------------- |
| 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)               |
| 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)        |
| 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)    |
| Clash Domain-set    | [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) |
| Loon Rule-Set | [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)          |
| Surge Rule-Set | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules-surge.conf) | [Link](https://gp.adrules.top/adrules_surge.conf) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adrules-surge.conf) | [Link](https://adrules.top/adrules-surge.conf) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adrules-surge.conf) |
| Surge Domain-Set | [Link](https://raw.githubusercontent.com/Cats-Team/AdRules/main/adrules_surge_domainset.txt) | [Link](https://gp.adrules.top/adrules_surge_domainset.txt) | [Link](https://gitlab.com/cats-team/adrules/-/raw/main/adrules_surge_domainset.txt) | [Link](https://adrules.top/adrules_surge_domainset.txt) | [Link](https://bitbucket.org/hacamer/adrules/raw/main/adrules_surge_domainset.txt) |
| Mihomo srs            | [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)    |
| Singbox srs           | [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)   |

- Some formats not listed here, but due to performance or other reasons, we will not list them here, but you can find them in the [main](https://github.com/Cats-Team/AdRules/tree/main) branch.

## License

Please note that the licensing for this project depends on the branch and the type of content:

- **`script` branch (The Merge Tool)**: Contains the script used to merge the ad-blocking rules. The code in this branch is licensed under the **0BSD License** - see the LICENSE [<sup>1</sup>](LICENSE) file for details. You can use, modify, and distribute the script freely without any restrictions.
- **`main` branch (The Generated Artifacts)**: Contains **only the generated outputs** (the merged ad-blocking rules) and does NOT include the script itself. The rules in this branch strictly follow the original licenses of their respective upstream authors (e.g., GPL-3.0, MIT, CC BY-SA 4.0). For a complete list of upstream sources, authors, and their specific licenses, please refer to [<sup>2</sup>](Source.md).


## Chat

**📝 https://github.com/Cats-Team/AdRules/issues**  
**💬 https://github.com/Cats-Team/AdRules/discussions**

## Sponsor
[Afdian](https://afdian.com/a/Cats-Team)  

[<code><kbd>Back to top</kbd></code>](#)
