如何包含“激活码”在代码点火器中?
我正在寻找一种方法来防止使用 codeigniter 未经授权地重新分发应用程序。任何人都知道一种将特定加密代码包含到 codeigniter 中的方法,这样如果没有此代码/文件,应用程序将根本无法运行或向用户发出警告?
I'm looking for a way to prevent unauthorized redistribution of the application using codeigniter. Anyone knows a way to include a specific encrypted code into the codeigniter so that's without this code/file, the application won't run at all or give a warning to the user?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 PHP 中很难做到这样的事情,因为最终用户只需从源代码中删除相关代码并继续使用它即可。尝试将某种终止开关类型的程序集成到源代码的每个部分中以防止人们仅仅注释掉许可证部分将是一个可怕的混乱。
无论如何,我想不出任何干净的方法来许可这样的 PHP 软件,而且我还没有审查过这个软件,但这似乎确实符合您正在寻找的内容的描述。
http://freshmeat.net/projects/padl/
It would be difficult to do something like this in PHP simply because an end user can just delete the pertinent code from the source and keep on using it. It would be a godawful mess to try to integrate some kind of killswitch-type procedures into every bit of the source in order to prevent people from just commenting out the license parts.
At any length, I can't think of any clean way to license PHP software like that, and I haven't vetted this software, but this does seem to fit the description of what you are looking for.
http://freshmeat.net/projects/padl/