usi
$_SERVER['HTTP_USER_AGENT']

e te lo implementi!!!