Rajesh-Royal / Broprint.js

The world's easiest, smallest and powerful visitor identifier for browsers.
https://broprintjs.netlify.app/
MIT License
343 stars 56 forks source link

Fingerprint changes on firefox. #10

Open SoloOrchid opened 3 months ago

SoloOrchid commented 3 months ago

I am running reactJS 18.2.0 with vite 4.0.0. Ive noticed that the fingerprint changes sometimes on POST requests. I really dont have any way of reproducing but sending a bunch of POST requests.

import { getCurrentBrowserFingerPrint } from "@rajesh896/broprint.js";
getCurrentBrowserFingerPrint().then((fingerprint) => {
  setData("fingerprint", fingerprint);
});

That is the code I use to get the fingerprint. Now the only way I've been able to make the request change is by sending POST requests to my login URL. Below you can find two requests where the fingerprint changed.

Tool used: https://toolbox.googleapps.com/apps/har_analyzer

Type:application/json
Raw Content:
{
  "email": "client@example.com",
  "password": "123",
  "remember": false,
  "fingerprint": 2888701962297835
}
Type:application/json
Raw Content:
{
  "email": "client@example.com",
  "password": "123",
  "remember": false,
  "fingerprint": 1708234812133861
}

If there is anything else I can do to help solve this please let me know.

EDIT: Firefox version is 123.0.1 (64-bits). OS: MacOS

ayubabdullah commented 3 months ago

same issue here, any suggestion !

SoloOrchid commented 3 months ago

Here is a image of my chrome and Firefox console logs with the fingerprint. As you can see the fingerprint changes on Firefox but seems to stay the same on chrome and Brave. I have not yet tried opera or other browsers.

image

Rajesh-Royal commented 2 months ago

These browsers use fingerprint protection techniques like slightly changing the rendering of graphics etc. As this library uses GPU rendering to calculate the fingerprint it gets affected sometimes.