隐藏.js [英] Hiding .js

查看:56
本文介绍了隐藏.js的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候所有..


我想隐藏我的javascript代码来自浏览器中的查看源代码

选项。有没有办法保护代码?


TIA,

KH。

Greetings all..

I would like to hide my javascript code from "view source code"
option in browsers. Is there a way of protecting the code ?

TIA,
KH.

推荐答案

2004年10月12日10:28:38 GMT,KHaled< me@localhost.home>写道:
On 12 Oct 2004 10:28:38 GMT, KHaled <me@localhost.home> wrote:
我想从查看源代码中隐藏我的javascript代码。浏览器中的选项
。有没有办法保护代码?
I would like to hide my javascript code from "view source code" option
in browsers. Is there a way of protecting the code ?




No.


Mike


-

Michael Winter

替换.invalid与.uk通过电子邮件回复。



No.

Mike

--
Michael Winter
Replace ".invalid" with ".uk" to reply by e-mail.


2004年10月12日10:28:38 GMT,KHaled写道:
On 12 Oct 2004 10:28:38 GMT, KHaled wrote:
我会喜欢从浏览器中的查看源代码选项中隐藏我的javascript代码。


真的那么糟糕吗? *

...有没有办法保护代码?
I would like to hide my javascript code from "view source code"
option in browsers.
Is it truly that bad? *
...Is there a way of protecting the code ?




两个答案..

a)没有。

b)是的。假设你不是首先上传它。


*基于这个原则 - 隐藏代码的欲望增加

与反比例它的质量。


-

Andrew Thompson
http://www.PhySci.org/codes/ Web& IT帮助
http://www.PhySci.org/ 开源软件套件
http://www.1point1C.org/ Science&技术
http://www.lensescapes.com/ 图像逃脱mundane



Two answers..
a) No.
b) Yes. Assuming you don''t upload it in the first place.

* Based on the tenet - "The desire to hide code increases
with inverse proportion to it''s quality."

--
Andrew Thompson
http://www.PhySci.org/codes/ Web & IT Help
http://www.PhySci.org/ Open-source software suite
http://www.1point1C.org/ Science & Technology
http://www.lensescapes.com/ Images that escape the mundane


KHaled写道:
所有的问候..

我想隐藏我的javascript代码在浏览器中查看源代码
选项。有没有办法保护代码?

TIA,
KH。
Greetings all..

I would like to hide my javascript code from "view source code"
option in browsers. Is there a way of protecting the code ?

TIA,
KH.




有一些方法可以混淆它,比如更换有意义的功能和

带有随机字符串的变量名,缩写代码尽可能多的b / b等等甚至还有编码方法需要

JS在执行之前是未编码的。


我想知道如此创建的维护噩梦是否值得付出努力。


但是什么''重点是什么?有大量的JS,HTML,CSS等等。

可用,你的宝贝太贵了,每个人都会偷它吗?什么

破土动工的新程序你写的?有人要去b
窃取你的代码并赚到你应该赚到的数十亿美元吗?


只需将你的奇妙代码放入.js文件中即可获得99.999%网上冲浪者

永远不会看到它。



There are ways of obfuscating it, like replacing meaningful function and
variable names with random strings of characters, abbreviating code as
much as possible, etc. There are even encoding methods that require the
JS be unencoded before being executed.

I wonder if the maintenance nightmare so created is worth the effort.

But what''s the point? There are a zillion lines of JS, HTML, CSS, etc.
available, is yours sooo precious that everyone will steal it? What
earth shattering new program have you written? Is someone going to
steal your code and make the gazillion dollars you should have made?

Just put your marvelous code into a .js file and 99.999% of web surfers
will never, ever look at it.


这篇关于隐藏.js的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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