0

This may seem a silly question, but I'm kind of trouble in a problem here.

I need to collect some information from the browser to help me identify the customer who is browsing. I already know the MAC address I will not get. But it would be possible to get a handle of the browser installed? Maybe some installation ID, or something to help me identify the customer who is using my application?

Thank you.

Jhonathan
  • 330
  • 1
  • 2
  • 14
  • The simple answer is 'no'. The more complex answer is that MAC address is easily faked and should not be used for any security task. Can you just have a user log in to your app and set a cookie or JWT token? In what context do you need to know the customer, and for how long? Keep in mind a single customer can change browsers or computers. – CodingWithSpike Mar 01 '16 at 01:41
  • @CodingWithSpike, I Know the customer can change. My idea is monitoring the computer and not the user. I'm building an anti-fraud logic for a system of reviews. Where a single person can change user reviews and make fakes using the same computer. Understand? – Jhonathan Mar 01 '16 at 11:20

2 Answers2

1
<button onclick="myFunction()">Detect Browser</button>

<p id="demo"></p>
<script>
function myFunction() {
    document.getElementById("demo").innerHTML = 
    "Name is " + navigator.appName +
    "<br>Code name is " + navigator.appCodeName;
}
</script>

There are lots of ways to do browser detection, do a little bit of research via google on browser detection, there is lots of information, also there are good posts on stackoverflow that show ways to do it. Like How to detect Safari, Chrome, IE, Firefox and Opera browser?

Community
  • 1
  • 1
Devnsyde
  • 1,297
  • 1
  • 13
  • 34
  • I need to get identification of my client via browser. Some unique identification. The basic properties of browser I already got. – Jhonathan Feb 29 '16 at 23:26
  • If you need more identifying information, you could try by IP, the answer in this link shows how to do that http://stackoverflow.com/questions/391979/get-client-ip-using-just-javascript – Devnsyde Feb 29 '16 at 23:34
0

Personally, I found what I was looking for. I will use a technique based on FingerPrint with a plugin called fingerprintjs

Based from N variables contained in the browser you can generate a hash as a unique identifier for that machine.

I'll use too, the Evercookie techinique to store information.

Thanks a lot.

Community
  • 1
  • 1
Jhonathan
  • 330
  • 1
  • 2
  • 14