How to prevent bots from abusing your PHPBB3 search feature Print

  • 1

Very often search bots abuse forums' search features and cause excessive CPU load. Such overloads may violate the AUP / TOS of hosting providers.

In order to prevent such problems in PHPBB3 it is recommended to allow the search function only for registered users. Here is how this can be done:

Go to your forum's parent directory and open the file search.php

Find the line "// Check search load limit" and right after it add:

if ($user->data['user_id'] == ANONYMOUS)
{
$template->assign_var('S_NO_SEARCH', true);
trigger_error('NO_SEARCH');
}

Save the file and your PHPBB3 will be protected from anonymous searches including bots.


Was this answer helpful?

« Back