Ignore prefetch requests

  • OSBlues

    With Google now prefetching top results for certain natural searches for Mozilla users we need a way to filter out these requests from our stats

    Basically Google now tells Moz based browsers to get the top results for certain searches in the background which is of course tainting statistics as the user doesn't necessarily click on that result. Is there a simple way to incorporate something into Awstats to discount these request from statistics?

    Details on prefetching are here -


    • The webserver can detect a prefetch request but it is not stored in log file.
      And if we use a rewrite rule to store data in log file when the http header contains "X-moz: prefetch", we will be able to change awstats conf to filter it but if the user click on link, it will be ignored into stats.
      So problem seems to have no solution.
      May be blocking prefecth request from your web server...