保护已发布的web应用程序包的最佳实践(MVC 4)

时间:2022-07-03 20:05:15

Hoora! Finally it's finished... and now I'm going to sell it to some customers...

Hoora !终于完成了…现在我要把它卖给一些顾客…

However, as you know, published view files are completely visible. Things get worse about our .js external code files, and indeed the .dll file of the project itself.

但是,正如您所知道的,已发布的视图文件是完全可见的。我们的.js外部代码文件,以及项目本身的.dll文件,情况变得更糟。

I know that one good approach is to use tools like Smart Assembly, However can I use those tools for ASP.NET MVC projects and files? Is there a better approach?

我知道一种很好的方法是使用像Smart Assembly这样的工具,但是我可以将这些工具用于ASP。NET MVC项目和文件?有更好的方法吗?

1 个解决方案

#1


1  

Once you package up your files and give them to a customer, what happens to these files is out of your control. Just about anything you can do could be reverse engineered, decompiled or unencrypted.

一旦你将你的文件打包并交给客户,这些文件会发生什么就不在你的控制范围之内了。你所能做的任何事情都可能是逆向工程、反编译或未加密的。

Your best bet is to protect your assets legally by producing a robust license agreement between your company and your customers. You can then make your customers aware in the terms and conditions that any reproduction or modification of your work is illegal, you can then later pursue them legally for damages.

你最好的办法是通过在你的公司和你的客户之间建立一个强有力的许可协议来合法地保护你的资产。然后你可以让你的客户意识到你的工作的任何复制或修改是非法的,然后你可以在法律上要求他们赔偿损失。

Other than that, obfuscating your code and compiling your views would help a bit.

除此之外,混淆代码和编译视图也会有所帮助。

#1


1  

Once you package up your files and give them to a customer, what happens to these files is out of your control. Just about anything you can do could be reverse engineered, decompiled or unencrypted.

一旦你将你的文件打包并交给客户,这些文件会发生什么就不在你的控制范围之内了。你所能做的任何事情都可能是逆向工程、反编译或未加密的。

Your best bet is to protect your assets legally by producing a robust license agreement between your company and your customers. You can then make your customers aware in the terms and conditions that any reproduction or modification of your work is illegal, you can then later pursue them legally for damages.

你最好的办法是通过在你的公司和你的客户之间建立一个强有力的许可协议来合法地保护你的资产。然后你可以让你的客户意识到你的工作的任何复制或修改是非法的,然后你可以在法律上要求他们赔偿损失。

Other than that, obfuscating your code and compiling your views would help a bit.

除此之外,混淆代码和编译视图也会有所帮助。