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

View All Replies | Goto Page: 1
haunted_i on Apr 19, 2007 at 7:33:36 AM

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.


View All 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-2000 InsideDHTML.com, LLC. All rights reserved.