检查我的应用程序用户许可证是否合法! [英] checking my application user's license if it's legal or not !

查看:143
本文介绍了检查我的应用程序用户许可证是否合法!的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

朋友们,

我正在为Windows发布一个简单的应用程序,
用户购买许可证密钥,然后他们进入应用程序进行注册并使用.

现在我要检查用户!
例如,当他们打开我的应用程序时,它会自动连接到我的网站(或服务器,或其他任何地方)并检查注册密钥,如果该密钥无效,则该应用程序会自行阻止!
我认为某些Windows应用程序会这样做,不是吗?如果您使用无效密钥注册了它们,则当您连接到互联网并打开应用程序时,它将被检测到!

有什么想法可以实现这种情况!?

Hi friends,

i''m publishing a simple application for windows,
users buy a license key and they entered in application to register it and use it.

now i want to check the users !
for instance when they open my application, it automatically connects to my web site ( or server, or anywhere else ) and check the registration key, if the key is invalid, so the application block itself !
I think some windows applications do like this, isn''t it ? if you registered them with invalid keys, it''ll be detected when you connect to internet and open the application !

any idea to implement this scenario !?
thanks in advance.

推荐答案

Meysam Tolouee是完全正确的! "如果用户在应用程序运行时从未连接到互联网怎么办?"
您的逻辑是:在连接到互联网之前,我可以使用应用程序.

因此,答案并不像它应该的那么简单.

我认为,用户必须等到注册密钥错误后才能安装应用程序!您可以在安装过程中检查注册密钥.您可以注册份数,计算机IP和任何其他数据.如果成功完成了安装过程,则只要许可证密钥有效,用户就可以使用它.
Meysam Tolouee is completely right! "What if the user never connect to internet while the application is running?"
Your logic is: i can use application until i have connection to the internet.

So, the answer is not so simple as it should be...

In my opinion, user can''t install application until the registation key is wrong! You can check the registration key in the installation proccess. You can register the number of copies, computer IP and any other data. If the installation proccess was successfuly completed, user can use it as long as the license key is valid to.


您好,

没有万无一失的解决方案...,即使Microsoft也无法100%保护Windows或Office,但是无论如何,有几种基本方法可以保护您的应用程序.

一种解决方案是使用许可证文件和LicenseManager类.
另一种方法是使用注册表.

这两种方法相当健壮和简单,应该足以保护您的应用程序免受标准用户的侵害.

这是一篇很好的文章,介绍了分步实现的方法:
http://www .codeguru.com/csharp/.net/net_framework/licensing/article.php/c5469/Licensed-Applications-using-the-NET-Framework.htm [应用程序试用版 [ .Net应用程序的软件复制保护-教程 [ ^ ]
安全软件分发SDK [
Hello,

There are no fool proof solutions..., even Microsoft can''t protect Windows or Office 100% but anyway there are a few basic ways to protect your application.

A solution is to use a license file and the LicenseManager class.
Another way is to use the registry.

These two methods are fairly robust and simple and should be enough to protect your application against standard users.

Here is a good article describing step by step implementation:
http://www.codeguru.com/csharp/.net/net_framework/licensing/article.php/c5469/Licensed-Applications-using-the-NET-Framework.htm[^]

Alternatively you can also look at some articles that were published on codeproject in the past and provide some interesting implementations:
Application Trial Maker[^]
Software Copy Protection for .Net Applications - a Tutorial[^]
A Secure Software Distributon SDK[^]

Valery.


这篇关于检查我的应用程序用户许可证是否合法!的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