I tried this code for getting the MAC ID , but i get only the host server address, is ther any way to get the unique ID of the computer which the user accessing my website.
ob_start();
system('ipconfig /all');
$mycom=ob_get_contents();
ob_clean();
$findme = "Physical";
$pmac = strpos($mycom, $findme);
$mac=substr($mycom,($pmac+36),17);
echo $mac;
Actually i need to know that is it possible to limit access to a particular website based on something specific within a pc other than IP?
No. You cannot get the MAC address of someone accessing your website, because your web server does not work with MAC addresses, it works with IPs, and thus it doesn't receive that information.