简体   繁体   English

ASP.NET MVC 中动态生成的 JavaScript 的混淆器

[英]Obfuscator for dynamically generated JavaScript in ASP.NET MVC

as per title I'm looking at a library that allows an ASP.NET MVC application to obfuscate dynamically generated JavaScript.根据标题,我正在查看一个允许 ASP.NET MVC 应用程序混淆动态生成的 JavaScript 的库。 Please mind that I'm talking about actual obfuscation, rather than minification, as I'm trying to protect my content from scrapers.请注意,我说的是实际的混淆,而不是缩小,因为我试图保护我的内容免受爬虫的侵害。

Thanks in advance!提前致谢!

Try one of the online obfuscators: http://www.javascriptobfuscator.com/default.aspx尝试其中一种在线混淆器: http://www.javascriptobfuscator.com/default.aspx

If you´re using .NET Framework 4.0+ you should consider use ASP.NET Bundle / Minification如果您使用 .NET 框架 4.0+,您应该考虑使用ASP.NET 捆绑包/缩小

Also you can try YUICompressor it will compress all the javaScripts but will not obfuscate that for you.你也可以试试YUICompressor ,它会压缩所有的 javaScript,但不会为你混淆

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

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