<di="center">
!Total Domains
!Updated Weekly
!License
Pre-optimized, deduplicated blocklists for Pi-hole
</div>
> [!NOTE]
> New — nsfw_abp.txt, a subdomain-blocking NSFW list. An ABP-format 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 A 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.
---
| List | Description | Domains |
|------|-------------|--------:|
| all_domains.txt | E combined (except NSFW) | 2,995,355 |
| ad.txt | Ad networks & services | 256,303 |
| tracking.txt | Analytics & telemetry | 17,909 |
| malicious.txt | Malware, phishing, scams | 2,510,928 |
| suspicious.txt | Potentially unwanted | 49,633 |
| comprehensive.txt | Curated multi-category | 515,907 |
| nsfw.txt | Adult content (separate) | 526,338 |
| nsfw_abp.txt | Adult content — ABP format, blocks subdomains too | 526,338 |
> 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 contains the same domains in ABP form (||domain^), so subdomains are blocked too — use it instead of nsfw.txt for more thorough filtering (needs Pi-hole Core ≥ 5.16).
Last updated: October 04, 2026
1. Go to Pi-hole admin → Settings → Adlists
2. Add the raw URL for your chosen list(s)
3. Run pihole -g to update
> 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 indi subdomains covered by an ABP entry.
Found a domain that should be blocked or a false positive? Open an issue using one of the templates:
The maintainer reviews each report, it, and opens a PR. Once merged, the change takes effect on the next weekly update.
<details>
<summary><b>What's the difference between this and Zach's Lists?</b></summary>
This repository provides static, pre-built blocklists updated weekly. Zach's Lists offers additional features:
Both use the same underlying sources and are maintained by the same person.
</details>
<details>
<summary><b>How often are these lists updated?</b></summary>
Every Sunday at midnight UTC Actions. Community-reported domains are included once their PR is merged before the next run.
</details>
<details>
<summary><b>Which list should I use?</b></summary>
<details>
<summary><b>How do community-reported domains work?</b></summary>
Domains reported 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.
</details>
See CONTRIBUTING.md for details on how to report domains, submit PRs, and use the automated workflows.
Thanks to e who supports this project.
One-Time
![]()
<a href="
<picture>
<source media="(prefers-color-scheme: dark)" srcset=" />
<source media="(prefers-color-scheme: light)" srcset=" />
<img alt="Star History Chart for zachlagden/Pi-hole-Optimized-Blocklists" src=" />
</picture>
</a>
<sub>Li, self-hosted (star-history.com's open-source backend) after GitHub <a href=" the stargazers API</a> in mid-2026.</sub>
MIT License — see LICENCE for details.
开发语言:未知
Star 数:503
该项目属于病毒分析方向的开源资源,代码结构清晰,适合安全研究人员学习参考。项目围绕Pre-built, deduplicated Pi-hole blocklists merged from 35 curated sources — a 2.4M+ domain master list plus advertising, tracking, malware/phishing, suspicious, and NSFW categories. Hosts format, rebuilt weekly.展开,提供了可运行的实现,对理解相关安全机制、工具原理与攻防技术具有较高的研究价值。
从技术实现角度看,此类项目的核心在于对底层原理的深入理解与工程化落地。开发者在研究过程中可以结合官方文档与社区讨论,梳理项目的初始化流程、核心模块职责与数据流转,逐步掌握其中的技术细节与设计思路。
1. 下载源码压缩包,解压到本地环境。
2. 根据项目类型准备对应的运行环境与依赖。
3. 按照 README 中的步骤完成配置与部署。
4. 在隔离的测试环境中运行验证,避免影响生产系统。
本资源来源于开源社区,仅供安全研究、技术学习与合法授权范围内的攻防演练使用,请勿用于任何非法或侵害他人权益的用途。使用本项目产生的一切后果由使用者自行承担。
| 资源标题 | Pi-hole-Optimized-Blocklists - Pre-built, deduplicated Pi-hole blocklists merged |
| 所属分类 | 病毒分析 |
| 发布作者 | admin |
| 发布时间 | 2026-10-05 23:18:32 |
| 下载权限 | 免费下载 |
| 附件数量 | 2 个下载链接 |
| 浏览次数 | 326 |
| 讨论数量 | 0 |
| 主题状态 | 正常讨论中 |