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:
- MAC addresses in JavaScript
- https://www.geeksforgeeks.org/how-to-get-the-mac-and-ip-address-of-a-connected-client-in-php/
- https://www.codeproject.com/Questions/629335/how-to-get-mac-address-of-client-that-browse-web-s
- 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!
Tags: exception, java, javascriptjavascript, laravel