Is there a was of checking if the script is being run from a browser or if its been spidered/crawled. I tried something like this but it didnt work
if(!empty($_SERVER['HTTP_USER_AGENT']))
{
// Do something if browser
}
else
{
// Do something if spider cronjob
}