From 1deec2821fce05dfd04554c82365f6eb4c68fa21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=85=94=E5=A7=AC=E6=A1=91?= Date: Mon, 14 Jun 2021 13:38:24 +0800 Subject: [PATCH] =?UTF-8?q?=E9=80=9A=E8=BF=87=E8=AE=A2=E9=98=85=E9=93=BE?= =?UTF-8?q?=E6=8E=A5=E5=9F=9F=E5=90=8D=E8=AE=BF=E9=97=AE=E7=BD=91=E7=AB=99?= =?UTF-8?q?=E6=A3=80=E6=B5=8B=E6=96=B9=E5=BC=8F=E6=9B=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Http/Middleware/isForbidden.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Http/Middleware/isForbidden.php b/app/Http/Middleware/isForbidden.php index dbaaa02b..75a99907 100644 --- a/app/Http/Middleware/isForbidden.php +++ b/app/Http/Middleware/isForbidden.php @@ -29,8 +29,7 @@ class isForbidden } // 拒绝通过订阅链接域名访问网站,防止网站被探测 - if (strpos(sysConfig('subscribe_domain'), $request->getHost()) !== false - && ! str_contains(sysConfig('subscribe_domain'), sysConfig('website_url'))) { + if (strpos(sysConfig('subscribe_domain'), $request->getHost()) !== false && strpos(sysConfig('website_url'), $request->getHost()) === false) { Log::info('识别到通过订阅链接访问,强制跳转至百度('.IP::getClientIp().')'); return redirect('https://www.baidu.com');