News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Bingbot is spidering pages with PHPSESSID in them

Started by mwf16, November 25, 2015, 02:14:11 PM

Previous topic - Next topic

mwf16

Hello,

I am using SMF 2.0.11 and I noticed in my access_logs that bingbot is not recognized as a bot, and so is shown URLs with PHPSESSID in them. 

Doing some searching I found that the two Load.php do not check for bingbot when determing possibly_bot:

$user_info['possibly_robot'] = (strpos($_SERVER['HTTP_USER_AGENT'], 'Mozilla') === false && strpos($_SERVER['HTTP_USER_AGENT'], 'Opera') === false) || strpos($ci_user_agent, 'googlebot') !== false || strpos($ci_user_agent, 'slurp') !== false || strpos($ci_user_agent, 'crawl') !== false;

I've made a change to my files but I wonder if this is something that should be changed in the official files.

[ Edit, turns out the second Load.php file is from Tapatalk ]

Advertisement: