mirror of
https://github.com/TeaOSLab/EdgeNode.git
synced 2025-11-13 23:10:25 +08:00
URL跳转中增加例外域名和仅限域名
This commit is contained in:
@@ -25,6 +25,13 @@ func (this *HTTPRequest) doHostRedirect() (blocked bool) {
|
|||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if len(u.ExceptDomains) > 0 && configutils.MatchDomains(u.ExceptDomains, this.ReqHost) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
if len(u.OnlyDomains) > 0 && !configutils.MatchDomains(u.OnlyDomains, this.ReqHost) {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
var status = u.Status
|
var status = u.Status
|
||||||
if status <= 0 {
|
if status <= 0 {
|
||||||
if searchEngineRegex.MatchString(this.RawReq.UserAgent()) {
|
if searchEngineRegex.MatchString(this.RawReq.UserAgent()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user