Mobile app version of vmapp.org
Login or Join
Gloria169

: How to prevent page counts by search indexers On a page I manage I store information about the most read pages and last read pages in the database. How can I manage to prevent taking into

@Gloria169

Posted in: #Statistics #Visitors #WebCrawlers

On a page I manage I store information about the most read pages and last read pages in the database.

How can I manage to prevent taking into account accesses from search indexers?

Note that I still want the pages to be indexed. But the page read counts should only be updated for human reads and not by robots. I tried to filter out some user-agents but that approach does not seem to be ideal.

10.01% popularity Vote Up Vote Down


Login to follow query

More posts by @Gloria169

1 Comments

Sorted by latest first Latest Oldest Best

 

@Si4351233

Use your chosen language to detect the user agent. Most legitimate search engine crawlers have their own user agent to identify it as a crawler. Then you can simply ignore those user agents.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme