marcus Posted November 11, 2007 Share Posted November 11, 2007 Is it possible to obtain somebodies MAC address using PHP. I am only doing this because I need to up some security on my website. Link to comment https://forums.phpfreaks.com/topic/76907-obtain-mac-address-using-php/ Share on other sites More sharing options...
BlueSkyIS Posted November 11, 2007 Share Posted November 11, 2007 not easily if at all. there is not command; you'd need to use an external command,e.g., arp. and then it still won't work unless a ton of criteria is met, which will only be met on very rare occassions. Link to comment https://forums.phpfreaks.com/topic/76907-obtain-mac-address-using-php/#findComment-389397 Share on other sites More sharing options...
marcus Posted November 12, 2007 Author Share Posted November 12, 2007 What kind of information is normally needed? Link to comment https://forums.phpfreaks.com/topic/76907-obtain-mac-address-using-php/#findComment-389468 Share on other sites More sharing options...
MadTechie Posted November 12, 2007 Share Posted November 12, 2007 i think your do something like this on *nix $temp = preg_split("/\s+/",exec("/sbin/ifconfig -a eth1 | /bin/grep HWaddr"), -1, PREG_SPLIT_NO_EMPTY); $sku_machine['MAC_addr_eth1'] = $temp[4]; Keep in mind that MAC Address are no longer unique (they used to be) but they are now being re-used, also you can spoof a MAC address along with IP's etc Link to comment https://forums.phpfreaks.com/topic/76907-obtain-mac-address-using-php/#findComment-389474 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.