-
user settings
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
-
-
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.
Daniel -
Freelance Web Design | <?php?> | <html>| español | Deutsch | italiano | português | català | un peu de français | some knowledge of several other languages: I can sometimes help translate here on DD | Linguistics Forum
-
-
cool - thanx for the info ;-)
-
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
Bookmarks