使用Sentinel HL保护Web应用程序 [英] Protect web app with Sentinel HL

查看:156
本文介绍了使用Sentinel HL保护Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我使用Sentinel HL成功保护桌面应用程序。但是当我想保护我的网络应用程序(.net mvc)时,我获得了HASPDotNetDllBroken状态。我的代码:

Hi,
I successfully protect desktop application with Sentinel HL. But when I want to protect my web app (.net mvc), I get HASPDotNetDllBroken status. My code:

using(Hasp hasp=new Hasp())
{
    HaspStatus status = hasp.Login(vendorCode, localScope);
    return status.ToString();
}





我在网上看到,这是dll文件的问题(路径,丢失......)。我将所有必需的dll文件添加到bin文件夹中(我还在我的MVC项目中添加了对这些文件的引用)。这可能有问题,因为我在localhost(ISS)上运行我的Web应用程序?当他想找到钥匙而找不到它时会出现问题吗?



有没有人有任何想法?



谢谢



I read on the web, that this is problem with dll files (path, missing...). I added all required dll files to the bin folder (I also added a references to this files in the my MVC project). It can be problem because I run my web app at the localhost (ISS)? And the problem arises when he wants to find the keys and can not find it?

Does anyone have any idea?

Thanks

推荐答案

请看我对这个问题的评论。



你需要理解:基于HTTP的Web应用程序是不同的:1)客户端无法访问服务器端代码,不需要保护; 2)客户端脚本全部交付给客户端,无法保护



唯一的问题可能是试图保护来自托管公司工作人员的代码,但实际上很难实现共享Web服务。显然,可以为专用的私人主机做虚拟或非虚拟主机,当然,如果你自己托管网站的话。我怀疑这是你的关注,但这是我们可以进一步讨论的唯一主题。







可能关于评论的讨论到了我们需要这个未来讨论的地步。



这是保护软件免受窃取的顾虑通过托管公司的人。在这种情况下,这些是支持公司Intranet上的服务器的人。在这种情况下,保护要困难得多。一种可能的解决方案可能是:使用网站的编译版本。请从这里开始: https://msdn.microsoft.com/en- us / library / 399f057w%28v = vs.85%29.aspx [ ^ ]。



编译网站时,它可以包含使用受保护的程序集一些可用的复制保护产品,例如,基于加密狗的产品。当然,使用加密狗类似于保持顾客戴上手铐。此外,任何保护都可以打破;同时,使用纯粹的法律手段(适当的许可,签订具有适当法律条款的服务合同)的保护可以适用于大多数或所有客户。我首先要注意的是:你的软件是否如此有价值以至于有人会窃取它?



-SA
Please see my comment to the question.

You need to understand: HTTP-based Web applications are different: 1) server-side code is not accessible to the client and does not need protection; 2) client-side scripts are delivered to the client side in full and cannot be protected.

The only concern could be trying to protect the code from the people working at your hosting company, but it could really would be difficult to achieve for shared Web service. Apparently, it could be possible to do for a dedicated private host, virtual or not, and of course, if you self-host the Web site. I doubt that this was your concern, but this is the only subject we could further discuss.



Probably, the discussion on comments comes to the point where we need this "future discussion".

This is the concern of protection of the software from stealing by hosting company people. In this case, these are the people supporting server on company Intranet. In this case, protection is much harder. One possible solution could be: using the compiled version of the site. Please start here: https://msdn.microsoft.com/en-us/library/399f057w%28v=vs.85%29.aspx[^].

When the site is compiled, it can include assemblies protected using some available copy-protection products, for example, dongle-based. Of course, using the dongle resembling keeping the customers in handcuffs. Besides, any protection can be broken; at the same time, protection using purely legal means (proper license, signing of the service contract with appropriate legal terms) could work for most or all customers. I would thing first of all at this: is your software so valuable that somebody would steal it?

—SA


这篇关于使用Sentinel HL保护Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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