: 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
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.
More posts by @Gloria169
1 Comments
Sorted by latest first Latest Oldest Best
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.