SiteExperts.com Logo Home | Community | Developer's Paradise
User Groups | Site Tools | Site Information | Search
 Main Menu
 Forums
SiteExperts.com Forums
All Discussions

SiteExperts Feedback
The Lounge
Dynamic HTML
Site Design/ Critiques
HTML and CSS
XML Technologies
The Wireless Internet
Internet Explorer
Microsoft .NET
The Server
Technical Support

Sponsored Links

User Groups : Forums : SiteExperts : Internet Explorer :

Previous DiscussionNext Discussion
 restrict access to only IE user

I'd like to allow access to my site to only IE users.

Could someone help? Thank you.

Started By amy77 on Apr 7, 2007 at 1:50:47 AM

7 Response(s) | Reply

Earlier Replies | Replies 3 to 7 of 7 | Later Replies
Goto Page: 1
BachusII on Apr 7, 2007 at 3:04:04 AM (# 3)

  • server side checking of the UA string
  • client side checking of the UA string
  • client side checking for ActiveX
  • encapsulating everything inside conditional comments

And all those possible restrictions are rather easily overcome.
There is no foolproof method.


amy77 on Apr 7, 2007 at 7:37:02 AM (# 4)

 Thanks for your input, Bachusll.

Someone from another forum replied as follows:

 

there is, with conditional comments. The code goes like this:

code:


<!--[if IE]>put the code between these comments<![endif]-->


Conditional comments work from IE 5 onwards.

I tried but it didn't quite work. Maybe I did not place the code at the right place. I'll try it again.


haunted_i on Apr 19, 2007 at 7:33:36 AM (# 5)
This message has been edited.

Try Javascript... it works with all browsers. If non-IE browsers don't support conditionals, they'll see everything. :P

<script language="javascript">

<SCRIPT>
if (navigator.userAgent.indexOf('MSIE') != 1) window.location = "http://www.google.com/" ;
</SCRIPT>

Basically, if user's browser is not some version of IE, redirect to Google, or (hopefully) a page explaining why you have the browser distinction.


BachusII on Apr 19, 2007 at 8:57:07 AM (# 6)

That does not work reliably haunted


computer on Nov 7, 2011 at 5:12:23 AM (# 7)

ummm.. Interesting, that should work but otherwise just give me a shout and I have some code that could help fix it.

I also like to read about Computer Repairand also Website Design and even more time spent doing SEO Aylesbury


Earlier Replies | Replies 3 to 7 of 7 | Later Replies
Goto Page: 1

To respond to a discussion, you must first logon.

If you are not registered, please register yourself to become a member of the SiteExperts.community.

User Name
Password
Copyright 1997-2004 InsideDHTML.com, LLC. All rights reserved.