Issue Bug Closed

#18395Yahoo, MSN, Ask.com and Alexa are not recognized in TypoScript robot condition

Peter Knoell 03/07/08, 16:40 updated 05/03/13, 15:28

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.