How to get the unique ID of the website running computer

931 views Asked by At

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?

3

There are 3 answers

1
Amber On

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.

0
Burhan Khalid On

To get this information from the user's computer, you need to run a control or a widget using ActiveX or Java on the user's computer.

0
David Schwartz On

Computers do not have unique IDs. You are looking for something that does not exist.