How to allow access to only IE users?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
amy
Forum Newbie
Posts: 2
Joined: Sun Jan 21, 2007 8:30 pm

How to allow access to only IE users?

Post by amy »

May i know how i could allow access to my site to only IE users?
Thanks a lot.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

Why would you want to do this?
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

8O Sounds like a horrible idea! :evil:
User avatar
aaronhall
DevNet Resident
Posts: 1040
Joined: Tue Aug 13, 2002 5:10 pm
Location: Back in Phoenix, missing the microbrews
Contact:

Post by aaronhall »

Awful idea, but get_browser() is about the closest you'll get. It's unreliable, plus I think Opera still identifies as IE.
amy
Forum Newbie
Posts: 2
Joined: Sun Jan 21, 2007 8:30 pm

Post by amy »

Because the scripts that I used and the formatting of my site only works in IE.

I tried using get_browser() but it doesn'twork.

Could someone help? Many thanks.
User avatar
Jenk
DevNet Master
Posts: 3587
Joined: Mon Sep 19, 2005 6:24 am
Location: London

Post by Jenk »

Better idea to fix your markup so that it works in all browsers, instead of restricting to IE.

Besides which, there is no reliable way of performing that task. I (and anyone else) can simply change the identity of my browser with a few simple buttons.
User avatar
Luke
The Ninja Space Mod
Posts: 6424
Joined: Fri Aug 05, 2005 1:53 pm
Location: Paradise, CA

Post by Luke »

what kind of solution is that?? If your site doesn't work in anything but IE, your site is broken, not the other browsers. How about fixing your site to work in the other browsers instead of just ignoring them. I'm sorry, but this irritates me that developers still do this. :evil:
User avatar
AKA Panama Jack
Forum Regular
Posts: 878
Joined: Mon Nov 14, 2005 4:21 pm

Post by AKA Panama Jack »

amy wrote:Because the scripts that I used and the formatting of my site only works in IE.

I tried using get_browser() but it doesn'twork.

Could someone help? Many thanks.
It sounds like you need to learn how to write W3C COMPLIANT code instead of using IE only coding. And for your information other browsers can MIMIC IE so they can get into sites that try to block them.

My advice is to drop the IE only attitude and start designing your site to be compliant with W3C standards so it will work on most browsers.
User avatar
m3mn0n
PHP Evangelist
Posts: 3548
Joined: Tue Aug 13, 2002 3:35 pm
Location: Calgary, Canada

Post by m3mn0n »

Is this a script you designed or something you're just using?

If there is a specific issue with getting to work with all browsers, post some code and allow the community to help you get it working.

Telling someone to close their browser and open a new one just to visit your site has always been, and will always been bad design practice. You should avoid doing that at all costs. Even if it means cutting back on features.

Big sites can get away with that for media apps/plugins, like CNN/ABC, because they have an established audience from outside of the web and their content is just that valuable to the people who visit the site. I hate the practice, but it seems to be working for them and some others. Sadly, this is hardly ever the case for a typical site and if it goes beyond requirements for media display and it's about just content display... that's a serious flaw.
User avatar
daedalus__
DevNet Resident
Posts: 1925
Joined: Thu Feb 09, 2006 4:52 pm

Post by daedalus__ »

I agree with what everyone else is saying. You do realize you would be keeping most users of other operating systems, Mac OS, linux, unix, and disabled persons who use screen readers from being able to view your website, right?

For me it is easiest to development standards compliant code and then use ugly things like conditional statements (in CSS) and browser detection to try to make the code work in non-standards compliant browsers (IE).
Post Reply