1

Possible Duplicate:
how can i make my product as a trial version for 30 days?

I want to create a 30 day trial version of my software, I can record the installation date and compare it with the sysdate of the machine. The problem is how to validate that the user changed the sysdate and how much time I have to adjust in my trial period.

One option is to consume a web service, but the problem are the offline customers.

This is stand alone windows application.

Is there any method I can use to count XX days since the installation?

4

1 回答 1

1

There is no way, which is one hundred percent reliable. You can query online website for current date, and users will reverse the requests with network sniffer and spoof the server. You can compare most recent temporary file date to detect clock rewinding, but it might cause other issues. You can do something else, and users will patch your code to remove the protection.

Do it the way that makes sense to you, still without having an obsession around it. Your code will stay hackable anyway. You will be better of reasonably pricing it so that hacking makes no sense.

于 2012-10-09T21:33:58.777 回答