View Full Version : user settings
03-09-2010, 05:46 PM
03-09-2010, 06: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.
03-09-2010, 08:28 PM
cool - thanx for the info ;-)
Powered by vBulletin® Version 4.2.0 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.