配置更新
This commit is contained in:
@@ -10,12 +10,12 @@
|
|||||||
"enableAPI": true
|
"enableAPI": true
|
||||||
},
|
},
|
||||||
"shield": {
|
"shield": {
|
||||||
"localRulesFile": "rules.txt",
|
"localRulesFile": "data/rules.txt",
|
||||||
"remoteRules": [
|
"remoteRules": [
|
||||||
"https://example.com/rules.txt"
|
"https://example.com/rules.txt"
|
||||||
],
|
],
|
||||||
"updateInterval": 3600,
|
"updateInterval": 3600,
|
||||||
"hostsFile": "hosts.txt"
|
"hostsFile": "data/hosts.txt"
|
||||||
},
|
},
|
||||||
"log": {
|
"log": {
|
||||||
"file": "dns-server.log",
|
"file": "dns-server.log",
|
||||||
|
|||||||
6
data/hosts.txt
Normal file
6
data/hosts.txt
Normal file
@@ -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
|
||||||
5
data/rules.txt
Normal file
5
data/rules.txt
Normal file
@@ -0,0 +1,5 @@
|
|||||||
|
||hm.baidu.com
|
||||||
|
||baidu.com
|
||||||
|
/.*tracking.*/
|
||||||
|
/adjust.net/
|
||||||
|
/ad./
|
||||||
Reference in New Issue
Block a user