oscarwilde's avatar

What is the best approach to get pc name or unique identifier?

Right now I'm working in an app that's using ip to limit some actions. But we use private ip. So when the user take public ip become a mess... What could be the best approach to identify pc as unique identifiers? Any idea?

0 likes
5 replies
Snapey's avatar

You mean like track the user?

Why not just give them a cookie? It will be stored on their machine and presented each time they visit.

oscarwilde's avatar

They can delete cookies anyway... Basically a set of 3 computers represent a group in the system. Also some users won't have access to a specific computer based on its username and what the machine is.

I was trying not to be very specific... The thing is I need a way to get pc name as a unique identifier instead of using the private or public ip. For example if pc was logged in with account 1, account 2 couldn't log in there. How can you handle things like that?

JABirchall's avatar

There is no way for you to just get infomation about a user or their system part from the user agent. There is no uniqueness to a request other then their IP, but even this isnt unique as they could be using a VPN or on a shared network.

oscarwilde's avatar

So how can I implement those kind of restrictions? In a group they have 3 accounts but they will know the password. This is for internal app. How can I limit access from one side to other side? Also restrict access but not based on IPs? Any help is welcome.

cometads's avatar

For security reasons you simply cannot get any identifying information beyond IP, the user agent and other lesser information.

Why not use a classic user authentication workflow? You can then identify one user from another based on their authenticated session.

Please or to participate in this conversation.