Browse Source

爬虫不记录

tags/6.2.1
tianya 1 year ago
parent
commit
f29ed29dd5
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      src/system/libraries/statistics.class.php

+ 4
- 0
src/system/libraries/statistics.class.php View File

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


Loading…
Cancel
Save