View Full Version : user settings
peanutville
03-09-2010, 06:46 PM
Hi,
is there javascript code or software that can inform users while their browsing your website some of their system specs like o/s, browser, monitor res even ram or cpu spec?
Thanx
djr33
03-09-2010, 07:29 PM
It is not possible to do this entirely reliably because you cannot access their computer to confirm it, for obvious security reasons.
When a page is requested, some data is sent to the server that includes information about the user.
The only information that is guaranteed to be correct is the IP address because that is where the server will send the data-- so it must be valid.
It depends on what language/method you wish to use, but it is possible in several.
For example, in PHP, you can do the following:
echo $_SERVER['REMOTE_ADDR']; //print IP address
echo $_SERVER['USER_AGENT']; //print "user agent" info
The User Agent info will contain (generally): Operating system, browser type and version number, and possibly other information like what sort of formatted text it will accept, etc.
There are a few other bits of information floating around like that (such as user language), but nothing about system specs.
Generally that will be reliable, but not completely reliable (because users can fake this value) so don't overuse it.
peanutville
03-09-2010, 09:28 PM
cool - thanx for the info ;-)
Powered by vBulletin® Version 4.2.2 Copyright © 2021 vBulletin Solutions, Inc. All rights reserved.