这个“许可”是如何实现的?使用该软件
Optimizepress 是一个 WordPress 插件。我拥有一份副本并使用它,并且想知道他们如何使用许可来保护产品。
如果可行的话,我想考虑这个来保护我自己的 php 脚本。
他们采取以下措施来保护其产品:
在下载脚本的服务器上,您必须在文本框中输入您的域 URL,以许可该 URL 的插件。
他们有 2 个文本框可用于输入您的域名: 1. 如果是第一次许可网站 2. 将更多网站添加到您的帐户
然后您单击提交按钮,系统会发回序列号
在 WordPress 中安装插件后,您必须转到设置区域要求您输入序列号进行验证,否则您将无法使用脚本
这是如何完成的?这可以与我将要分发的 php 脚本一起使用吗?
谢谢你的想法
optimizepress is a wordpress plugin. I own a copy and use it and am wondering how they use the licensing to secure the product.
I would like to consider this for securing my own php script if it's viable.
Here's what they do to secure their product:
On there server where you download the script you have to enter your domain url in a text box to license the plugin for that url.
They have 2 textboxs to enter your domains in: 1. if it's first time licensing sites 2. adding more sites to your account
Then you click a submit button and a serial code is sent back
After you install the plugin in wordpress, you must goto the settings area where it asks you to enter the serial code for verification otherwise you can't use the script
How is this done? Could this be used with my php script I'll be distributing?
thanks for your thoughts
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我不太熟悉这个脚本,但它很可能是一个使用 cURL 的脚本,序列号将用于验证您的帐户,以验证访问您的帐户。
接下来,它很可能会提取正在运行脚本的 URL,并验证该 URL 是否已在您的帐户中列出。
如果 URL 未列出,它可能会发送一个失败命令来终止脚本,如果 URL 已列出,它将进行身份验证。
如果列出,则脚本将检查许可证的状态并运行或终止该脚本。
使用这种类型的模型存在分歧,一些开发人员认为,如果身份验证服务器没有响应,那么脚本应该假设它被允许运行,以免中断用户体验,而另一些开发人员则认为,如果身份验证服务器没有回复这很可能是未经授权的使用,因此他们会终止该活动。
还有其他技术可以完成相同的任务,并且根据您的应用程序,这可能不合适,只需查看各种许可模型即可。
请注意,对于这种分发方式,您可能需要使用 PHP 编码器(例如 ionCube),这样脚本就不会被黑客攻击以绕过身份验证。
此外,在编写使用 API 的脚本时,我还建议让用户分配 IP 地址,这样对 API 进行身份验证的第一个查询就是我是否可以与该服务器通信。这为您的 API 脚本提供了很多保护,然后该脚本将继续验证许可证是否有效。
我希望这对您有帮助。
I'm not specifically familier with this script however it is very possible it is a script using cURL, the serial number will be used to authenticate your account for verification to access your account.
Next it will most likely pull the URL the script is being run from and verify that the URL is listed on your account.
From there if the URL is not listed it will probably send a fail command killing the script, if the URL is listed it will authenticate.
If it is listed then the script will check the status of the license and either run or kill the script.
There is a division in using this type of model whereby some developers believe if there is no response from the auth server then the script should assume it is allowed to run to not interrupt the user experience, others believe if the auth server doesn't reply its very possible it could be an unauthorised usage so they kill the activity.
There are other technologies available to do the same thing and depending on your application this may not be suitable, just have a look at various licensing models.
As a note, for this style of distribution you may want to use a PHP encoder such as ionCube so the script cannot be hacked to bypass authentication.
In addition when writing a script to use an API, I also recommend having the user assign the IP address, this way the first query to the API for auth is am I allowed to talk to this server. This provides a lot of protection to your API script that will then move on to verify the license is valid or not.
I hope this will be helpful for you.