View Single Post
Old 02-08-2004, 11:22 PM   #10 (permalink)
mgcloud
Upright
 
I strongly recommend against doing this because:

a. first off, the reasons cheerios stated above are *very* valid and I would recommend listening to them

b. many browsers other than ie/netscape, for this very reason, have plugins/options to fake useragents, so the website thinks they are IE/netscape even when they are not. I know this works with server-side browser detection, not too sure about client-side (eg. javascript).

c. netscape uses the Mozilla gecko rendering engine. So do a lot of other browsers (Mozilla, Mozilla Firebird, Konqueror, Camino), so really you gain nothing by blocking them. Also, a lot of browsers use IE with a different gui (not sure if they change useragents or not though). Apple's safari browser apparently renders very well as well - do you want to alienate many macosx users?

With this in mind, if you still want to do it, go ahead, it's your site. Google for "javascript useragent" - it should give you the stuff you want.
mgcloud is offline  
 

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73