0

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.

Roy_In
  • 11
  • 4

0 Answers0