How can I get the MAC and the IP address of a connected client in PHP?

前端 未结 16 2576
长发绾君心
长发绾君心 2020-11-22 02:29

I need to know the MAC and the IP address of the connect clients, how can I do this in PHP?

16条回答
  •  独厮守ぢ
    2020-11-22 02:53

    under linux using iptables you can log to a file each request to web server with mac address and ip. from php lookup last item with ip address and get mac address.

    As stated remember that the mac address is from last router on the trace.

提交回复
热议问题