Put a password or license check at the beginning of the application. With proper authentication, only the user should be able to run the application further.
To verify the password, you must create public and public key concepts. To obtain a license, you can use some installed software or connected equipment.
source share