Php, asp, html,perl vs vs bunlar ile olmaz.. Java ActiveX Flash gibi eklentilerle olur. Bu eklentileri sayfaya gömersin, kullanıcı eklentiyi aktif ettiği anda mac gibi birçok veri senindir..
import java.applet.*;import java.awt.*;import java.net.InetAddress;import java.net.NetworkInterface;import java.net.SocketException;import java.net.UnknownHostException;public class AppletRunner extends Applet{ public void init() { } public void stop() { } public void paint(Graphics g) { g.drawString(getMacAddr(),20,20); g.drawString("Hello World",20,40); } public String getMacAddr() { String macAddr= ""; InetAddress addr; try { addr = InetAddress.getLocalHost(); System.out.println(addr.getHostAddress()); NetworkInterface dir = NetworkInterface.getByInetAddress(addr); byte[] dirMac = dir.getHardwareAddress(); int count=0; for (int b:dirMac){ if (b<0) b=256+b; if (b==0) { macAddr=macAddr.concat("00"); } if (b>0){ int a=b/16; if (a==10) macAddr=macAddr.concat("A"); else if (a==11) macAddr=macAddr.concat("B"); else if (a==12) macAddr=macAddr.concat("C"); else if (a==13) macAddr=macAddr.concat("D"); else if (a==14) macAddr=macAddr.concat("E"); else if (a==15) macAddr=macAddr.concat("F"); else macAddr=macAddr.concat(String.valueOf(a)); a = (b%16); if (a==10) macAddr=macAddr.concat("A"); else if (a==11) macAddr=macAddr.concat("B"); else if (a==12) macAddr=macAddr.concat("C"); else if (a==13) macAddr=macAddr.concat("D"); else if (a==14) macAddr=macAddr.concat("E"); else if (a==15) macAddr=macAddr.concat("F"); else macAddr=macAddr.concat(String.valueOf(a)); } if (count<dirMac.length-1)macAddr=macAddr.concat("-"); count++; } } catch (UnknownHostException e) { macAddr=e.getMessage(); } catch (SocketException e) {* macAddr = e.getMessage(); } return macAddr; } }