保护PHP代码而不加密的最佳解决方案 [英] Best solution to protect PHP code without encryption

查看:110
本文介绍了保护PHP代码而不加密的最佳解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

首先,我不是在寻找奇迹...我知道PHP如何工作,并没有真正的方法来隐藏我的代码从客户端而不使用加密。但是,在运行的服务器上安装扩展的费用。



我正在寻找一些不同的东西,但我不想加密我的代码甚至模糊它。有许多PHP脚本没有加密/混淆代码,但它们是商业应用程序。例如,vBulletin和/或IP.Board论坛应用程序。



我只想知道这些人用于他们的应用程序的方法...



我也可以接受任何其他建议。



请注意,我是一个人,不在公司工作。我的产品也是非常具体的,它不会卖这么多。我只是希望你们知道我无法咨询法律专业人员来起诉某人或准备商业许可证。我只是寻找一种简单的方式来保护我的简单产品,如果确实有可能,不知何故...

解决方案

混淆事情只会给您的合法,守法客户带来不便,而那些会剥夺您的人不是您的目标付费客户。 (编辑关于混淆的其他想法)



另一个保护您的软件的建议:创建一个商业模式,其中代码是您的产品价值的不完整部分。例如,销售产品许可证以及访问您在网站上管理的一些数据,或者使用订阅模式或客户支持对产品进行许可。



设计EULA是一个法律问题,而不是一个编码问题。您可以从阅读您使用的产品和网站的一些EULA文本开始。您可能会发现一些有趣的细节!



创建专有许可证是非常灵活的,可能是超出了StackOverflow范围的主题,因为它不是严格的编码。 / p>

EULA的某些部分,请记住:




  • 限制您的责任该产品有错误或导致损坏。

  • 说明客户如何使用其许可软件,多少时间,有多少机器,有或没有重新分配权利。 >
  • 给予您审核网站的权利,以便您执行许可。

  • 如果违反EULA会发生什么,例如他们失去了使用您的软件的特权。



您应该咨询法律专业人士准备商业EULA。



编辑:如果这个项目无法证明律师的费用,请查看这些资源:




First of all, I'm not looking for miracle... I know how PHP works and that there's not really way to hide my code from the clients without using encryption. But that comes with the cost of an extension to be installed on the running server.

I'm looking for something different though... I'm not looking to encrypt my code or even obfuscate it. There are many PHP scripts without encrypted/obfuscated code but they are commercial applications. For instance, vBulletin and/or IP.Board forum applications.

I just want to know what approach do these guys use for their applications...

I'm also open to any other suggestions.

Please note that I'm a single person and not working for a company. My product is also very specific, it won't sell that much. I just want you guys to know that I can't afford to consult a legal professional either to sue someone or prepare a commercial license. I'm just looking for a simple way to protect my simple product, if it's indeed possible, somehow...

解决方案

Obfuscating things can only inconvenience your legitimate, law-abiding customers, while the people who would would rip you off are not your target paying customers anyway. (edited out other thoughts about obfuscation)

Another suggestion for protecting your software: create a business model in which the code is an incomplete part of the value of your offering. For example, sell product licenses along with access to some data you manage on your site, or license the product on a subscription model or with customer support.

Designing a EULA is a legal matter, not a coding matter. You can start by reading some EULA text for products and websites you use. You might find some interesting details!

Creating a proprietary license is is highly flexible, and probably a subject beyond the intended scope of StackOverflow, since it's not strictly about coding.

Some parts of a EULA that come to mind:

  • Limiting your liability if the product has bugs or causes damage.
  • Spelling out how the customer can use their licensed software, for how long, on how many machines, with or without redistribution rights, etc.
  • Giving you rights to audit their site, so you can enforce the licenses.
  • What happens if they violate the EULA, e.g. they lose their privilege to use your software.

You should consult a legal professional to prepare a commercial EULA.

edit: If this project can't justify the expense of a lawyer, check out these resources:

这篇关于保护PHP代码而不加密的最佳解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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