MCPcopy Index your code
hub / github.com/Cats-Team/AdRules

github.com/Cats-Team/AdRules @main

Chat with this repo
repository ↗ · DeepWiki ↗ · + Follow
25 symbols 88 edges 5 files 12 documented · 48% updated today★ 3,570
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

AdRules

GitHub last commit GitHub License

Desc.

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

❔Have any questions? Please go to Chat
📃Want to see the upstream rules? Source

📃 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 Link Link Link Link
AdRules AdBlock List Lite Link Link Link Link Link
AdRules AdBlock List Plus Link Link Link Link Link
  • DNS Rules
Syntax 🚀Github Raw 🚀Github Pages 🚀Gitlab Raw 🚀Cloudflare Pages 🚀Bitbucket Raw
ABP Link Link Link Link Link
SmartDNS Link Link Link Link Link
MosDNS Link Link Link Link Link
Clash Domain-set Link Link Link Link Link
Loon Rule-Set Link Link Link Link Link
Surge Rule-Set Link Link Link Link Link
Surge Domain-Set Link Link Link Link Link
Mihomo srs Link Link Link Link Link
Singbox srs Link Link Link Link Link
  • 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 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 1 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 2.

Chat

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

Sponsor

Afdian

Back to top

Core symbols most depended-on inside this repo

log_info
called by 7
script/remove.py
log
called by 4
script/sort.py
_valid_hostname
called by 3
script/compressor.py
read_file
called by 2
script/utils.py
is_comment
called by 2
script/compressor.py
write_file
called by 1
script/utils.py
get_bj_time
called by 1
script/utils.py
format_bj_time
called by 1
script/utils.py

Shape

Function 16
Method 7
Class 2

Languages

Python100%

Modules by API surface

script/compressor.py12 symbols
script/remove.py5 symbols
script/utils.py4 symbols
script/sort.py2 symbols
script/dns_generator.py2 symbols

For agents

$ claude mcp add AdRules \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact