how to find out the RAM and GPU information of my visitors?
Asked Answered
U

3

6

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)?

Unesco answered 15/4, 2013 at 22:2 Comment(3)
Maybe a duplicate, #15465396Lewan
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.Capsize
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.Capsize
C
7

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.

Cesarean answered 15/4, 2013 at 22:6 Comment(0)
A
8

Use

navigator.deviceMemory

To find the device RAM in gigabytes.

See browser support.

Ausgleich answered 24/9, 2018 at 1:52 Comment(1)
Just here to point out. navigator.deviceMemory only returns the approximate amount of system memory, it is used to identify classes of devices (low-end, mid tier, and good tier)Applecart
C
7

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.

Cesarean answered 15/4, 2013 at 22:6 Comment(0)
P
0

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

Peripeteia answered 3/6 at 7:8 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.