AFAIK,
$_SERVER[\'REMOTE_HOST\'] should end up with \"google.com\" or \"yahoo.com\".
but is it the most ensuring method?
any other way out?
$_SERVER['HTTP_USER_AGENT']
Check various user agent strings here: http://www.user-agents.org/