Bug #18395
closedYahoo, MSN, Ask.com and Alexa are not recognized in TypoScript robot condition
0%
Description
If you use Typoscript to deliver special content for search engines you have to rely on the funktion [device=robot]
In class.t3lib_matchcondition.php the function checking for the crawlers ist just not up to date.
Three lines have to be added:
strstr($agent, 'teoma') || // ask.com
strstr($agent, 'slurp') || // Yahoo
strstr($agent, 'msnbot') || // MSN
It has to be like this:
if( strstr($agent, 'crawler') ||
strstr($agent, 'spider') ||
strstr($agent, 'googlebot') ||
strstr($agent, 'searchbot') ||
strstr($agent, 'infoseek') ||
strstr($agent, 'altavista') ||
strstr($agent, 'teoma') ||
strstr($agent, 'slurp') ||
strstr($agent, 'msnbot') ||
strstr($agent, 'diibot')) {
return 'robot';
}
(issue imported from #M7787)
Files