mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 23:30:26 +08:00
更新components.js
This commit is contained in:
@@ -2125,7 +2125,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
|
|||||||
<td>检查请求来源指纹</td>
|
<td>检查请求来源指纹</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox v-model="enableFingerprint"></checkbox>
|
<checkbox v-model="enableFingerprint"></checkbox>
|
||||||
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击。</p>
|
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击;如果你在网站前面放置了别的反向代理服务,请取消此选项。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -3418,7 +3418,7 @@ example2.com
|
|||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div class="margin"></div>
|
<div class="margin"></div>
|
||||||
</div>`}),Vue.component("http-cc-config-box",{props:["v-cc-config","v-is-location","v-is-group"],data:function(){let e=this.vCcConfig;return null==(e=null==e?{isPrior:!1,isOn:!1,onlyURLPatterns:[],exceptURLPatterns:[]}:e).onlyURLPatterns&&(e.onlyURLPatterns=[]),null==e.exceptURLPatterns&&(e.exceptURLPatterns=[]),{config:e,moreOptionsVisible:!1}},methods:{showMoreOptions:function(){this.moreOptionsVisible=!this.moreOptionsVisible}},template:`<div>
|
</div>`}),Vue.component("http-cc-config-box",{props:["v-cc-config","v-is-location","v-is-group"],data:function(){let e=this.vCcConfig;return"boolean"!=typeof(e=null==e?{isPrior:!1,isOn:!1,enableFingerprint:!0,enableGET302:!0,onlyURLPatterns:[],exceptURLPatterns:[]}:e).enableFingerprint&&(e.enableFingerprint=!0),"boolean"!=typeof e.enableGET302&&(e.enableGET302=!0),null==e.onlyURLPatterns&&(e.onlyURLPatterns=[]),null==e.exceptURLPatterns&&(e.exceptURLPatterns=[]),{config:e,moreOptionsVisible:!1}},methods:{showMoreOptions:function(){this.moreOptionsVisible=!this.moreOptionsVisible}},template:`<div>
|
||||||
<input type="hidden" name="ccJSON" :value="JSON.stringify(config)"/>
|
<input type="hidden" name="ccJSON" :value="JSON.stringify(config)"/>
|
||||||
<table class="ui table definition selectable">
|
<table class="ui table definition selectable">
|
||||||
<prior-checkbox :v-config="config" v-if="vIsLocation || vIsGroup"></prior-checkbox>
|
<prior-checkbox :v-config="config" v-if="vIsLocation || vIsGroup"></prior-checkbox>
|
||||||
@@ -3451,6 +3451,20 @@ example2.com
|
|||||||
<p class="comment">如果填写了支持URL,表示只对这些URL进行CC防护处理;如果不填则表示支持所有的URL。</p>
|
<p class="comment">如果填写了支持URL,表示只对这些URL进行CC防护处理;如果不填则表示支持所有的URL。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>检查请求来源指纹</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="config.enableFingerprint"></checkbox>
|
||||||
|
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击;如果你在网站前面放置了别的反向代理服务,请取消此选项。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>启用GET302校验</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="config.enableGET302"></checkbox>
|
||||||
|
<p class="comment">选中后,表示自动通过GET302方法来校验客户端。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
@@ -6112,7 +6112,7 @@ Vue.component("http-firewall-checkpoint-cc", {
|
|||||||
<td>检查请求来源指纹</td>
|
<td>检查请求来源指纹</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox v-model="enableFingerprint"></checkbox>
|
<checkbox v-model="enableFingerprint"></checkbox>
|
||||||
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击。</p>
|
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击;如果你在网站前面放置了别的反向代理服务,请取消此选项。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
@@ -9621,15 +9621,27 @@ Vue.component("http-compression-config-box", {
|
|||||||
Vue.component("http-cc-config-box", {
|
Vue.component("http-cc-config-box", {
|
||||||
props: ["v-cc-config", "v-is-location", "v-is-group"],
|
props: ["v-cc-config", "v-is-location", "v-is-group"],
|
||||||
data: function () {
|
data: function () {
|
||||||
|
|
||||||
|
|
||||||
let config = this.vCcConfig
|
let config = this.vCcConfig
|
||||||
if (config == null) {
|
if (config == null) {
|
||||||
config = {
|
config = {
|
||||||
isPrior: false,
|
isPrior: false,
|
||||||
isOn: false,
|
isOn: false,
|
||||||
|
enableFingerprint: true,
|
||||||
|
enableGET302: true,
|
||||||
onlyURLPatterns: [],
|
onlyURLPatterns: [],
|
||||||
exceptURLPatterns: []
|
exceptURLPatterns: []
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (typeof config.enableFingerprint != "boolean") {
|
||||||
|
config.enableFingerprint = true
|
||||||
|
}
|
||||||
|
if (typeof config.enableGET302 != "boolean") {
|
||||||
|
config.enableGET302 = true
|
||||||
|
}
|
||||||
|
|
||||||
if (config.onlyURLPatterns == null) {
|
if (config.onlyURLPatterns == null) {
|
||||||
config.onlyURLPatterns = []
|
config.onlyURLPatterns = []
|
||||||
}
|
}
|
||||||
@@ -9679,6 +9691,20 @@ Vue.component("http-cc-config-box", {
|
|||||||
<p class="comment">如果填写了支持URL,表示只对这些URL进行CC防护处理;如果不填则表示支持所有的URL。</p>
|
<p class="comment">如果填写了支持URL,表示只对这些URL进行CC防护处理;如果不填则表示支持所有的URL。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>检查请求来源指纹</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="config.enableFingerprint"></checkbox>
|
||||||
|
<p class="comment">在接收到HTTPS请求时尝试检查请求来源的指纹,用来检测代理服务和爬虫攻击;如果你在网站前面放置了别的反向代理服务,请取消此选项。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>启用GET302校验</td>
|
||||||
|
<td>
|
||||||
|
<checkbox v-model="config.enableGET302"></checkbox>
|
||||||
|
<p class="comment">选中后,表示自动通过GET302方法来校验客户端。</p>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|||||||
Reference in New Issue
Block a user