#License key for offline app

20 messages · Page 1 of 1 (latest)

hollow tiger
#

I'm setting up license keys for an app that is fully offline. One of the things I value in my application's design is the lack of external requests to remote servers.

For the initial validation, I have to make a call to my server to validate the license key. The problem is that obviously someone could validate their license key, unlock it, and then say request a refund, and have an unlocked copy.

It seems like the only way to truly safeguard against this is to -- wthin reason -- send the occasional check to a server with the user's license key, and ensure that it's still a valid one. So this would be the one external request that I'd need to send periodically. Is that the common way of handling this?

azure nimbus
#

With electron you should also know that the source code is technically visible on the client side.

#

Someone could just as easily update the asar and remove the calls to the server

#

To answer your question though, you should always do checks everytime the app is opened (maybe even like once an hour or something.

hollow tiger
#

Thanks @azure nimbus and yeah, I'm actually already using v8 bytecode and have it set up

#

I know that it anything is hackable, but I do want to make it so that it's inconvenient af to do it

#

My question is more so pertaining to what is the current accepted practice. You think it's fine to do it whenever the app is opened/focused and then periodically in the background by the hour? A lot of people using my app value privacy so I want to make sure that's being considered

teal flicker
#

Whats wrong with checking licence key every minute?

hollow tiger
#

Checking every minute is too often, not worth the resources

teal flicker
#

Resources for whom?

hollow tiger
#

If I am sending a request to my server to verify if a license key is valid every minute, then that is a query I would be paying for

#

Are you trolling me?

teal flicker
#

You dont have vps for that?

hollow tiger
#

is that reliable?

teal flicker
#

Its not?

hollow tiger
#

Yes it is

azure nimbus
#

Assuming you don't have a vps, you can always use a service like vercel, netlify and cloudlare to host your api for checking this.

#

They have very generous free tiers

hollow tiger
#

What's the best way to get a VPS setup?