Is it possible to track mac address of client with PHP code. If yes how and if no why?

1.3k views Asked by At

I want to track my web app users with mac address so that I can just give access to that user to only for that device having mac address registered in my app.

How can I do this?

1

There are 1 answers

0
SpongePablo On BEST ANSWER

MAC address stands for "media access control", so it is an address for a really low level in the OSI model, a physical address. So, if you are running your web app in a server which is not in the same network of your users, it will be impossible, because only the public address (IP) is transmitted.

For further information regarding this, please search a bit over StackOverflow, like this answer.

Alternatively, and if you are in the same network, there are some other possible solutions that depend directly on your networking knowledges, such as using this PHP library or some Linux scripting (assuming that you are using Linux).