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,630 points) 5 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 192.168.0.1 or it can be 192.168.1.1.

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:

192.168.1.2

192.168.1.3

192.168.1.4

192.168.1.5

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.

Related questions

1 answer 0replies
0 answers 0replies
1 answer 0replies
asked Jul 12, 2018 in Blog+Seo+Internet by Erina (187 points) 2 7 26
4 answers 2replies
asked Jun 26, 2018 in Blog+Seo+Internet by Narendra Singh (334 points) 2 5 24

3,057 questions

9,530 answers

4,572 replies

2,224 users

Most active Members
July 2019:
  1. Poehere - 14 activities
  2. paulinavacas - 13 activities
  3. Cleofe - 9 activities
  4. Sai Vineeth - 6 activities
  5. Rasul Raza - 5 activities
  6. SmartAZ - 5 activities
  7. lincy - 4 activities
  8. Ayriel Balsor - 3 activities
  9. Rachellatte - 3 activities
  10. Karen G. - 3 activities
Most answered Members
June 2019:
  1. Option 1 - 30 answers
  2. Leyley - 16 answers
  3. pinakigoswami - 7 answers
  4. DawnG17 - 5 answers
  5. SmartAZ - 5 answers
  6. lincy - 4 answers
  7. Melissa_MK - 4 answers
  8. Liz Malone - 3 answers
  9. GodisLove - 3 answers
  10. Lhisa - 3 answers