Results 1 to 3 of 3

Thread: user settings

  1. #1
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Question 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

  2. #2
    Join Date
    Mar 2006
    Location
    Illinois, USA
    Posts
    12,164
    Thanks
    265
    Thanked 690 Times in 678 Posts

    Default

    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

  3. #3
    Join Date
    Feb 2010
    Posts
    21
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default

    cool - thanx for the info ;-)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •