From 9aba52c276ab98592b6710ce23c1020d941922e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E7=A5=A5=E8=B6=85?= Date: Wed, 17 Apr 2024 15:45:06 +0800 Subject: [PATCH] =?UTF-8?q?=E9=98=B2=E7=9B=97=E9=93=BE=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E2=80=9C=E4=BE=8B=E5=A4=96URL=E2=80=9C?= =?UTF-8?q?=E5=92=8C=E2=80=9C=E9=99=90=E5=88=B6URL=E2=80=9D=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../server/http-referers-config-box.js | 25 ++++++++++++++++++- .../server/user-agent-config-box.js | 4 +-- 2 files changed, 26 insertions(+), 3 deletions(-) diff --git a/web/public/js/components/server/http-referers-config-box.js b/web/public/js/components/server/http-referers-config-box.js index e75ac13f..724c15f0 100644 --- a/web/public/js/components/server/http-referers-config-box.js +++ b/web/public/js/components/server/http-referers-config-box.js @@ -20,7 +20,8 @@ Vue.component("http-referers-config-box", { config.denyDomains = [] } return { - config: config + config: config, + moreOptionsVisible: false } }, methods: { @@ -38,6 +39,9 @@ Vue.component("http-referers-config-box", { this.config.denyDomains = domains this.$forceUpdate() } + }, + showMoreOptions: function () { + this.moreOptionsVisible = !this.moreOptionsVisible } }, template: `
@@ -85,6 +89,11 @@ Vue.component("http-referers-config-box", {

禁止的来源域名列表,比如example.org*.example.org;除了这些禁止的来源域名外,其他域名都会被允许,除非限定了允许的来源域名。

+ + + + + 同时检查Origin @@ -92,6 +101,20 @@ Vue.component("http-referers-config-box", {

如果请求没有指定Referer Header,则尝试检查Origin Header,多用于跨站调用。

+ + 例外URL + + +

如果填写了例外URL,表示这些URL跳过不做处理。

+ + + + 限制URL + + +

如果填写了限制URL,表示只对这些URL进行处理;如果不填则表示支持所有的URL。

+ +
diff --git a/web/public/js/components/server/user-agent-config-box.js b/web/public/js/components/server/user-agent-config-box.js index 33ad182a..2a8f1250 100644 --- a/web/public/js/components/server/user-agent-config-box.js +++ b/web/public/js/components/server/user-agent-config-box.js @@ -162,14 +162,14 @@ Vue.component("user-agent-config-box", { 例外URL -

如果填写了例外URL,表示这些URL跳过5秒盾不做处理。

+

如果填写了例外URL,表示这些URL跳过不做处理。

限制URL -

如果填写了限制URL,表示只对这些URL进行5秒盾处理;如果不填则表示支持所有的URL。

+

如果填写了限制URL,表示只对这些URL进行处理;如果不填则表示支持所有的URL。