I want to know how much RAM my visitors have and all the information available about their GPU. Is there any way to achieve this via JavaScript or maybe ActionScript (Flash)?
I want to know how much RAM my visitors have and all the information available about their GPU. Is there any way to achieve this via JavaScript or maybe ActionScript (Flash)?
Share Improve this question asked Apr 15, 2013 at 22:02 KentorKentor 6571 gold badge11 silver badges27 bronze badges 3- Maybe a duplicate, stackoverflow.com/questions/15464896/… – gustavodidomenico Commented Apr 15, 2013 at 22:04
- Highly unlikely JavaScript can do this, and it's a little shady to use otherwise pointless Flash (which might be able to do this but I'm not really sure) to determine private system configuration data. – millimoose Commented Apr 15, 2013 at 22:04
- Why not just have users download and run a survey app if they want to give you this data, the way Steam does it? Or upload a dump from an existing tool for this like CPU-Z. – millimoose Commented Apr 15, 2013 at 22:05
3 Answers
Reset to default 8Use
navigator.deviceMemory
To find the device RAM in gigabytes.
See browser support.
JavaScript, Browser extensions and Plugins are heavily sandboxed that they have limited, to no access to the system for security purposes. Only limited hardware can be accessed directly (with the user's consent), like camera and microphone for JavaScript's getUserMedia
or Flash.
The nearest you can get is to have the user install something on the PC that interacts with the browser, like a Java applet. Can You Run It uses this method to check the user's PC if it matches game requirements.
To determine the client's RAM, use
navigator.deviceMemory
To get GPU information you can use some tools like: https://github.com/pmndrs/detect-gpu/tree/master