How igorkha/mikrotik-adlist works
Purpose and Consumers
This repository publishes curated DNS blocklists formatted for MikroTik RouterOS DNS AdList. It is a data-generation repository, not an application: MikroTik routers consume static list URLs from the repository’s hosts/ directory.
Entry Points and Automation
The transformation entry point is transform.sh. Scheduled/regenerative publishing is driven by GitHub Actions in .github/workflows/update-filters.yaml; supporting maintenance checks run through .github/workflows/pre-commit-check.yaml and .github/workflows/pre-commit-update.yaml.
Upstream Ingestion Boundary
The authoritative source catalog is the external AdGuard Host Lists Registry (filters.json), which identifies community-maintained upstream blocklists. The workflow/script boundary fetches upstream content and converts it into repository-owned artifacts rather than requiring routers to contact each original source.
Relevant output naming reflects upstream categories and publishers, for example:
• hosts/adguard_dns_filter.txt
• hosts/hagezi_pro.txt
• hosts/oisd_full.txt
Transformation Stage
transform.sh is the central processing component. Per the repository contract, it produces MikroTik-compatible DNS filtering lists, removes duplicates and invalid entries, and maintains stable structure/naming. Its output boundary is plain-text, version-controlled files; no runtime database, service API, or application server is present.
Published List Catalog
hosts/ is the release surface and primary product. Lists are independently consumable, allowing operators to select scope and resource cost rather than install a monolithic feed. Major variants include:
• Tiered general-purpose lists: hosts/1hosts_lite.txt, hosts/1hosts_pro.txt, hosts/1hosts_xtra.txt
• Broad security/privacy lists: hosts/hagezi_ultimate.txt, hosts/steven_blacks_list.txt, hosts/phishing_army.txt
• Specialized regional or policy feeds: hosts/CHN_adrules.txt, hosts/IRN_unwanted_iranian_domains.txt, hosts/hagezi_gambling_blocklist.txt
Delivery and Runtime Boundary
GitHub hosts the generated static artifacts and GitHub Actions provides the weekly update runtime. MikroTik RouterOS is the downstream runtime: its DNS AdList feature fetches selected text files and applies domain blocking at network DNS resolution. Router memory/DNS cache sizing is an operational constraint for large lists.
Governance and Provenance
Repository automation and documentation are MIT-licensed, while transformed source data remains governed by its upstream licenses. Ownership and contribution controls are defined through .github/CODEOWNERS, .github/pull_request_template.md, and LICENSE.
Main entry points: update-filters.yaml Weekly update workflow · transform.sh List transformer · pre-commit-check.yaml Pre-commit checks · pre-commit-update.yaml Pre-commit updates
Components 17
Upstream Sources
- AdGuard Host Lists Registry · filters.json catalogs community-maintained source lists.
- Community blocklists
Repository Automation
- Weekly update workflow · Schedules regeneration and publishing.
.github/workflows/update-filters.yaml - List transformer · Converts upstream lists into MikroTik-compatible domain lists.
transform.sh - Pre-commit checks
.github/workflows/pre-commit-check.yaml - Pre-commit updates
.github/workflows/pre-commit-update.yaml - Validation & deduplication · Removes invalid and duplicate entries while preserving stable naming.
Published Artifacts
- Published hosts catalog · Independently consumable RouterOS DNS AdList files.
- Tiered general lists · Lite, Pro, and Xtra variants.
hosts/1hosts_lite.txt - Broad security/privacy lists · Includes HaGeZi Ultimate, StevenBlack, and Phishing Army feeds.
hosts/hagezi_ultimate.txt - Regional & policy lists · Includes China, Iranian, and gambling-focused feeds.
hosts/CHN_adrules.txt
Delivery & Consumer
- GitHub static hosting · Serves committed list files by URL.
- MikroTik RouterOS DNS AdList · Fetches selected lists and blocks domains during DNS resolution.
- Network DNS resolution
Governance
- Ownership rules
.github/CODEOWNERS - Contribution template
.github/pull_request_template.md - MIT license · Applies to repository automation and documentation; source data retains upstream licenses.
LICENSE
Connections 16
- AdGuard Host Lists Registry → Community blocklists: catalogs
- Community blocklists → Weekly update workflow: fetched by
- Weekly update workflow → List transformer: runs
- List transformer → Validation & deduplication: processes
- Validation & deduplication → Published hosts catalog: writes
- Pre-commit updates → List transformer: maintains
- Pre-commit checks → Published hosts catalog: checks
- Published hosts catalog → Tiered general lists: includes
- Published hosts catalog → Broad security/privacy lists: includes
- Published hosts catalog → Regional & policy lists: includes
- Published hosts catalog → GitHub static hosting: published through
- GitHub static hosting → MikroTik RouterOS DNS AdList: list URLs fetched by
- MikroTik RouterOS DNS AdList → Network DNS resolution: applies blocking to
- Ownership rules → Weekly update workflow: governs changes to
- Contribution template → Weekly update workflow: guides contributions to
- MIT license → List transformer: covers repository automation