# hagezi/dns-blocklists architecture

> Architecture diagram of the GitHub repository hagezi/dns-blocklists, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/hagezi/dns-blocklists
- Repository: https://github.com/hagezi/dns-blocklists

## Overview

This repository is a catalog of DNS blocklists, not a runtime service: users choose a protection list, select a format supported by their DNS or content-blocking tool, and use the resulting list. The README documents tier relationships, the TIF add-on, and several standalone protection categories. The tree shows separate format directories; no source excerpts were provided, so relationships beyond those documented in the README are omitted.

Main entry points: [`adblock`](https://github.com/hagezi/dns-blocklists/tree/main/adblock) (Multi tiers), [`adblock/tif.txt`](https://github.com/hagezi/dns-blocklists/blob/main/adblock/tif.txt) (Threat feeds), [`adblock/native.amazon.txt`](https://github.com/hagezi/dns-blocklists/blob/main/adblock/native.amazon.txt) (Native trackers), [`adguard/dns-rebind-protection.txt`](https://github.com/hagezi/dns-blocklists/blob/main/adguard/dns-rebind-protection.txt) (DNS rebind rules)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_lists["Protection lists"]
  node_tiers["Multi tiers"]
  node_tif["Threat feeds<br/>[tif.txt]"]
  node_specialty["Specialty lists"]
  node_native["Native trackers<br/>[native.amazon.txt]"]
  node_rebind["DNS rebind rules"]
  node_ipfeeds["Threat IP feeds<br/>[tif.txt]"]
end

subgraph group_formats["List formats"]
  node_adblock["Adblock format"]
  node_dnsmasq["Dnsmasq format"]
  node_rpz["RPZ format"]
  node_wildcard["Wildcard format"]
end

subgraph group_extras["Supporting tools"]
  node_linkgen["Direct link generator<br/>[index.html]"]
  node_lookup["Blocklist lookup<br/>[index.html]"]
end

node_user(("List user"))
node_dns_tool(("DNS or blocker"))

node_user -->|"chooses one"| node_tiers
node_user -->|"adds optionally"| node_tif
node_tiers -->|"can pair with"| node_tif
node_user -->|"selects list"| node_specialty
node_user -->|"selects list"| node_native
node_user -->|"selects rules"| node_rebind
node_user -->|"selects feed"| node_ipfeeds
node_tiers -->|"available as"| node_adblock
node_tiers -->|"available as"| node_dnsmasq
node_tiers -->|"available as"| node_rpz
node_tiers -->|"available as"| node_wildcard
node_user -->|"matches format"| node_dns_tool
node_user -->|"builds links"| node_linkgen
node_user -->|"checks domain"| node_lookup

click node_tiers "https://github.com/hagezi/dns-blocklists/tree/main/adblock"
click node_tif "https://github.com/hagezi/dns-blocklists/blob/main/adblock/tif.txt"
click node_specialty "https://github.com/hagezi/dns-blocklists/tree/main/adblock"
click node_native "https://github.com/hagezi/dns-blocklists/blob/main/adblock/native.amazon.txt"
click node_rebind "https://github.com/hagezi/dns-blocklists/blob/main/adguard/dns-rebind-protection.txt"
click node_ipfeeds "https://github.com/hagezi/dns-blocklists/blob/main/ips/tif.txt"
click node_adblock "https://github.com/hagezi/dns-blocklists/tree/main/adblock"
click node_dnsmasq "https://github.com/hagezi/dns-blocklists/tree/main/dnsmasq"
click node_rpz "https://github.com/hagezi/dns-blocklists/tree/main/rpz"
click node_wildcard "https://github.com/hagezi/dns-blocklists/tree/main/wildcard"
click node_linkgen "https://github.com/hagezi/dns-blocklists/blob/main/index.html"
click node_lookup "https://github.com/hagezi/dns-blocklists/blob/main/index.html"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_tiers,node_tif,node_specialty,node_native,node_rebind,node_ipfeeds,node_user toneBlue
class node_adblock,node_dnsmasq,node_rpz,node_wildcard toneAmber
class node_linkgen,node_lookup toneMint
class node_dns_tool toneIndigo
```

## Components

### Protection lists

- [Multi tiers](https://github.com/hagezi/dns-blocklists/tree/main/adblock): `adblock`
- [Threat feeds](https://github.com/hagezi/dns-blocklists/blob/main/adblock/tif.txt): `adblock/tif.txt`
- [Specialty lists](https://github.com/hagezi/dns-blocklists/tree/main/adblock): `adblock`
- [Native trackers](https://github.com/hagezi/dns-blocklists/blob/main/adblock/native.amazon.txt): `adblock/native.amazon.txt`
- [DNS rebind rules](https://github.com/hagezi/dns-blocklists/blob/main/adguard/dns-rebind-protection.txt): `adguard/dns-rebind-protection.txt`
- [Threat IP feeds](https://github.com/hagezi/dns-blocklists/blob/main/ips/tif.txt): `ips/tif.txt`

### List formats

- [Adblock format](https://github.com/hagezi/dns-blocklists/tree/main/adblock): `adblock`
- [Dnsmasq format](https://github.com/hagezi/dns-blocklists/tree/main/dnsmasq): `dnsmasq`
- [RPZ format](https://github.com/hagezi/dns-blocklists/tree/main/rpz): `rpz`
- [Wildcard format](https://github.com/hagezi/dns-blocklists/tree/main/wildcard): `wildcard`

### Supporting tools

- [Direct link generator](https://github.com/hagezi/dns-blocklists/blob/main/index.html): `index.html`
- [Blocklist lookup](https://github.com/hagezi/dns-blocklists/blob/main/index.html): `index.html`

### Other components

- **List user**
- **DNS or blocker**

## Connections

- List user → Multi tiers: chooses one (evidence: `README.md`)
- List user → Threat feeds: adds optionally (evidence: `README.md`)
- Multi tiers → Threat feeds: can pair with (evidence: `README.md`)
- List user → Specialty lists: selects list (evidence: `README.md`)
- List user → Native trackers: selects list (evidence: `README.md`)
- List user → DNS rebind rules: selects rules (evidence: `README.md`)
- List user → Threat IP feeds: selects feed (evidence: `README.md`)
- Multi tiers → Adblock format: available as (evidence: `README.md`)
- Multi tiers → Dnsmasq format: available as (evidence: `README.md`)
- Multi tiers → RPZ format: available as (evidence: `README.md`)
- Multi tiers → Wildcard format: available as (evidence: `README.md`)
- List user → DNS or blocker: matches format (evidence: `README.md`)
- List user → Direct link generator: builds links (evidence: `README.md`)
- List user → Blocklist lookup: checks domain (evidence: `README.md`)
