Home » Jquery » javascript – how to let only one device access my laravel web application?-Exceptionshub

javascript – how to let only one device access my laravel web application?-Exceptionshub

Posted by: admin February 24, 2020 Leave a comment

Questions:

I successfully developed the record-keeping system with some CRUD functionality using laravel. Now, the client changes his requirement and says he need a system that should only be accessible from his office’s specific computer. After research, I’ve found that PHP can’t access the mac address of the client because of server-side scripting language. The alternative would be buying static IP but the client won’t do that.
Are there any ways to overcome this problem?

I’ve gone through the following URLs:

  1. MAC addresses in JavaScript
  2. https://www.geeksforgeeks.org/how-to-get-the-mac-and-ip-address-of-a-connected-client-in-php/
  3. https://www.codeproject.com/Questions/629335/how-to-get-mac-address-of-client-that-browse-web-s
  4. https://docs.microsoft.com/en-us/windows/win32/cimwin32prov/win32-networkadapterconfiguration?redirectedfrom=MSDN

If another approach can be used to solve the problem then I’m glad to know. Thank You!

How to&Answer: