Pivity

License keys

Last read Never
#1

Hi there, so I am someone who is looking into creating some web-based addons to put onto gmodstore. Whilst developing my addon, I was thinking about security and how I can prevent fraud and whatnot, and was wondering how/if it'd be possible to somehow get a license key from each purchase of the addon to which the user would enter and therefore it'd verify that they've actually purchased it and allow them to continue and use the features of the addon. So my question is, is this even possible with gmodstore, or is there somewhat some support for this?


Kind regards,

Mousey.

#2

It is Definitely possible, i know for a fact Rubidium does this

Informative x 1
#3

Perhaps find a way to let buyers register their server ip for verification?

#4

There are a number of ways you can achieve this with GmodStore already, I will list two of them:

  1. You can use the webhook string replacement, found here in order to send a webhook back to your server and generate a license key, and return it so it gets placed in the file automatically
  2. You can use GmodStore's API and have the user log in on your website through Steam, and if they have purchased your addon (check with the gmodstore API) then generate them a license key


With either of these methods you of course need to deal with the logic on your own webserver and in your product. I do however not recommend relying on a licensing system to prevent leaking as they are extremely easy to circumvent without adding an extra layer of security like IonCube or equivelent for other languages, which is not recommended at all because not all webservers have compatibility with them.

Winner x 4
#5

Thank you ever so much for the help guys, really appreciated.

I'll definitely give both of those methods a try Marcuz, thanks. And yeah I was planning to have a second layer of authentication passed the license key, thanks for the heads up anyway! However, would you recommend any other method for authentication other than the licensing key?

#6

"You can use GmodStore's API and have the user log in on your website through Steam, and if they have purchased your addon (check with the gmodstore API) then generate them a license key"
Users viewing this thread
Nobody