Skip to content

razaxq/dns-blocklists-sing-box

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 

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
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
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-dyndns.srs HaGeZi: DynDNS. Download
hagezi-tif.srs HaGeZi: Threat Intelligence Feeds. Download
hagezi-url-shortener.srs HaGeZi: URL Shortener. 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

🌍 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-youlist.srs 🇰🇷 KOR: YouList. Download
mkd-macedonian.srs 🇲🇰 MKD: Macedonian Blocklist. Download
nor-dandelion-sprout.srs 🇳🇴 NOR: Dandelion Sprouts. Download
pol-filters.srs 🇵🇱 POL: Polish filters. Download
tur-turkish-ad-hosts.srs 🇹🇷 TUR: Turkish Ad Hosts. Download
ukrainian-security.srs 🇺🇦 UKR: Ukrainian Security Filter. Download
vnm-abpvn.srs 🇻🇳 VNM: ABPVN List. Download

🔧 Specific & Other

Rule Set Description Download
dandelion-sprout-game-console.srs Game Console Adblock. 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-tracker-apple.srs HaGeZi: Apple Tracker. Download
hagezi-tracker-oppo-realme.srs HaGeZi: OPPO/Realme Tracker. Download
hagezi-tracker-samsung.srs HaGeZi: Samsung 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
no-google.srs No Google. Download
shadowwhisperer-dating.srs ShadowWhisperer Dating List. Download
smart-tv.srs Smart TV Blocklist. 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.

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

Watchers

Forks

Contributors

Languages