Log in to view the latest answers. It's free
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 votes
by 6 23 55
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.
Most active Members
November 2019:
  1. akanetuk1 - 240 activities
  2. ruthmongare - 50 activities
  3. ninabonita - 37 activities
  4. Winwin - 31 activities
  5. Sprite1950 - 27 activities
  6. greencrayon - 17 activities
  7. Shivam Ugale - 16 activities
  8. SmartAZ - 11 activities
  9. Keibah - 10 activities
  10. Dona-Wells - 9 activities
Most answered Members
October 2019:
  1. ruthmongare - 68 answers
  2. akanetuk1 - 47 answers
  3. Sprite1950 - 42 answers
  4. greencrayon - 29 answers
  5. Leyley - 28 answers
  6. Poehere - 14 answers
  7. Keibah - 12 answers
  8. traiti - 7 answers
  9. faruquerehan - 6 answers
  10. merleneNMS - 6 answers