简体   繁体   English

如何限制每次安装仅使用一台计算机?

[英]How to limit use to only one computer per installation?

I'm about to release my application which is built in C# VS2008 to my customer, and I want to prevent copy abuse post deployment, since it's easy to copy installation files to another machine and use the application. 我即将向我的客户发布我用C#VS2008构建的应用程序,我想防止部署后的复制滥用,因为很容易将安装文件复制到另一台机器并使用该应用程序。 I want to limit usage to only one computer per installation. 我想限制使用每个安装只有一台计算机。

See this question for some products that will help you do this... 对于一些可以帮助您实现此目的的产品,请参阅此问题

https://stackoverflow.com/questions/118031/best-activation-key-software-for-net-application https://stackoverflow.com/questions/118031/best-activation-key-software-for-net-application

My favorite for now is IntelliLock . 我现在最喜欢的是IntelliLock Decent price, supports ASP.Net, and has been around for a while. 体面的价格,支持ASP.Net,已经存在了一段时间。

Locking to a machine ID is not a trivial thing to do manually. 锁定到计算机ID并不是一件容易的事情。 So I would us a license software package. 所以我会给我们一个许可软件包。 Even if you're just trying to deter casual copying, you have to consider machine components change, and people get new computers. 即使您只是试图阻止随意复制,您也必须考虑机器组件的变化,并且人们会获得新的计算机。

But if you really want to do this manually see CPU serial number and http://www.vcskicks.com/hardware_id.php . 但如果你真的想手动查看CPU序列号http://www.vcskicks.com/hardware_id.php But note even the CPU Serial is not a fool proof method as it quite often is disabled. 但请注意,即使CPU Serial也不是一种万无一失的方法,因为它经常被禁用。

Use hashing to generate an unlock key. 使用散列生成解锁密钥。 The idea is to gather some data which is fixed on the target machine but also unique. 我们的想法是收集一些固定在目标机器上的数据,但也是唯一的。 Examples are the name of the machine, id of network card, ... Generate a hash from these values and let the user send this data to you. 示例是计算机的名称,网卡的ID,...从这些值生成哈希并让用户将此数据发送给您。 Generated a new hash from this value and a secret key (only known by you) and send it back to the user. 从此值和密钥(仅由您知道)生成新哈希并将其发送回用户。 Now the user has to enter this key to unlock your software. 现在,用户必须输入此密钥才能解锁您的软件。

Use an "activation" scheme, like Microsoft does with Windows. 使用“激活”方案,就像微软对Windows一样。 Each installation must authenticate itself against a server somewhere using a key. 每个安装必须使用密钥在某处对服务器进行身份验证。 If a key is used more than once, prompt the user to call and talk to a real person. 如果密钥被多次使用,则提示用户呼叫并与真人交谈。

只需进入预屏幕即可进入login\\pwd

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM