Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-7667

Bots/Spiders Incrementing topic views

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • 3.0.2
    • 3.0.3
    • Viewing forums
    • None
    • PHP Environment:
      Database:

    Description

      [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:

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: