It would be nice to have a feature to easily detect
search engines, webspiders, crawlers, etc.
It would be enough, to have a function like
isLegalBrowser() that returns false, if the useragent
is not a regular browser, but any of the tools noted above.
Logged In: NO
I added this to _get_os_info ()
$regex_robot =
'/(archiver|spider|crawler|robot|googlebot|infoseek|scooter|slurp|scout|ultraseek|gulliver|bjaaland|whereEverythingis|linkguard|zyBorg|Jack|netmechanic)/i';
// look for robots
if(preg_match($regex_robot,$this->_browser_info['ua'])) {
$this->_set_browser('os','robot');
$this->_set_browser('platform','robot');
}
// look for Windows Box
elseif...(etc)
Bit of hack and maybe it should be in phpSniff.class.php as
$this->_robots, but it serves my purposes... :-)