From d870f6bfccf1e74910bd57323762154a7fb4ae34 Mon Sep 17 00:00:00 2001 From: Alex Yang Date: Sun, 23 Nov 2025 19:16:42 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.json | 4 ++-- data/hosts.txt | 6 ++++++ data/rules.txt | 5 +++++ 3 files changed, 13 insertions(+), 2 deletions(-) create mode 100644 data/hosts.txt create mode 100644 data/rules.txt diff --git a/config.json b/config.json index 318c696..0e57442 100644 --- a/config.json +++ b/config.json @@ -10,12 +10,12 @@ "enableAPI": true }, "shield": { - "localRulesFile": "rules.txt", + "localRulesFile": "data/rules.txt", "remoteRules": [ "https://example.com/rules.txt" ], "updateInterval": 3600, - "hostsFile": "hosts.txt" + "hostsFile": "data/hosts.txt" }, "log": { "file": "dns-server.log", diff --git a/data/hosts.txt b/data/hosts.txt new file mode 100644 index 0000000..6f4c647 --- /dev/null +++ b/data/hosts.txt @@ -0,0 +1,6 @@ +# DNS Server Hosts File +# Generated by DNS Server + +::1 localhost +ad.qq.com 127.0.0.1 +ad.qq.com 0.0.0.0 \ No newline at end of file diff --git a/data/rules.txt b/data/rules.txt new file mode 100644 index 0000000..bd67aa8 --- /dev/null +++ b/data/rules.txt @@ -0,0 +1,5 @@ +||hm.baidu.com +||baidu.com +/.*tracking.*/ +/adjust.net/ +/ad./ \ No newline at end of file