检测蜘蛛不加载广告js

This commit is contained in:
make
2025-09-04 11:12:47 +08:00
parent 0f02b69794
commit 8f5fd00067
9 changed files with 59 additions and 15 deletions

View File

@@ -512,6 +512,7 @@ class SiteContext
// 判断是否为爬虫
$arrVisitInfo['vil_is_spider'] = $this->isSpider($arrVisitInfo['vil_user_agent']);
View::assign('boolIsSpider', $arrVisitInfo['vil_is_spider']);
$strIp = $this->getRealClientIp();
$strKeyLimit10 = 'access:' . $strIp;