Hi sbillard,
I am not sure how the link was generated, I add email notify code on 404.php,so I know what's wrong:
Beside is the latest error I got, the client using iPad.
On Mon Aug 6 2012 4:49:00 am HKT, 37.106.2.195 tried to load :
http://www.hkdigit.net/pic/zp-core/i.php%3Fa%3Dshopping/apple-store%26i%3Dhkdigit-20110925-131518.jpg
User Agent = Mozilla/5.0 (iPad; U; CPU OS 4_3_3 like Mac OS X; en-us) AppleWebKit/533.17.9 (KHTML, like Gecko) Version/5.0.2 Mobile/8J2 Safari/6533.18.5
http://www.google.com/search?um=1&hl=en&safe=active&client=safari&tbo=d&tbm=isch&sa=X&ei=fNseUPflCM7S4QSN2YHgDw&ved=0CD8QBSgA&q=hong+kong+malls&spell=1&biw=1024&bih=690
---
Below is the code snippet added to 404.php
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$requri = $_SERVER['REQUEST_URI'];
$servname = $_SERVER['SERVER_NAME'];
$combine = $ip . " tried to load " ;
$url = $servname . $requri ;
$httpref = $_SERVER['HTTP_REFERER'];
$httpagent = $_SERVER['HTTP_USER_AGENT'];
$today = date("D M j Y g:i

a T");
$message2 = "On $today, $combine:\n
http://$url\n
User Agent = $httpagent \n
$httpref ";
$message2 .= $errmsg;
$to = "xxx@example.com";
$subject = "404 Error Report";
$from = "From:xxx@example.com\r\n";
mail($to, $subject, $message2, $from);
?>
Any hints?