Home >Backend Development >PHP Tutorial >Article traffic statistics, how to perfectly filter out robot crawling.
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:
Looking at the database statistics yesterday, I found that there is still a robot access problem. As follows:
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.
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:
Looking at the database statistics yesterday, I found that there is still a robot access problem. As follows:
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