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

BadBoy's avatar

Unnique Id Problem

Hi, Query : 3 different users accessed internet With Same IP Address. In PHP I given One href Link when ever User click that Link. I get the IP Address of the User .. Now How to find/Get the User Any Unique Id. whenever Click the Href Link. i am geting same ip address(because All 3 Users Connected With same IP ). I want Which User Click That Link .. That user Information I want ...please Give any refernce links or Idea .. Here : Without Using Cookies

0 likes
5 replies
nfauchelle's avatar
Level 11

@BadBoy

Since you can't use any cookies, you can try and fingerprint the browser. Basically gather as much information about the user as possible based on the information passed. It wont be perfect but it can go a long way.

Think, ip + user agent + language (off the top of my head). You can then increase it's uniqueness with some javascript to get things like the fonts installed on the system, list of plugins, screen resolution etc. The more things then the most chance of finding unique users.

Have a look at https://amiunique.org/ and google browser fingerprinting Also http://stackoverflow.com/questions/15966812/user-recognition-without-cookies-or-local-storage

Basically, it wont be perfect (this is what sessions are for), but you might be able to get some of the way there...

1 like
BadBoy's avatar

problem regrading to ads concepts .. When user Click ad .. Track that user information And Save Into date base that's My Job .. Now problem is If I am place that Code Into My website ... My website Access Different Users With same IP address .. Now i want To know the which user click that Ad .. How to find out that particular(clicker) user information ... ? . if I Go for cookies means .. if user change the browser then click count as increment .. that's the problem ......

EmilMoe's avatar

That's a billion dollar industry to make a good algorithm for that.

But you can make behaviour analysis compared with IP, user agent, etc.

Please or to participate in this conversation.