$redirect="http://www.redirecturlgoeshere.net"; if(preg_match('/Firefox/',$_SERVER['HTTP_USER_AGENT']))!=1) header("Location: ".$redirect); user http_user_agent to detect the browser
<?php if(!strstr($_SERVER['HTTP_USER_AGENT'], 'Firefox')) { // not using Firefox (or spoofed UA) - redirect header('Location: http://www.example.com/redirect-here/'); exit(); } PHP: