K
K
Konstantin2020-12-14 19:35:16
Software design
Konstantin, 2020-12-14 19:35:16

How to block the license of your program in case of violations?

Hello.
I am writing a server program (c++) that will run on linux (possibly in the future on windows as well). The license will be bound to a domain name + two ip addresses. For example, Domain: test.ru, ip1: 1.1.1.1, ip2: 1.1.1.2.
The program runs on two different servers and connects to each other, which makes it possible to check the current ip addresses during the initial launch. In case of a discrepancy with the issued ip addresses in the license, the program ends with a message in the log.
But what if, when issuing a license, the domain to which the license was issued was checked for legality, and after some time illegal content was found on the site.
How can I block a license? What are the general solutions?

Solution: periodically make a request to a separate server, which will issue an answer - whether the license is blocked (with the reason for blocking) or not.
Cons: if the client blocks the ip/domain to which the verification request is made, then the program will never be blocked.

Thank you.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question