views:

87

answers:

1

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.

A: 

Duplicate of this question: http://stackoverflow.com/questions/1420381/php-mac-address

vls
I can the question has been asked, but I'm asking for a specific method using iptables. The question asked was a broad one ;)
s2xi