Computing.Net > Forums > Web Development > Restricting access to set browsers

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Restricting access to set browsers

Reply to Message Icon

Name: Daveco
Date: January 9, 2007 at 04:55:28 Pacific
OS: Windows XP
CPU/Ram: 512MB RAM
Product: 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




Sponsored Link
Ads by Google

Response Number 1
Name: Michael J (by mjdamato)
Date: January 9, 2007 at 08:22:41 Pacific
Reply:

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


0

Response Number 2
Name: Daveco
Date: January 9, 2007 at 09:21:25 Pacific
Reply:

PHP in all likelyhood. Isn't ASP the microsoft "version" of PHP?

Thanks for your help.


0

Response Number 3
Name: Bob (by BigBob)
Date: January 9, 2007 at 11:42:57 Pacific
Reply:

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 "


0

Response Number 4
Name: Michael J (by mjdamato)
Date: January 9, 2007 at 13:04:42 Pacific
Reply:

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


0

Response Number 5
Name: Benjamin78
Date: January 21, 2007 at 09:37:32 Pacific
Reply:

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


0

Related Posts

See More



Sponsored Link
Ads by Google
Reply to Message Icon






Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Web Development Forum Home


Sponsored links

Ads by Google


Results for: Restricting access to set browsers

Remote access to serial port www.computing.net/answers/webdevel/remote-access-to-serial-port/708.html

apache server restrictions www.computing.net/answers/webdevel/apache-server-restrictions/492.html

Learn to set up web site www.computing.net/answers/webdevel/learn-to-set-up-web-site/1771.html