Project

General

Profile

Actions

Bug #18395

closed

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

Added by Peter Knoell over 16 years ago. Updated over 11 years ago.

Status:
Closed
Priority:
Should have
Assignee:
Category:
-
Target version:
-
Start date:
2008-03-07
Due date:
% Done:

0%

Estimated time:
TYPO3 Version:
4.1
PHP Version:
4.3
Tags:
Complexity:
Is Regression:
Sprint Focus:

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

0007787.patch (1.5 KB) 0007787.patch Administrator Admin, 2008-03-08 11:57

Related issues 1 (0 open1 closed)

Related to TYPO3 Core - Bug #14520: Newer mobile phones are not recognized by condition [device = wap]ClosedChristian Kuhn2005-02-01

Actions
Actions

Also available in: Atom PDF