mirror of
https://github.com/TeaOSLab/EdgeCommon.git
synced 2025-11-25 20:40:24 +08:00
安全设置中增加禁止搜索引擎、禁止爬虫、允许访问的域名等选项
This commit is contained in:
@@ -10,6 +10,9 @@ type SecurityConfig struct {
|
|||||||
AllowLocal bool `json:"allowLocal"` // 允许本地+局域网IP访问
|
AllowLocal bool `json:"allowLocal"` // 允许本地+局域网IP访问
|
||||||
AllowIPs []string `json:"allowIPs"` // 允许访问的IP
|
AllowIPs []string `json:"allowIPs"` // 允许访问的IP
|
||||||
AllowRememberLogin bool `json:"allowRememberLogin"` // 是否允许在设备上记住登录
|
AllowRememberLogin bool `json:"allowRememberLogin"` // 是否允许在设备上记住登录
|
||||||
|
DenySearchEngines bool `json:"denySearchEngines"` // 禁止常见的搜索引擎访问
|
||||||
|
DenySpiders bool `json:"denySpiders"` // 禁止常见的爬虫
|
||||||
|
AllowDomains []string `json:"allowDomains"` // 允许访问的域名
|
||||||
|
|
||||||
allowIPRanges []*shared.IPRangeConfig
|
allowIPRanges []*shared.IPRangeConfig
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user