Follow us on Twitter!
Things are more like they are now than they have ever been before. - Dwight D. Eisenhower
Friday, April 18, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 27
Guests Online: 26
Members Online: 1

Registered Members: 82828
Newest Member: uberscon
Latest Articles
View Thread

HellBound Hackers | Computer General | Webmasters Lounge

Author

Redirect to certain page depending on browser version.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 23-09-07 20:18
Hello, this is my first post in the forum, so I'm not completely sure if this is the correct category for my question.

I'm creating a website and found out that it is not correctly viewed in IE 5.5 or below, so I made a much simpler, not as "showy" as the original, that works perfectly fine in Firefox and IE 6 and above.

Well my question is: how can I detect the browser version/user agent via PHP or .htaccess, so that the page is redirected depending on the browser? (Maybe the same way that it is done in Basic Web Hacking 3)

I'm not asking to create the code for me (though if posible, it would be great! Grin ), just some advice on how to do it.

Also, I found a list of useragents in Wikipedia, and would like to know if they are correct: http://en.wikiped. . .User_agent


Thanks a lot in advance! :happy:

Edited by on 23-09-07 20:19
Author

RE: Redirect to certain page depending on browser version.

spyware
Member



Posts: 4192
Location: The Netherlands
Joined: 14.04.07
Rank:
God
Warn Level: 90
Posted on 23-09-07 20:22
http://php.about.com/od/learnphp/p/http_user_agent.htm



img507.imageshack.us/img507/3580/spynewsig3il1.png
"The chowner of property." - Zeph
[small]
Widespread intellectual and moral docility may be convenient for leaders in the short term,
but it is suicidal for nations in the long term.
- Carl Sagan
“Since the grid is inescapable, what were the earlier lasers about? Does the corridor have a sense of humor?” - Ebert
[/s
http://bitsofspy.net
Author

RE: Redirect to certain page depending on browser version.


Member

Your avatar

Posts:
Location:
Joined: 01.01.70
Rank:
Guest
Posted on 27-09-07 19:00
(Sorry for late response)

THANKS! Very useful!