Uploaded image for project: 'phpBB'
  1. phpBB
  2. PHPBB-7667

Bots/Spiders Incrementing topic views

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • 3.0.3
    • 3.0.2
    • Viewing forums
    • None
    • PHP Environment:
      Database:

      [15:18:49] <naderman> anyone want to report http://area51.phpbb.com/phpBB/viewtopic.php?f=4&t=29673 as a bug

      Summary: Spiders and Bots appear to increment topic view count.
      This is undesired, as it can skew the true count.

      There is a patch provided by Igor in the above topic:
      eviL3:

      Open: viewtopic.php

      Find:

      if (isset($user->data['session_page']) && strpos($user->data['session_page'], '&t=' . $topic_id) === false)

      Replace with:

      if (isset($user->data['session_page']) && strpos($user->data['session_page'], '&t=' . $topic_id) === false && !$user->data['is_bot'])

      :ugeek:

            ToonArmy Chris Smith
            Highway of Life David Lewis [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: