浏览代码

爬虫不记录

tags/6.2.1
tianya 2 年前
父节点
当前提交
f29ed29dd5
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. +4
    -0
      src/system/libraries/statistics.class.php

+ 4
- 0
src/system/libraries/statistics.class.php 查看文件

@@ -20,6 +20,10 @@ class DedeStatistics {
{ {
global $envs,$cfg_cookie_encode; global $envs,$cfg_cookie_encode;
$agent = new Agent(); $agent = new Agent();
//不记录爬虫
if ($agent->isRobot()) {
return "";
}
$pm = array(); $pm = array();
$pm['dduuid'] = GetCookie("DedeStUUID"); $pm['dduuid'] = GetCookie("DedeStUUID");
if (empty($pm['dduuid'])) { if (empty($pm['dduuid'])) {


正在加载...
取消
保存