Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 682759
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T01:37:55+00:00 2026-05-14T01:37:55+00:00

I’m trying to decide how to implement a very basic licensing solution for some

  • 0

I’m trying to decide how to implement a very basic licensing solution for some software I wrote. The software will run on my (hypothetical) clients’ machines, with the idea being that the software will immediately quit (with a friendly message) if the client is running it on greater-than-n machines (n being the number of licenses they have purchased). Additionally, the clients are non-tech-savvy to the point where “basic” is good enough.

Here is my current design, but given that I have little to no experience in the topic, I wanted to ask SO before I started any development on it:

  • A remote server hosts a MySQL database with a table containing two columns: client-key and license quantity
  • The client-side application connects to the MySQL database on startup, offering it’s client-key that I’ve put into a properties file packaged into the distribution (I would create a new distribution for each new client)
  • Chances are, I’ll need a second table to store validation history, so that with some short logic, the software can decide if it can be run on a given machine (maybe a sliding window of n machines using the software per 24 hours)
  • If the software cannot establish a connection to the MySQL database, or decides that it’s over the n allowed machines per day, it closes
  • The connection info for the remote server hosting the MySQL database should be hard-coded into the app? (That sounds like a bad idea, but otherwise they could point it to some other always-validates-to-success server)

I think that about covers my initial design. The intent being that while it certainly isn’t full-proof, I think I’ve made it at least somewhat difficult to create an easily-sharable cracking solution. Also, I can easily adjust the license amount for a given client/key pair.

I gotta figure this has been done a million times before, so tell me about a better solution that’s just as simple to implement and provides the same (low) amount of security. In the event that external libraries are used, I prefer Java, as that’s what the software has been written in.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T01:37:56+00:00Added an answer on May 14, 2026 at 1:37 am

    I’d suggest it probably isn’t worth the trouble. The clients may not be all that tech-savvy, but if it is worth their while, they’ll hack around it, and if it isn’t they won’t be using your software anyway.

    You don’t discuss the configuration process – how do you know which machine contains the MySQL database. You don’t discuss what happens if the MySQL database goes down.

    Frankly, the first time there’s a problem, they’ll probably work out that either they don’t like the software enough to continue using it or they will work out how to circumvent the system. Even if the end users aren’t tech savvy, they probably have in-house tech support who will be.

    I would not waste your time on that. If you want a licence management system – use a professional one. Otherwise, work on trust and sensible legal terms.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
Basically, what I'm trying to create is a page of div tags, each has
link Im having trouble converting the html entites into html characters, (&# 8217;) i
I have just tried to save a simple *.rtf file with some websites and
For some reason, after submitting a string like this Jack’s Spindle from a text
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I am trying to render a haml file in a javascript response like so:
I would like to run a str_replace or preg_replace which looks for certain words
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to decode HTML entries from here NYTimes.com and I cannot figure out

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.