With PHP you would do something like this:
Code:
if (strstr(strtolower($_SERVER["HTTP_ACCEPT"]), "text/html") =<b></b>= "") {
$url = "http://www.redirectbadhitstohere.com/";
} else {
$url = "http://www.sendtotrafficbuyer.com/";
}
header("HTTP/1.0 302 bounce");
header("Location: $url");