I want to allow my python program only for specific computers. My idea was to allow starting the program only from a computer with a specific Mac-Address. Do you have an idea how can I do this?
This is working to get the Mac-Address from the user:
from uuid import getnode as get_mac
mac = get_mac()
So I could do something like this:
from uuid import getnode as get_mac
allowed_mac= 'The Mac-Adress which is allowed to start the program'
mac = get_mac()
if allowed_mac == mac:
startProgram() #Does such a function exists?
Maybe I could to it in the main function but is that protection enough to prevent unallowed users to use the program?
Thanks!