Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

muhdbasiir's avatar

HOW TO DETECT UNIQUE VISITOR

My objective here is to detect each visitor uniquely without using FORM. Currently, I am using the FingerPrintJS from NPM with a Laravel 9. But the library only support one browser at a time example Chrome. Meaning to say, if visitor come from another browser like Mozilla Firefox, the fingerprint will come out differently.

Not sure if this will help, but my big goal is to make a web app that can upload video of workplace accident, then after few days, the worker can send his information. So the video submission can be tally with his information. The reason the web app journey like this is because the superior in the workplace tends to fired the worker if they are caught taking photo or taking video in the accident.

I have stuck on this issue for few days. Please advise me.

0 likes
4 replies
Sinnbeck's avatar
Sinnbeck
Best Answer
Level 102

There isn't really any way to detect a visitor across browsers. The browser does not have access to any sort of hardware ID or similar on the device.

Perhaps you could give them a ticket id they could fill in when adding information later?

1 like
MohamedTammam's avatar

You need to define what's "unique visitor" first.

I would choose a combination between user browser and the IP. However it the user changes the browser or even send a request via command line tool then it will also appear as he's a unique user.

Have you thought of generating a password when the user uploads the video. Then anyone has that password can edit the video or submitting related information. 4chan was using something like this.

1 like

Please or to participate in this conversation.