gitmyhub

adblockfilters

Python ★ 7.2k updated 8h ago

去广告合并规则,每8个小时更新一次。

A project that automatically merges dozens of ad-blocking filter lists from around the web into a single updated file every 8 hours, so you only need to subscribe to one list instead of many.

Pythonsetup: easycomplexity 1/5

This repository automatically collects and merges ad-blocking filter lists from multiple sources, then publishes updated combined rule files every eight hours. The idea came from the maintainer's frustration with having to manually add many separate filter lists every time they set up a new device. Rather than doing that manually, a script pulls from upstream sources, deduplicates the entries, removes domains that can no longer be resolved, and produces a single merged file.

The output comes in several formats to match different tools. There are versions for AdGuard and AdGuard Home (browser and DNS-based ad blockers), DNSmasq (a DNS server often used on home routers), SmartDNS, Shadowrocket, QuantumultX, Clash, InviZible Pro, and personalDNSfilter. Each rule set also has a lighter "Lite" variant that focuses only on Chinese-region domains, for users who want a smaller file or whose device has a limit on the number of rules it can handle.

The project only merges, deduplicates, and strips invalid entries. It does not modify the content of the upstream filter rules. If a domain is mistakenly blocked, the suggested fix is to temporarily add a whitelist rule yourself and report the issue to whichever upstream list originally included it.

Subscription links are hosted on GitHub and also mirrored through jsDelivr and several other CDN accelerators, which are listed in the README for users in regions where direct GitHub access is slow.

The README is written in Chinese. The project is maintained by a single contributor and is open source.

Where it fits