Pi-hole-Optimized-Blocklists

zachlagdenMIT活跃维护

预构建并去重的 Pi-hole 拦截列表,整合多个精选上游源和社区举报,按广告、追踪、恶意软件与钓鱼、可疑、NSFW 分类提供主列表,每周自动重建。

Pre-built, deduplicated Pi-hole blocklists merged from curated upstream sources and community reports: a master list plus advertising, tracking, malware and phishing, suspicious, and NSFW categories. Rebuilt weekly.

暂无版本562star +4 / 7 天23fork同步于 2026-11-10 23:56 UTC

怎么上手

由 README 提炼,执行前请确认
在 Pi-hole 管理界面 Lists(v6)或 Group Management → Adlists(v5)中添加列表 URL,然后运行:pihole -g
硬件要求按 README 说明

README 未说明;列表供 Pi-hole 使用,需 Pi-hole Core ≥ 5.16 / FTL ≥ 5.22 以支持 ABP 格式条目

下载:源码 zip·GitHub Releases(安装包)本站不镜像安装包

项目说明

由 README 自动翻译提炼

预构建去重的 Pi-hole 拦截列表,按广告、追踪、恶意等分类,每周自动重建

预构建并去重的 Pi-hole 拦截列表,整合多个精选上游源和社区举报,按广告、追踪、恶意软件与钓鱼、可疑、NSFW 分类提供主列表,每周自动重建。

核心能力

  • 合并 HaGeZi、OISD、1Hosts 等上游源并去重
  • 提供总表及广告、追踪、恶意、可疑、NSFW 分类列表
  • 每周日 00:00 UTC 由 GitHub Actions 自动重建
  • NSFW 提供 ABP 格式版本,可连带拦截子域名
  • 通过 issue 模板提交误报或新增域名,合并后下周生效

容易踩的坑

nsfw.txt 不包含在 all_domains.txt 中,需要 NSFW 拦截须单独添加;nsfw_abp.txt 应替代而非叠加 nsfw.txt 使用;all_domains.txt 拦截范围最大,可能产生误报

内容由模型根据 README 生成,可能不完整或不准确,以官方文档为准。看原文 README

最近发版

0 个版本

暂无 release 数据(可能没有发版,或尚未同步)。

用户点评

