Make my grasshopper plugin only runs on authorised computers


I made a plugin for a client. He requests if someone copy and paste the gha file to other unauthorised machine, the plugin will detect this is a wrong compute and stop running.

How can I achieve this function?

Ps. I notice that some plugin utilise “machine id”. How it works?

Many Thanks.