Jump to content

Deny Access - Specified Browsers (IE)


Reece S

Recommended Posts

Hi, I am looking for a code that will let all other browsers navigate my website normally, but basically tell IE to get lost.

 

I have had many problems over the years with IE, and its unique display. I thought that if I blocked access to my site when browsing on IE, it would help out greatly.

 

I am hoping for a HTACCESS code, if not, then maybe something I could put on the header of every page, EXCEPT the one PPL get redirected to (obviously so it doesn't go into a loop)

 

Sorry if this sounds confusing, here, i make it simple:

 

"Is there a code to prevent access to a website when using Internet Explorer?"

 

Thanks in Advance for any info.

Link to comment
Share on other sites

Yh, i was just thinking how foolish this may be. I have always forced my friends ito using FF, or other stuff, then got quite used to seeing that on screen, not actually thinking about the outside world :)

 

OK, maybe a more sensible move would be to use a php string?

 

something like:

 

If "Internet Explorer"

echo "message";

else

echo"Welcome";

 

I know this aint real PHP, its just an idea. I CBA to type real coding. but is this possible?

Link to comment
Share on other sites

Never mind :D I decided to venture into a bit of javascript, and wrote this:

 

<SCRIPT language="JavaScript">

var browserName=navigator.appName;

if (browserName=="Microsoft Internet Explorer")

{

alert("Browser Incompatible - Firefox Needed");

}

</SCRIPT>

 

I just hope it dont crash on me :D

 

Cheers for ur time though, very grateful.

Link to comment
Share on other sites

hmm, interesting... I shall look into this :D cheers.

 

BTW, I have devised a perfect (and unique) way of bugging IE lovers :D

 

take a look: compare with any browser EXCEPT IE, then, once you satisfied it works ok, try it again with IE :D

 

It still works, but boy does it bug them :D

 

tell me what you think.

 

PS: before you say I will lose visitors, I already know, but I have always made a point of opposing MS, let alone their crappy browsers, so anyone cooperating with that company doesn't deserve a relaxing surf if they think they can show their face on our website :D (I call that 2 faced)

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.