Basically my aim is to restrict people visiting my website. I tried this - working fine locally but not working when I make the website live.
function mac(){
ob_start();
system('ipconfig/all');
$mycom = ob_get_contents();
ob_clean();
$findme = "Physical";
$pmac = strpos($mycom, $findme);
$mac = substr($mycom, ($pmac + 36), 17);
return $mac;
}
Please suggest how to get MAC address of visiting user's device using php.