是否可以保护java脚本文件 [英] Is it possible to protect java script files
本文介绍了是否可以保护java脚本文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好b $ b
我想知道是否可以保护javascript文件?我不想让用户打开并从浏览器中看到js文件
解决方案
不,不是真的。
你能做的最好就是最小化它们。这样可以减少尽可能多的空白区域并使它们很难阅读。
阅读这些链接。
http://www.iwebtool.com/html_encrypter
http://www.catswhocode.com / blog / 3-ways-to-compress-css-files-using-php
http ://refresh-sf.com/yui/
http://www.n1studios.net/tutorials/php/css-file-protection.html
希望这有助于
你无法隐藏代码,但你可以OBFUSCATE代码,
这将使人类很难阅读。
[警告:专业且熟练的程序员仍然可以解码OBFUSCATED代码,
但这是一项非常繁琐的任务,通常都会被所有人避免。]
以下是一些可以混淆代码的页面的链接。
为了获得最佳结果使用它们的组合。
http://dean.edwards。名称/打包者/ [ ^ ]
http://www.javascriptobfuscator.com/ [ ^ ]
http:// refresh-sf.com/yui/ [ ^ ]
Hi
I would like to know whether it is possible to protect the javascript files? I do not want to let the user to open and see the js files from the browser
解决方案
No, not really.
The best you can do is minimise them. This reduces as much of the white space as possible and makes them quite difficult to read.
Read these links.
http://www.iwebtool.com/html_encrypter
http://www.catswhocode.com/blog/3-ways-to-compress-css-files-using-php
http://refresh-sf.com/yui/
http://www.n1studios.net/tutorials/php/css-file-protection.html
Hope this helps
You cannot hide the code but you can OBFUSCATE the code,
which will make it very difficult for a human to read.
[Warning: A dedicated and skilled programmer can still decode the OBFUSCATED code,
but it is an extremely tedious task and is generally avoided by all.]
Here are some link to pages that can obfuscate your code.
For best results use a combination of them.
http://dean.edwards.name/packer/[^]
http://www.javascriptobfuscator.com/[^]
http://refresh-sf.com/yui/[^]
这篇关于是否可以保护java脚本文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文