0

hi i need some help on how can i retrieved users mac address
using php?

so that i can restrict an access to my admin page ..
thanks

3
Contributors
2
Replies
3
Views
7 Years
Discussion Span
Last Post by FlashCreations
0

You cannot get an external MAC address of a user without having local LAN access to them... UNLESS: you have access to a good ARP table and only if the client is connected DIRECTLY to the php server (if there are routers/gateways that NAT the traffic, the returned MAC address will be that of the gateway)

Here is a script to retrieve local MAC addresses via PHP (on Windows):

LOCAL MAC via PHP

There are easier methods to restrict access via PHP....
i.e. user/password, ip filtering, etc....

HTH's

Edited by sinnerFA: n/a

0

You cannot get an external MAC address of a user without having local LAN access to them... UNLESS: you have access to a good ARP table and only if the client is connected DIRECTLY to the php server (if there are routers/gateways that NAT the traffic, the returned MAC address will be that of the gateway)

Here is a script to retrieve local MAC addresses via PHP (on Windows):

LOCAL MAC via PHP

There are easier methods to restrict access via PHP....
i.e. user/password, ip filtering, etc....

HTH's

I agree, MAC Address filtering seems very difficult, but a word of warning with IP Filtering. If a network connects to the internet through a router or server, several computer could have the same IP address. When banning IP's be careful that your not banning an entire network (such as a school or business).

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.