简体   繁体   中英

How to get the unique ID of the website running computer

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?

不能。您无法获得访问您网站的某人的MAC地址,因为您的Web服务器不能使用MAC地址,它可以使用IP,因此不能接收该信息。

要从用户计算机获取此信息,您需要使用用户计算机上的ActiveX或Java运行控件或窗口小部件。

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM