PDA

View Full Version : Blocking certain browsers


JavaHead
11-06-03, 12:49 PM
Is there any way to block browsers other that IE 5.5+ from viewing a page? Maybe using the !DOCTYPE tag? I'm not too sure! Please can someone help me :)

mdhall
11-06-03, 12:58 PM
I'm not sure about "blocking" a viewer. What about utilizing a browser detector that would redirect non-IE browsers to a different page which doesnt show your site?

JavaHead
11-07-03, 11:09 AM
Thanks anyway, I figured that one out by myself last night after posting. I found a neat JavaScript to do it.

Caimin
11-24-03, 12:07 AM
But in most non IE browsers (Mozilla, Opera, Netscape) Javascript can be disabled very easily - so they will not be checked by the code you have. It would be better to use a server side script (in PHP, for example) to check.

karlcore
11-24-03, 11:29 AM
Thanks anyway, I figured that one out by myself last night after posting. I found a neat JavaScript to do it.

Cool. Tell ya what. Put in a <noscript> tag in there to point the 10-13% of people without javascript to my site, would ya?

TIA!