-1

I have a project requirement for which I need to store the information of a users system like OS, MAC address, etc. whenever he visits the website so that we can uniquely identify the user's machine. I am developing the project in Spring MVC 3.1. Currently we are using IP address and User agent using JavaScript but both of them are not reliable and can be easily changed. Is there a way to do this through Java/JavaScript/Spring MVC. Thanks in advance.

The same user can register multiple times. To avoid this, we need to identify the user's machine

ManeetK
  • 675
  • 1
  • 5
  • 11
  • 3
    *"so that we can uniquely identify the user"* Have the users log-in or otherwise don't be so nosy. – Andrew Thompson May 13 '13 at 11:01
  • 1
    What data is it that you need? Anything that can be sent as a request header/parameter can be faked, so there's no 100% bullet proof solution. – NilsH May 13 '13 at 11:02
  • I understand that the request header can be faked. So, I need to know if there is another way to gather the user's system information. – ManeetK May 13 '13 at 11:09
  • How do you define a user? Same person? Same Machine (Computer, Mobile, etc.)? Same browser? you should define all that in order to get an answer. – danieln May 13 '13 at 11:10
  • By user I mean same machine. I will add this in the description of the question – ManeetK May 13 '13 at 11:13

1 Answers1

0

If you want to uniquely identify the user, use cookies.
When a user enter your website, check if he has your cookie. If so, use it, it will identify the user. If not, create a cookie for him with something like UUID.
You can use both Java and JavaScript to put and get cookies from the user.

danieln
  • 4,795
  • 10
  • 42
  • 64