登录用户的真实使用记录,可按版本和硬件筛选
共 0 条

    还没有人点评。第一个说出真实体验的人最有价值。

    README 原文

    未翻译

    Pi-hole Optimized Blocklists

    Total Domains Updated Weekly License

    Pre-optimized, deduplicated blocklists for Pi-hole

    [!NOTE] New — nsfw_abp.txt, a subdomain-blocking NSFW list. An ABP-format version of nsfw.txt that blocks adult domains and all their subdomains (e.g. cdn.example.com as well as example.com) for more complete filtering. Requires Pi-hole Core ≥ 5.16 / FTL ≥ 5.22. See Available Lists.

    Looking for more features? Check out Zach's Lists — a full-featured blocklist platform with custom source selection, smart whitelisting, and multiple output formats.


    Available Lists

    ListDescriptionDomains
    all_domains.txtEverything combined (except NSFW)2,076,566
    advertising.txtAd networks & services269,125
    tracking.txtAnalytics & telemetry18,388
    malicious.txtMalware, phishing, scams1,588,304
    suspicious.txtPotentially unwanted55,550
    comprehensive.txtCurated multi-category513,363
    nsfw.txtAdult content (separate)547,920
    nsfw_abp.txtAdult content — ABP format, blocks subdomains too515,886

    Note: nsfw.txt is not included in all_domains.txt because it blocks legitimate adult sites. Add it separately if you want NSFW blocking. nsfw_abp.txt covers the same domains in ABP form (||domain^), so subdomains are blocked too. It leaves out subdomains that one of its rules already blocks, so it has fewer lines than nsfw.txt. Use it instead of nsfw.txt, not alongside it, for more thorough filtering (needs Pi-hole Core ≥ 5.16).

    Last updated: November 08, 2026

    Quick Start

    1. In the Pi-hole admin interface, open Lists (Pi-hole v6) or Group Management → Adlists (Pi-hole v5)
    2. Add the URL of each list you want from the table above
    3. Run pihole -g, or use Tools → Update Gravity, to load them

    The lists may include ABP-style entries (||domain^) that block a domain and all its subdomains. These require Pi-hole Core ≥ 5.16 / FTL ≥ 5.22 (released 2023; standard on current installs). Note that pihole -q won't enumerate the individual subdomains covered by an ABP entry.

    Report a Domain

    Found a domain that should be blocked or a false positive? Open an issue using one of the templates:

    • Block Domain — request a malicious, ad, tracking, suspicious or adult domain to be blocked
    • False Positive — report a legitimate domain that's being incorrectly blocked
    • Bug Report — report a problem with the lists or automation

    A bot posts an evidence report on each block and false-positive issue, and the maintainer makes every decision. An accepted change takes effect at the next weekly update.

    FAQ

    This repository provides static, pre-built blocklists updated weekly. Zach's Lists offers additional features:

    • Custom source selection — pick which blocklists to include
    • Smart whitelisting — regex, wildcards, subdomain patterns
    • Multiple formats — hosts, plain, and Adblock syntax
    • Real-time build progress

    Both use the same underlying sources and are maintained by the same person.

    Every Sunday, by a GitHub Actions build scheduled for 00:00 UTC. GitHub often starts scheduled builds a few hours late. Community-reported domains are included once their PR is merged before the next run.

    • comprehensive.txt — Good balance for most users
    • all_domains.txt — Maximum blocking (may cause false positives)
    • Individual category lists — If you want granular control

    Domains reported via issues are added to custom/<category>.txt files in the repo. These are referenced as sources in blocklists.conf via raw GitHub URLs, so the optimizer picks them up on the next weekly run just like any other upstream source.

    Sources

    The lists are built from these sources, configured in blocklists.conf. Each list keeps its own licence.

    SourceLists usedCategoryLicence
    HaGeZi DNS BlocklistsProcomprehensiveGPL-3.0
    Threat Intelligence Feeds, Fake, DynDNSmalicious
    Pop-Up Adsadvertising
    Native trackers: Amazon, Apple, Huawei, LG webOS, OPPO/Realme, Roku, Samsung, TikTok, Vivo, Windows/Office, Xiaomitracking
    OISDBigcomprehensiveGPL-3.0
    NSFWnsfw
    1HostsLitecomprehensiveMPL-2.0
    AdAwayHostsadvertisingCC BY 3.0
    Peter Lowe's listAd serversadvertisingOwn licence, no commercial use
    anudeepNDAd serversadvertisingMIT
    AdGuard DNS filterDNS filteradvertisingGPL-3.0
    FrogeyeFirst-party trackerstrackingMIT
    PerflystSmart TV, Android trackingtrackingMIT
    Phishing ArmyExtendedmaliciousCC BY-NC 4.0
    Stalkerware indicatorsHostsmaliciousCC BY 4.0
    DandelionSproutAnti-Malware ListmaliciousDandelicence
    malware-filterPhishing filtermaliciousCC BY-SA 4.0
    Spam404Main blacklistmaliciousCC BY-SA 4.0
    ShadowWhispererScam, MalwaremaliciousUnlicense
    UT1 blacklists (via Firebog)CryptojackingsuspiciousCC BY-SA 4.0
    KADhostsKADhostssuspiciousCC BY-SA 4.0
    StevenBlack hostsPorn onlynsfwMIT
    Community reports (custom/)One list per categoryall except comprehensiveMIT

    Contributing

    See CONTRIBUTING.md for details on how to report domains, submit PRs, and use the automated workflows.

    Sponsors

    Thanks to everyone who supports this project.

    One-Time

    @rnsimmons

    Star History

    Live chart, self-hosted (star-history.com's open-source backend) after GitHub restricted the stargazers API in mid-2026.

    License

    MIT License — see LICENCE for details.