什么是一些好的方法来防止人们复制我的源代码? [英] What are some good ways to prevent people from copying my source code?

查看:307
本文介绍了什么是一些好的方法来防止人们复制我的源代码?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有很多自定义的javascript和布局设计,我想防止人们使用那些。有没有任何实际的方法来做到这一点,或者我基本上只是要快乐我的PHP代码不显示?

I have a lot of customized javascript and layout design, and I want to prevent people from using those. Is there any practical way to do this, or do I basically just have to be happy my php code does not show? I want to at least make it difficult to copy my site.

推荐答案

如果人们真的想访问您的源代码,

If people really want to get access to your source code they can do that fairly easily.

可以通过混淆代码来减少人的数量。

It is possible to slow people down to a limited degree by obfuscating code.

请参阅:

  • http://code.google.com/p/minify/
  • http://refresh-sf.com/yui/
  • http://ajaxian.com/archives/utility-javascript-obfuscator

维护模糊代码很困难。您想要做的是在部署之前对其进行模糊处理,以便可以使用正常版本进行测试和调试。现场网站上的调试问题可能会因为混淆而变得更加困难。

Maintaining obfuscated code is difficult. What you want to do is obfuscate it before deployment so that you can test and debug with the normal version. Debugging problems on a live site can be made a lot more difficult by the obfuscation.

这篇关于什么是一些好的方法来防止人们复制我的源代码?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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