隐藏javascript以免在浏览器中显示 [英] hide javascript from showing up in browser

查看:83
本文介绍了隐藏javascript以免在浏览器中显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在我的文件中使用了一些javascripts。但是当我们查看源代码时,它会显示我们的javascript。有什么方法可以隐藏我们的javascript在浏览器中显示使用php。

I have some javascripts that I am using in my files. But when we view the source code it shows our javascript as it is. Is there any way with which we can hide our javascript from showing up in the browser using php.

推荐答案

有一个免费的JavaScript javascriptobfuscator.com 上的混淆器。它不会阻止专职人员窃取您的代码,但正常的复制和粘贴并不容易。

There is a free javascript obfuscator at javascriptobfuscator.com. It will not prevent dedicated people from "stealing" your code, but normal copy&paste will not be easy.

另请参阅此问题:我如何模糊(保护)JavaScript?。它包含一些非常好的答案,并通过默默无闻来解释这是如何安全的。

Also see this question: How can I obfuscate (protect) JavaScript? . It contains some very good answers and also explain how this is security through obscurity.

这篇关于隐藏javascript以免在浏览器中显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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