Get MAC Address

How to find the visitor's MAC address on linux (nginx) hosting?

From the ethernet user.

Thank.

+3
source share
5 answers

You cannot get this through PHP.

The network protocol is used on the stack. When making an HTTP connection, your web server uses the HTTP protocol, which is responsible for high-level communications. This protocol is implemented at the top of the TCP protocol (which provides streaming connections and port numbers), which, in turn, are implemented at the top of the IP protocol (v4 or v6, which bring IP addresses for identification), which is queued in top of the Ethernet protocol.

Ethernet - , . MAC- , MAC- . , , .

-, , , , : "", , .

-, , , , MAC- Ethernet. - ( , , , ), , MAC-, , .

-, Apache . PHP "" , Apache, Ethernet.

, MAC- - PHP .

, PHP . , , .

+8

php, http

+3

- . PHP ( , PHP, -, ) HTTP-, MAC-. -, .

+3

. , LAN-, . , ?

arp -a Windows Linux, arp, mac.

, , apache ( php) mac env vars.

* : , ... - arping, Mac .

, , ...

, , ... , , ping ( ) MAC-.

+1

- , ( - , , ), , php.

0

Source: https://habr.com/ru/post/1775756/


All Articles