Recipe 3.5 Logging Client MAC Addresses


You want to record the MAC (hardware) address of clients that access your server.


This cannot be logged reliably in most network situations and not by Apache at all.


The MAC address is not meaningful except on local area networks (LANs) and is not available in wide-area network transactions. When a network packet goes through a router, such as when leaving a LAN, the router will typically rewrite the MAC address field with the router's hardware address.

See Also

  • The TCP/IP protocol specifications (see and search for "TCP" in the title field)

Apache Cookbook
Apache Cookbook: Solutions and Examples for Apache Administrators
ISBN: 0596529945
EAN: 2147483647
Year: 2006
Pages: 215

Similar book on Amazon © 2008-2017.
If you may any questions please contact us: