Skip to content

About

Sing-box Rule Sets: Automated daily conversion of popular DNS blocklists (HaGeZi, OISD, 1Hosts, etc.) into .srs format. Covers ads, tracking, security, and regional filters for enhanced privacy.

Topics

Resources

Stars

40 stars

Watchers

0 watching

Forks

Latest commit

 

History

105 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Sing-box DNS Blocklist Rule Sets

中文说明 | English

This repository automatically converts various popular DNS Blocklists (AdGuard Home format) into Sing-box Rule Set (.srs) format.

Distribution branch migrated to rule-set. Generated .srs files are published to the orphan rule-set branch (force-reset on every update) so main stays small. Update any cached URLs: @main/rule-set/<name>.srs → @rule-set/<name>.srs.

Available Rule Sets

The following rule sets are automatically updated daily. All files are hosted on GitHub for fast access, with jsDelivr acceleration available.

🌟 HaGeZi Multi-Purpose

Rule Set Description Download
hagezi-light.srs Basic protection, low false positive rate. Download
hagezi-normal.srs Recommended for most users. Download
hagezi-pro.srs Better protection, slightly higher chance of false positives. Download
hagezi-pro-plus.srs Pro + more extensive lists. Download
hagezi-ultimate.srs Maximum protection, for advanced users. Download

📦 Conventional & Ads

Rule Set Description Download
1hosts-lite.srs 1Hosts Lite: Lightweight, low false positives. Download
1hosts-xtra.srs 1Hosts Xtra: Aggressive protection. Download
adaway.srs AdAway: Mobile-focused hosts file. Download
adguard-dns-filter.srs AdGuard DNS Filter: Standard protection. Download
aw-avenue-ads.srs AW Avenue Ads Rule. Download
dan-pollock.srs Dan Pollock’s List. Download
disconnect-ads.srs Disconnect: Curated ad domains. Download
frogeye-firstparty.srs Frogeye: First-party trackers. Download
goodbye-ads.srs Goodbye Ads: Mobile / YouTube focus. Download
oisd-big.srs OISD Big: Comprehensive blocklist. Download
oisd-small.srs OISD Small: Basic ad blocking. Download
peter-lowe.srs Peter Lowe’s Blocklist. Download
shadowwhisperer-tracking.srs ShadowWhisperer Tracking List. Download
steven-black.srs Steven Black’s List. Download

🛡️ Security & Privacy

Rule Set Description Download
big-list-hacked-malware.srs The Big List of Hacked Malware Web Sites. Download
dandelion-sprout-anti-malware.srs Dandelion Sprout’s Anti-Malware. Download
hagezi-abused-tlds.srs HaGeZi: Most Abused TLDs. Download
hagezi-badware-hoster.srs HaGeZi: Badware Hoster. Download
hagezi-bypass.srs HaGeZi: DoH/VPN/Proxy Bypass. Download
hagezi-doh.srs HaGeZi: DNS-over-HTTPS servers. Download
hagezi-dyndns.srs HaGeZi: DynDNS. Download
hagezi-fake.srs HaGeZi: Fake stores & scam sites. Download
hagezi-tif.srs HaGeZi: Threat Intelligence Feeds. Download
hagezi-url-shortener.srs HaGeZi: URL Shortener. Download
mullvad-privacy.srs Mullvad: Privacy / tracker domains. Download
nocoin.srs NoCoin Filter List. Download
phishing-army.srs Phishing Army. Download
scam-blocklist.srs Scam Blocklist. Download
security-phishing.srs Phishing URL Blocklist. Download
shadowwhisperer-malware.srs ShadowWhisperer Malware List. Download
stalkerware.srs Stalkerware Indicators. Download
ublock-badware.srs uBlock Origin: Badware risks. Download

🌍 Regional Lists

Rule Set Description Download
chn-adrules.srs 🇨🇳 CHN: AdRules DNS List. Download
chn-anti-ad.srs 🇨🇳 CHN: anti-AD. Download
hun-hufilter.srs 🇭🇺 HUN: Hufilter. Download
idn-abpindo.srs 🇮🇩 IDN: ABPindo. Download
irn-persianblocker.srs 🇮🇷 IRN: PersianBlocker. Download
isr-easylist-hebrew.srs 🇮🇱 ISR: EasyList Hebrew. Download
kor-list-kr.srs 🇰🇷 KOR: List-KR DNS (AdGuard HLR). Download
kor-youlist.srs 🇰🇷 KOR: YouList. Download
mkd-macedonian.srs 🇲🇰 MKD: Macedonian Blocklist. Download
nor-dandelion-sprout.srs 🇳🇴 NOR: Dandelion Sprouts. Download
pol-cert-polska.srs 🇵🇱 POL: CERT Polska malicious domains. Download
pol-filters.srs 🇵🇱 POL: Polish filters. Download
swe-frellwits.srs 🇸🇪 SWE: Frellwit's Swedish Hosts. Download
tur-turkish-ad-hosts.srs 🇹🇷 TUR: Turkish Ad Hosts. Download
vnm-abpvn.srs 🇻🇳 VNM: ABPVN List. Download

