Home > Backend Development > PHP Tutorial > Article traffic statistics, how to perfectly filter out robot crawling.

Article traffic statistics, how to perfectly filter out robot crawling.

WBOY
Release: 2016-07-06 13:51:14
Original
948 people have browsed it

When doing article access statistics, we have already filtered common search engine access, but machine access still exists.
The current filtering code is as follows: Article traffic statistics, how to perfectly filter out robot crawling.

Looking at the database statistics yesterday, I found that there is still a robot access problem. As follows:
Article traffic statistics, how to perfectly filter out robot crawling.

The IP is from the UK and is a continuous access at a time interval. (It should be machine access... I think so)

Ask the master how to perfectly filter out this situation.

Reply content:

When doing article access statistics, we have already filtered common search engine access, but machine access still exists.
The current filtering code is as follows: Article traffic statistics, how to perfectly filter out robot crawling.

Looking at the database statistics yesterday, I found that there is still a robot access problem. As follows:
Article traffic statistics, how to perfectly filter out robot crawling.

The IP is from the UK and is a continuous access at a time interval. (It should be machine access... I think so)

Ask the master how to perfectly filter out this situation.

Like google analytics, use js for statistics. js will not be loaded when the machine is accessed, it will be filtered out directly

Related labels:
php
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template