Specialty Forums
Security and Virus
General Hardware
CPUs/Overclocking
Networking
Digital Photo/Video
Office Software
PC Gaming
Console Gaming
Programming
Database
Web Development
Digital Home

General Forums
Windows XP
Windows Vista
Windows 95/98
Windows Me
Windows NT
Windows 2000
Win Server 2008
Win Server 2003
Windows 3.1
Linux
PDAs
BeOS
Novell Netware
OpenVMS
Solaris
Disk Op. System
Unix
Mac
OS/2

Drivers
Driver Scan
Driver Forum

Software
Automatic Updates

BIOS Updates

My Computing.Net

Solution Center

Free IT eBook

Howtos

Site Search

Message Find

RSS Feeds

Install Guides

Data Recovery

About

Home
Reply to Message Icon Go to Main Page Icon

Restricting access to set browsers

Original Message
Name: Daveco
Date: January 9, 2007 at 04:55:28 Pacific
Subject: Restricting access to set browsers
OS: Windows XP
CPU/Ram: 512MB RAM
Model/Manufacturer: Dell Dimension 5000
Comment:
Greetings all,

My knowledge of computing is fairly limited, so feel free to treat me as a beginner.
I am looking for a way to restrict access to a website to a certain browser(s). IE. Accessible by Internet Explorer, but not via Firefox.

Could this be done by writing a query or IF statement that determined whether a certain browser(s) were being used or not, and if not- being redirected?

My main reason to believe this is possible is that www.officelive.com will only allow users to register if they are using IE.

Any help that you can muster would be greatly appreciated!

Regards,
Daveco



Report Offensive Message For Removal


Response Number 1
Name: Michael J (by mjdamato)
Date: January 9, 2007 at 08:22:41 Pacific
Subject: Restricting access to set browsers
Reply: (edit)
What type of environment are you developing in? Are you using any server-side languages such as PHP, ASP, etc?

If not, you can use Javascript, but it will only work if the user has Javascript enabled. Many free scripts available. Just do a search for "Javascript browser detect" on google.

Michael J


Report Offensive Follow Up For Removal

Response Number 2
Name: Daveco
Date: January 9, 2007 at 09:21:25 Pacific
Subject: Restricting access to set browsers
Reply: (edit)
PHP in all likelyhood. Isn't ASP the microsoft "version" of PHP?

Thanks for your help.


Report Offensive Follow Up For Removal

Response Number 3
Name: Bob (by BigBob)
Date: January 9, 2007 at 11:42:57 Pacific
Subject: Restricting access to set browsers
Reply: (edit)
You could try this;
<script language="JavaScript" type="text/JavaScript">
if(navigator.appName != "Microsoft Internet Explorer")


" If at first you don't succeed, Please Post Back "


Report Offensive Follow Up For Removal

Response Number 4
Name: Michael J (by mjdamato)
Date: January 9, 2007 at 13:04:42 Pacific
Subject: Restricting access to set browsers
Reply: (edit)
If you are using PHP you could look into the get_browser() function. here's the manual: http://us3.php.net/function.get-bro...

Michael J


Report Offensive Follow Up For Removal

Response Number 5
Name: Benjamin78
Date: January 21, 2007 at 09:37:32 Pacific
Subject: Restricting access to set browsers
Reply: (edit)
Hello everyone

I would like to bring to your attention the best hosting site http://www.wizwebhost.com have ever known. I am not getting paid for this and I have not been asked to put their ad here. They are such a fantastic company that I want to tell as many people as I can about their site. And they are so inexpensive. http://www.wizwebhost.com and only $3.95/monthly.

Regards

Katherine


Report Offensive Follow Up For Removal




Use following form to reply to current message:

   Name: From My Computing.Net Settings
 E-Mail: From My Computing.Net Settings

Subject: Restricting access to set browsers

Comments:

 
  Homepage URL (*): 
Homepage Title (*): 
         Image URL: 
 


Data Recovery Software




DSHUB24 Connection Problems

need help with dsl and dial up

novel 3.12

help mandriva install last straw!

Icon Scaling in Explorer Bar


The information on Computing.Net is the opinions of its users. Such opinions may not be accurate and they are to be used at your own risk. Computing.Net cannot verify the validity of the statements made on this site. Computing.Net and Computing.Net, LLC hereby disclaim all responsibility and liability for the content of Computing.Net and its accuracy.
PLEASE READ THE FULL DISCLAIMER AND LEGAL TERMS BY CLICKING HERE

All content ©1996-2007 Computing.Net, LLC