ive got a tip so you can catch all (bots), A simple HONEYPOT :)
assume that the bots first visit the robots.txt from here we can send them where-ever we want..
We add some bate to our robots.txt
User-agent: *
Disallow: /tmp/
Disallow: /admin/register.php
The bots follow the bate.
file register.php
<?php
if (getenv(HTTP_X_FORWARDED_FOR)){
$ip=getenv(HTTP_X_FORWARDED_FOR);
} else {
$ip=getenv(REMOTE_ADDR);
}
if ($ip){
$file_handle = fopen('log.txt', 'a');
if($file_handle){
?$output = $ip . " -- " . gethostbyaddr($ip) . " -- " . date("Y:m:d:H:i:s") . "\r\n";
?fwrite($file_handle, $output);
?fclose($file_handle);
}
}
?>
<html><head><title>404 Not Found</title></head>
<body bgcolor=white>
<h1>404 Not Found</h1>
The requested URL /register.php does not exist.
</body></html>