I think you'll probably say this should go in a rules condition, and not a problem of radioactivity, which I understand so please feel free to close this as documentation (I couldn't find anybody who'd posted a similar problem, so I thought I might as well).
I was wondering today why Christmas events seemed to be trending in September on my site ;-) Search engines. So I added a condition to block as many as possible ('bot' seems to catch most, well legit ones anyway).
I couldn't really think of a use-case where a site owner would want to add energy to a field because it happened to interest a bot rather than a human, so wondered if it may be worth going in the module.
Then again, I suppose the list of bot user agents is problematic to maintain.
$bots = array(
'Slurp',
'search.msn.com',
'nutch',
'simpy',
'bot',
'ASPSeek',
'crawler',
'Libwww-perl',
'FAST',
'Baidu',
);
foreach ($bots as $bot){
if (!empty($_SERVER['HTTP_USER_AGENT']) && strpos(strtolower($_SERVER['HTTP_USER_AGENT']), strtolower($bot))) {
return FALSE;
}
}
return TRUE;