Forum Moderators: open

Message Too Old, No Replies

How do i can block/denied Firefox browser user to visit my website?

denied Firefox browser user to visit my website

         

Defcon

4:11 am on May 27, 2008 (gmt 0)

10+ Year Member



Hye all,

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

daveVk

5:10 am on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I only want fully 100% Microsoft Internet Explorer (IE) web browser only can visit my web site

Are you sure you dont want your site indexed by google and other search engines ?

Wlauzon

5:26 am on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<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.

[edited by: Wlauzon at 5:27 am (utc) on May 27, 2008]

Defcon

8:22 am on May 27, 2008 (gmt 0)

10+ Year Member



daveVk - Are you sure you dont want your site indexed by google and other search engines ?

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

StoutFiles

10:03 am on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Why don't you just design your site to work with all browsers like everyone else on the internet? If you think the number of Firefox/Opera/Safari users are a small bunch you are sadly mistaken.

Defcon

10:42 am on May 27, 2008 (gmt 0)

10+ Year Member



Currently i develop a dynamic web site that contains Windows Media DRM element. Not all browser support that and of course the best browser for full performance is IE since Windows Media DRM is Microsoft product. Beside that, every webmaster got it own reason why they want to like that. If all of browser can running smoothly this contain (Windows Media DRM) of course i will headache to think about. I also heavy user of Mozilla Firefox(also during i type this using Firefox). Every web site that we developer of course we got audience which our targeted visitor.

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.

birdbrain

10:45 am on May 27, 2008 (gmt 0)



Hi there Defcon,

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>


The most that those non-IE devils will see is a background color, if you should perchance have set one. ;)

birdbrain

daveVk

12:00 pm on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



i develop a dynamic web site that contains Windows Media DRM element

A more elegant approach would be to test if browser supports this brand of DRM, I assume earlier versions of IE dont, and if other do thats a bonus. Look for some javascript to detect for DRM and if not redirect to sorry page.

Trace

1:15 pm on May 27, 2008 (gmt 0)

10+ Year Member



Google "Browser sniffing". You should be able to find several different methods, some client side and some server side. Server side is probably your best bet as client side is very unreliable.

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.

D_Blackwell

3:43 pm on May 27, 2008 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Right or wrong (wrong I think) many sites require IE, including banks, QB online version - many sites with applications designed around IE.

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?

LifeinAsia

3:57 pm on May 27, 2008 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



BTW - What is the consensus on the most 'bullet proof' method and code of banning IE users these days?

I second Wlauzon's comemnt.

WesleyC

3:50 pm on May 28, 2008 (gmt 0)

10+ Year Member



Banning a specific browser is impossible. Extensions exist for FireFox (and other browsers) that will allow it to mimic any browser type.

A better bet is to test for the functionality you need. If it isn't there, ask the user to use Internet Explorer.