PHP-Code:
<?php
$browser = getenv("HTTP_USER_AGENT");
if (preg_match("/MSIE 3.+Win./", $browser)) {
header("Location: die url");
exit;
}
if (preg_match("/MSIE 4.+Win./", $browser)) {
header("Location: die url");
exit;
}
if (preg_match("/MSIE 3.+Mac./", $browser)) {
header("Location: die url");
exit;
}
if (preg_match("/MSIE 4.+Mac./", $browser)) {
header("Location: die url");
exit;
}
if (preg_match("/Mozilla\\/4.+Win./", $browser)) { // [ 1 ] Das Problem
header("Location: die url");
exit;
}
if (preg_match("/Mozilla\\/4.+Mac./", $browser)) {
header("Location: die url");
exit;
}
if (preg_match("/Opera\\/4./", $browser)) {
header("Location: die url");
exit;
}
if (preg_match("/Opera\\/5./", $browser)) {
header("Location: die url");
exit;
}
?>
Da soll aber der Netscape 4.+ umgeleitet werden, was mache ich jetzt?
Kommentar