A
A
Anton2021-02-18 02:42:28
Canvas
Anton, 2021-02-18 02:42:28

Is it possible to find out the model of the video card through canvas?

Greetings, tell me, for example, I went to some site, passed the registration, can the owner of the site find out the model of my video card or other piece of hardware? Is it possible? For example, I see that the site is requesting canvas, can it know something other than the screen resolution? I do not take any vulnerabilities, malicious extensions, etc. as an example. For example, a clean chrome browser.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Dmitry, 2021-02-18
@boypush

can the site owner know the model of my video card

Maybe like this:
function getGPUInfo() {
  let canvas = document.createElement('canvas').getContext('webgl');
  let renderer = canvas.getExtension('WEBGL_debug_renderer_info');
  if(renderer) {
    return canvas.getParameter(renderer.UNMASKED_RENDERER_WEBGL);
  }
  return false;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question