如何将ASP.NET应用程序与系统绑定,从而无法从一个系统复制到另一个系统 [英] How to bind ASP.NET application with system so cant be copied from one system to another

查看:77
本文介绍了如何将ASP.NET应用程序与系统绑定,从而无法从一个系统复制到另一个系统的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有任何方法可以保护ASP.net应用程序免于从一个系统复制到另一个系统。喜欢绑定CPU ID

硬盘频道和更多硬件信息。



我尝试过:



我没有任何想法,如果有人可以帮助我

Is there any way so ASP.net application can be protected from copying from one system to another system. Like bind with CPU ID
HDD Channel and more hardware information.

What I have tried:

I dont have any Idea, if any one can help me

推荐答案

你可以测试你的macaddress:

You can test your macaddress:
public bool MacAddressOk(string myMacAddress)
{
  string macAddresses = "";
  foreach (System.Net.NetworkInformation.NetworkInterface nic in System.Net.NetworkInformation.NetworkInterface.GetAllNetworkInterfaces())
  {
    // We must consider only Ethernet network interfaces
    if (nic.NetworkInterfaceType != System.Net.NetworkInformation.NetworkInterfaceType.Ethernet) continue;
    if (nic.OperationalStatus == System.Net.NetworkInformation.OperationalStatus.Up)
    {
      macAddresses += nic.GetPhysicalAddress().ToString();
      break;
    }
  }
  if (macAddresses == myMacAddress)
    return true;
  else
    return false;
}


这篇关于如何将ASP.NET应用程序与系统绑定,从而无法从一个系统复制到另一个系统的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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