Browser and OS detection
Posted on 2006-07-12
I'm required to create a detailed script which will detect the users browser and general pc settings and i would greatly appriciate any advise and code snippets what you may be able to share with me.
I'm developing in PHP.
I'm trying to detect the following in relation to Broswers:
Browser Name (pretty straight forward)
Browser Version (straight forward)
Screen Resolution (i have done this already)
If cookies are enabled/disabled
(Any other important browser setting that i should attempt to detect that you may suggest?)
I'm just using:
<?php echo $_SERVER['HTTP_USER_AGENT']; ?>
<?php print "IP: ". $_SERVER ['REMOTE_ADDR']; ?>
To detect the browser name and the IP address at the moment. Is there a better method of detecting either of these? Would that code be able to detect IP addresses behind a proxy?
What service pack
Some long shots! Is it possible to detect the Make and Model of the Router been used via PHP? And also if the user is using Anti-Virus or a Firewall on their system?
Any help is greatly appriciated. Thanks.