contao/test — Issue #532: The ability to disable displaying features if a visitor is a Search engine bot
Author: importer
Created: 2011-11-29 06:23:48+00:00
State: open
Labels: Feature, frontend

For example: The built in PDF generator and the custom one I wrote, it would be nice to not generate the link if the visitor is a bot and conserver server load. For me, no need for google to generate a pdf version of the site page.

Also, from that it would be nice if the core had a function like IsBot to use in extensions:

```

function isBot()
{
$botlist = array("Teoma", "alexa", "froogle", "inktomi", "looksmart", "URL_Spider_SQL", "Firefly", "NationalDirectory", "Ask Jeeves", "TECNOSEEK", "InfoSeek", "WebFindBot", "girafabot", "crawler", "www.galaxy.com", "Googlebot", "Scooter", "Slurp", "appie", "FAST", "WebBug", "Spade", "ZyBorg", "rabaz");

foreach($botlist as $bot)
if(ereg($bot, $HTTP_USER_AGENT))
return True;

return False;
}

```

--- _Originally created by bumforaliving on February 19th, 2009, at 04:40pm (ID 532)_