Skip to content

Commit

Permalink
+ add option to place spider only in a restrictive group (not just ba…
Browse files Browse the repository at this point in the history
…sed on)
  • Loading branch information
Spuds committed Jan 8, 2024
1 parent 5e7bc0e commit d72bf36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sources/Load.php
Expand Up @@ -353,7 +353,7 @@ function loadUserSettings()
list ($context['login_token_var'],,, $context['login_token']) = $_SESSION['token']['post-login'];

// Do we perhaps think this is a search robot? Check every five minutes just in case...
if ((!empty($modSettings['spider_mode']) || !empty($modSettings['spider_group'])) && (!isset($_SESSION['robot_check']) || $_SESSION['robot_check'] < time() - 300))
if ((!empty($modSettings['spider_mode']) || !empty($modSettings['spider_group'])) && (!isset($_SESSION['robot_check']) || $_SESSION['robot_check'] < time() - 0))
{
require_once(SUBSDIR . '/SearchEngines.subs.php');
$user_info['possibly_robot'] = spiderCheck();
Expand Down

0 comments on commit d72bf36

Please sign in to comment.