By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
457,844 Members | 1,224 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 457,844 IT Pros & Developers. It's quick & easy.

How to get mac address from client machine through javascript.

P: 1
I want to get mac address from client machine.when any client hit on the add to cart button at any e-commerce website automatic mac id send to be the server side using javascript or angularjs code.
May 30 '18 #1
Share this Question
Share on Google+
1 Reply

Expert Mod 5K+
P: 5,389
simple answer: it is impossible with javascript - and for a good reason - because it would be a security risk. the mac address is something that is a unique identifier of a networkcard - thus would identify a machine. being able to get that id through javascript would allow any website to collect them and then in case could allow to spoof attack with the collected mac addresses.

PS: the point is - what is the purpose that you want to solve with the collection of the mac address - there is for sure a different solution that is doable instead of fishing for the mac addresses.
May 30 '18 #2

Post your reply

Sign in to post your reply or Sign up for a free account.