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
WBOYOriginal
2016-07-06 13:51:14945browse

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

Statement:
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