Jump to content

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
https://forums.phpfreaks.com/topic/91970-deny-access-specified-browsers-ie/
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?

What I did when I was having major IE6 CSS issues was create a basic if ie6 echo "We highly suggest upgrading to IE7 or Firefox".

 

While it didn't fix the problem, it let users know they could update browser to take care of the visual issues.

 

SC

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.

I am going to point you to

http://www.webstandards.org/files/acid2/test.html

 

try it in IE and FF and realize that neither browser is  right because acid2 is what is considered the perfect rendering.  So if you want to put some blame somewhere spread it around.

 

(fyi I do use FF2 and grand paradiso)

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)

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.