mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 23:00:25 +08:00
WAF cc防护增加“检查请求来源指纹”选项
This commit is contained in:
@@ -93,6 +93,7 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
let period = 60
|
||||
let threshold = 1000
|
||||
let ignoreCommonFiles = false
|
||||
let enableFingerprint = true
|
||||
|
||||
let options = {}
|
||||
if (window.parent.UPDATING_RULE != null) {
|
||||
@@ -117,6 +118,9 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
if (options.ignoreCommonFiles != null && typeof (options.ignoreCommonFiles) == "boolean") {
|
||||
ignoreCommonFiles = options.ignoreCommonFiles
|
||||
}
|
||||
if (options.enableFingerprint != null && typeof (options.enableFingerprint) == "boolean") {
|
||||
enableFingerprint = options.enableFingerprint
|
||||
}
|
||||
|
||||
let that = this
|
||||
setTimeout(function () {
|
||||
@@ -128,6 +132,7 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
period: period,
|
||||
threshold: threshold,
|
||||
ignoreCommonFiles: ignoreCommonFiles,
|
||||
enableFingerprint: enableFingerprint,
|
||||
options: {},
|
||||
value: threshold
|
||||
}
|
||||
@@ -141,6 +146,9 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
},
|
||||
ignoreCommonFiles: function () {
|
||||
this.change()
|
||||
},
|
||||
enableFingerprint: function () {
|
||||
this.change()
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
@@ -165,6 +173,11 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
ignoreCommonFiles = false
|
||||
}
|
||||
|
||||
let enableFingerprint = this.enableFingerprint
|
||||
if (typeof enableFingerprint != "boolean") {
|
||||
enableFingerprint = true
|
||||
}
|
||||
|
||||
this.vCheckpoint.options = [
|
||||
{
|
||||
code: "keys",
|
||||
@@ -181,6 +194,10 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
{
|
||||
code: "ignoreCommonFiles",
|
||||
value: ignoreCommonFiles
|
||||
},
|
||||
{
|
||||
code: "enableFingerprint",
|
||||
value: enableFingerprint
|
||||
}
|
||||
]
|
||||
},
|
||||
@@ -218,6 +235,13 @@ Vue.component("http-firewall-checkpoint-cc", {
|
||||
<p class="comment" v-if="thresholdTooLow()"><span class="red">对于网站类应用来说,当前阈值设置的太低,有可能会影响用户正常访问。</span></p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>检查请求来源指纹</td>
|
||||
<td>
|
||||
<checkbox v-model="enableFingerprint"></checkbox>
|
||||
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击。</p>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>忽略常见文件</td>
|
||||
<td>
|
||||
|
||||
Reference in New Issue
Block a user