View Single Post
  #4  
Old 30th August 2010, 22:30
Phogo's Avatar
Phogo Phogo is offline
VIP
 
Join Date: Jan 2008
United Kingdom
Posts: 902
Default Blocking MSIE from your Site
PHP Code:
<?php
   
if (eregi("MSIE",getenv("HTTP_USER_AGENT")) ||
       
eregi("Internet Explorer",getenv("HTTP_USER_AGENT"))) {
    
Header("Location: http://www.domain.com/ie_reject.html");
    exit;
   }
?>
or
HTML Code:
<html>
<head>
        <meta http-equiv="refresh" content="1; 
URL=http://www.domain.com/realhomepage.html">
</head>
<body>
<script language="javascript">
<!--
if (navigator.appName == "Microsoft Internet Explorer") {
        document.location = "http://www.domain.com/ie_reject.shtml"; 
} else { 
        document.location = "http://www.domain.com/realhomepage.html";
}
// -->
</script>
</body></html>
Reply With Quote