asked in Blog+Seo+Internet by
If I get a mac address of a spammer then I could block him to my site using a code either in php or through javascript. What is the easiest and effective method to get the mac address of a site visitor's device.

Please log in or register to answer this question.

1 Answer

0 thanks
answered by LEGEND (7,489 points) 4 15 39
Normally a website can only track and display the website visitor's IP address and not the device MAC address. When a person visits your site they are behind a router which normally uses NAT. Routers will only display the IP address. Each device on the network has their own IP address. The router can display the MAC address of the devices attached to the router, but the router will never send the MAC address out. When you check on your IP address, each IP address in your network is different. The router normally uses an IP address of or it can be

All devices on the router have a special IP address assigned to the device. If you have 4 devices on your router the IP address would be:

With each device, the router will assign the MAC address associated with the device. The router will display the MAC address in the setup and configuration of the router.

These are internal IP address on your network and not an IP address that is shown online. The IP address that a website sees the IP address assigned from your ISP.

2,660 questions

8,738 answers

4,346 replies

1,621 users

Most active Members
January 2019:
  1. iamdahmmy - 24 activities
  2. Leyley - 11 activities
  3. qbox - 10 activities
  4. bryangreene - 9 activities
  5. iamdragonfly - 8 activities
  6. karishma Boghawala - 6 activities
  7. abonafideasian - 6 activities
  8. Gathonicharity - 5 activities
  9. AthenaDruid40 - 5 activities
  10. JoleenS24 - 3 activities
Most answered Members
December 2018: