$brows=$_SERVER['HTTP_USER_AGENT']; if (strpos($brows, "Opera") == true ) { header("Location: http://www.site.com/index.php"); }