How to allow run function only by user on a specific computer?

I have a request to allow to use my site functions only for the registered user (which is of course easily supported by ‘wix-users’) and only when the user logged in with a specific computer .

I believe that there is an option to obtain a unique computer ID like a mac address, however, could not find how this could be implemented with wix code?

To access the MAC address you need a third party service. Here you have some links to get u started.

[1]You cannot access the IP address of the user
https://support.wix.com/en/article/tracing-a-visitors-ip-address

To get the MAC address, you are more likely to use a third party. The MAC address is not part of the IP protocol. You would have to install or at least ask for permission in the user visits.
[2] https://stackoverflow.com/questions/3454858/how-to-get-client-mac-address-by-a-access-on-a-website

Obtain the IPAddress
[3] https://stackoverflow.com/questions/1634782/what-is-the-most-accurate-way-to-retrieve-a-users-correct-ip-address-in-php?rq=1

Another option is to store something in the storage of the user browser
[4] https://www.wix.com/corvid/reference/wix-storage/introduction
For this, you will have to make the idea of how you are going to identify them, store the key in your backend, and then compare it with the value you store in that browser

[5] Identify users with Google Analytics
https://developers.google.com/analytics/devguides/collection/analyticsjs/cookies-user-id

[6] Different ways to identify users without cookies
https://www.kompyte.com/blog/5-ways-to-identify-your-users-without-using-cookies/

You can search some stuff online on how to get the MAC address, and then make a second search on how to integrate that into WiX.
For me, I would use option 4.

cheers