Mac-address on local network with (javaScript or PHP)

So as far as I know I can't get the mac address with javascript or php - except for some IE users and only if they have activeX.

BUT here are two similar scenarios: And I think these are not duplicate questions ...

1) Can I get the mac address of the EVERY user (windows, android, apple, etc.) if the website is hosted locally and people are accessing the form over Wi-Fi? And if so, can this be done with php / javascript?

2) Can I get the mac address of the EVERY user (windows, android, apple, etc.) if I only want to track users from the same network, but the site is hosted on some Linux server somewhere else? And if so, can this be done with php / javascript?

• If you need to know why I want to do this: This is for an online raffle at a nightclub and we would like to track poppy addresses, so you can only sign once with each device.

+3


source to share


1 answer


Can I get the MAC address of a user EVERY (windows, android, apple, etc.) if I only want to track users from ONE network, but the site is hosted on some Linux server somewhere else? And if so, could it be with php / javascript?

It's impossible at all.

Is it possible to get the MAC address of an EVERY user (windows, android, apple, etc.) if the site is hosted locally and people are accessing the form via wifi? And if so, can this be done with php / javascript?



If the web clients are on the same subnet as the server, you can read the mappings from the ARP table. On Linux, open a text file /proc/net/arp

with a PHP script and find the MAC address using the one provided $_SERVER['REMOTE_ADDR']

.

If you need to know why I want to do this: this is for online drawing in a nightclub and we would like to track mac addresses so that you can only register once with each device.

On a LAN, you don't get any protection by filtering MAC addresses instead of IP addresses. The host MAC address is trivial to change on most platforms.

+1


source







All Articles