I found a crawl detection script on the internet that works great. But at the moment I only have Googlebot. I'm trying to add YahoosLurp, and Ask Jeeves, and any other popular web crawler. PHP is definetly my weakness
Heres the script
<?php
$useragent = $_SERVER["HTTP_USER_AGENT"];
if (stripos($useragent,"Googlebot"))
{
//Found! Create file
$file = fopen("crawled.txt","a");
fwrite($file,"You've been crawled\n");
}
?>
Its saved in a text file called crawled.txt
Im trying to add extra crawlers to the script, with the date.