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