加密 php 或使其“call home”
我有一个简单的 php 脚本,想保护它。
我排除了 ioncube,因为无论如何他们都会破解它,这会增加我的客户支持。
我听说要制作“打电话回家”的剧本。这是替代方案还是与 ioncube 和类似的加密软件相同?
如果这是一个可行的替代方案,是否有我可以购买或学习编码以使用此技术的软件或脚本?
如果打电话回家不是最好的答案,那么保护 php 脚本的更好替代方案是什么?
感谢您为我指明了正确的方向。
I have a simple php script and want to protect it.
I'm ruling out ioncube as they'll hack it anyway and it'll increase my customer support.
I'm hearing about making the script "call home". Is that an alternative or is this the same as ioncube and similar encrypting software?
If this is a viable alternative, is there software or scripting that i can buy or learn to code to use this technique?
if calling home isn't the best answer, what is a better alternative for securing php scripts.
thanks for pointing me in the right direction.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
如果要分发此 PHP 代码,如何阻止某人删除call home代码?
请通过合法手段保护您的代码。
If this PHP code is being distributed, what is there to stop someone from removing the call home code?
Protect your code through legal means instead.
您可能会尝试混淆脚本,但真正解决这个问题是通过合同(即亚历克斯建议的合法手段)。
让脚本的购买者签署(或以其他方式合法接受)协议/合同/许可证,说明您希望他们对您的脚本执行哪些操作。如果您不信任他们会遵守协议,请勿将您的源副本转让给他们。
否则,您实际上是在尝试发明一个 DRM 系统,而根据定义,该系统并不存在。 (例如:播放 MP3 歌曲而不泄露路径文件)
You may try to obfuscate the script but the real fix to this problem is by contract (that is, legal means as suggested by alex).
Make the buyer of your script to sign (or otherwise legally accept) an agreement/contract/license that says what you want them to do with your script. If you don't trust them to follow the agreement, do not transfer a copy of your source to them.
Otherwise, you're practically trying to invent a DRM system, which by definition does not exists. (For example: Playing MP3 songs without disclosing the path of the file)