Make my grasshopper plugin only runs on authorised computers

Hi

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.

There are some ways to get machine id: c# - get unique machine id - Stack Overflow

But at the same time if you will just check machine id with if statement to make it work or not depending if machine id is recognized or not, then it might work maybe only for users who are not familiar with coding, so it won’t prevent piracy. Remember that .gha file is just a .dll file, so if you will decompile this .gha file then still user will have an access to code.

1 Like