Forum Moderators: open
How do i can block/denied Firefox browser/etc browser user to visit my website? I only want fully 100% Microsoft Internet Explorer (IE) web browser only can visit my web site. This is because my web site is design just for IE. Can someone give me any referrer URL/website for this issue? It will be nice if someone can inclueding with a coding/programming to do this.
Thanxs
Me -No need so much:p
Wlauzon - <sarcasm> Why not just take your site down, that way you won't have to worry about all those non IE ones at all.</sarcasm>
I have to wonder why you would only want browsers that are full of bugs on your site.
Me - On certain circumstance/condition/environment you have to choose your audience/target to make sure ur can delivery with a best output or just to make sure your browser support it. To make it easy with now-a-day browser war so better i choose specific who's my audience for my content delivery. If i got a long time frame, of course i will make this web is compatible with all browser. Thanxs
All of this is not why i wont support others browser, this is because of that Microsoft contain so better i choose directly which one browser will allow to view that web site than someone with Firefox/Opera/Safari go crash there. Like i explain before.
Thanxs for reply.
if you desire IE eyes only to your site use conditional comments
to block your page from prying infidel browsers. ;)
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title></title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"><style type="text/css"></style>
<script type="text/javascript"></script></head>
<body>
[blue]
<!--[if IE]>[/blue]
<div>[red]For IE eyes only![/red]</div>[blue]
<![endif]-->[/blue]</body>
</html>
birdbrain
Asp example;
<%
If InStr(Request.ServerVariables("HTTP_User_Agent"), "MSIE") Then
' Do something for Internet Explorer
Else
' Do something else
End If
%>
Just as a side note to everyone who offered up unwanted opinions instead of an answer to the original question, there are many reasons why one would want to accomplish this. I have projects that not only target a certain browser, but a certain version as well.
I know a few people that go the other way and ban IE.
<body>
<script language="javascript">
<!--
if (navigator.appName == "Microsoft Internet Explorer") {
document.location = "http://www.mozilla.com/firefox/";
} else {
document.location = "http://www.example.com";
}
// -->
</script>
<div style="font-size: 1.2em; color: #900; text-align: center;">
IE users are banned here.
</div>
</body>
That's just a JS example, so easily defeated but just as IE only applications simply don't work on anything else; the same goes for FF and Opera designed sites, pretty much useless for IE users whether they are banned or not.
BTW - What is the consensus on the most 'bullet proof' method and code of banning IE users these days?