Getting the visitors MAC Address using PHP and ipTables

MicheleEReilly

New Member
Hey guys, I'm doing a project for class and the professor has asked me to store the visitors IP address and MAC address to my database when they log in.So far after hours of looking around I have been able to get the IP using PHP, but now I need to figure out how to get the MAC address.From my research I can see that using iptables is the key. I have installed the packed onto my web server now just need some help on figuring out how to grab the data from iptables and output it into an echo command so I can see whats going on.Well for starters, I would need to know how to capture the MAC address using iptables before figuring out how to use PHP in all of this.
 
Back
Top