🔧 Specific & Other

Rule Set Description Download
dandelion-sprout-push.srs Anti Push Notifications. Download
hagezi-allowlist-referral.srs HaGeZi: Allowlist Referral. Download
hagezi-anti-piracy.srs HaGeZi: Anti-Piracy. Download
hagezi-gambling.srs HaGeZi: Gambling. Download
hagezi-nsfw.srs HaGeZi: Adult content. Download
hagezi-popup-ads.srs HaGeZi: Pop-Up Ads. Download
hagezi-safesearch.srs HaGeZi: Safe search enforcement. Download
hagezi-social.srs HaGeZi: Social media domains. Download
hagezi-tracker-amazon.srs HaGeZi: Amazon Tracker. Download
hagezi-tracker-apple.srs HaGeZi: Apple Tracker. Download
hagezi-tracker-huawei.srs HaGeZi: Huawei Tracker. Download
hagezi-tracker-lg-webos.srs HaGeZi: LG webOS Tracker. Download
hagezi-tracker-oppo-realme.srs HaGeZi: OPPO/Realme Tracker. Download
hagezi-tracker-roku.srs HaGeZi: Roku Tracker. Download
hagezi-tracker-samsung.srs HaGeZi: Samsung Tracker. Download
hagezi-tracker-tiktok.srs HaGeZi: TikTok Tracker. Download
hagezi-tracker-vivo.srs HaGeZi: Vivo Tracker. Download
hagezi-tracker-windows.srs HaGeZi: Windows/Office Tracker. Download
hagezi-tracker-xiaomi.srs HaGeZi: Xiaomi Tracker. Download
mullvad-social.srs Mullvad: Social media domains. Download
no-google.srs No Google. Download
oisd-nsfw-small.srs OISD NSFW Small: Lightweight adult content. Download
oisd-nsfw.srs OISD NSFW: Adult content. Download
shadowwhisperer-dating.srs ShadowWhisperer Dating List. Download
smart-tv.srs Smart TV Blocklist. Download
windows-spy-blocker.srs WindowsSpyBlocker: Windows telemetry. Download

Usage in Sing-box

You can use these remote rule sets directly in your config.json.

Example route configuration:

{
  "route": {
    "rule_set": [
      {
        "tag": "geosite-hagezi",
        "type": "remote",
        "format": "binary",
        "url": "https://cdn.jsdelivr.net/gh/razaxq/dns-blocklists-sing-box@rule-set/hagezi-normal.srs",
        "download_detour": "direct" 
      }
    ],
    "rules": [
      {
        "rule_set": "geosite-hagezi",
        "action": "reject"
      }
    ]
  }
}

Note: Replace hagezi-normal.srs with your preferred variant.

Automation

This repository uses GitHub Actions to:

  1. Download the latest DNS blocklists.
  2. Download the sing-box binary.
  3. Convert rules to .srs format.
  4. Publish the binary files to the latest tag in Releases.

Updates run automatically every day at 02:00 UTC.

The body of every Release includes a per-rule conversion ratio — Output DNS entries divided by Source lines in the upstream file — so you can see at a glance which lists translate cleanly into DNS rules and which (typically EasyList-style browser filters) only contribute their network-layer subset. A Total row aggregates across all successful rules, and any rules that failed today are listed below with the failing step.

Manual Build

If you want to build the rules locally:

  1. Clone this repository.
  2. Run the update script:
    chmod +x update.sh
    ./update.sh
  3. The converted .srs files will be in the rule-set/ directory.

Credits

About

Sing-box Rule Sets: Automated daily conversion of popular DNS blocklists (HaGeZi, OISD, 1Hosts, etc.) into .srs format. Covers ads, tracking, security, and regional filters for enhanced privacy.

Topics

Resources

Stars

40 stars

Watchers

0 watching

Forks

Releases

Used by

Contributors

Languages