問(wèn)題描述
首先,我不是在尋找奇跡……我知道 PHP 是如何工作的,并且沒(méi)有真正的方法可以在不使用加密的情況下向客戶(hù)端隱藏我的代碼.但這需要在運(yùn)行的服務(wù)器上安裝擴(kuò)展程序.
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.
我正在尋找不同的東西……我不想加密我的代碼,甚至混淆它.有許多沒(méi)有加密/混淆代碼的 PHP 腳本,但它們是商業(yè)應(yīng)用程序.例如,vBulletin 和/或 IP.Board 論壇應(yīng)用程序.
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.
我只想知道這些人在他們的應(yīng)用程序中使用什么方法...
I just want to know what approach do these guys use for their applications...
我也愿意接受任何其他建議.
I'm also open to any other suggestions.
請(qǐng)注意,我是單身人士,不在公司工作.我的產(chǎn)品也很具體,賣(mài)不了那么多.我只是想讓你們知道,我負(fù)擔(dān)不起咨詢(xún)法律專(zhuān)業(yè)人士來(lái)起訴某人或準(zhǔn)備商業(yè)許可證的費(fèi)用.我只是在尋找一種簡(jiǎn)單的方法來(lái)保護(hù)我的簡(jiǎn)單產(chǎn)品,如果確實(shí)可能的話(huà),以某種方式......
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...
推薦答案
混淆視聽(tīng)只會(huì)給你合法、守法的客戶(hù)帶來(lái)不便,而那些會(huì)欺騙你的人無(wú)論如何都不是你的目標(biāo)付費(fèi)客戶(hù).(編輯掉其他關(guān)于混淆的想法)
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)
保護(hù)您的軟件的另一個(gè)建議:創(chuàng)建一種商業(yè)模式,其中代碼是您產(chǎn)品價(jià)值的不完整部分.例如,出售產(chǎn)品許可以及訪問(wèn)您在網(wǎng)站上管理的某些數(shù)據(jù)的權(quán)限,或者以訂閱模式或通過(guò)客戶(hù)支持許可產(chǎn)品.
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.
設(shè)計(jì) EULA 是法律問(wèn)題,而不是編碼問(wèn)題.您可以先閱讀一些有關(guān)您使用的產(chǎn)品和網(wǎng)站的 EULA 文本.您可能會(huì)發(fā)現(xiàn)一些有趣的細(xì)節(jié)!
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!
創(chuàng)建專(zhuān)有許可證非常靈活,并且可能超出了 StackOverflow 的預(yù)期范圍,因?yàn)樗c編碼無(wú)關(guān).
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.
想到的 EULA 的某些部分:
Some parts of a EULA that come to mind:
- 如果產(chǎn)品存在錯(cuò)誤或造成損壞,則限制您的責(zé)任.
- 詳細(xì)說(shuō)明客戶(hù)可以如何使用他們的許可軟件、使用多長(zhǎng)時(shí)間、在多少臺(tái)機(jī)器上、有或沒(méi)有再分發(fā)權(quán)等.
- 授予您審核其網(wǎng)站的權(quán)利,以便您可以執(zhí)行許可.
- 如果他們違反 EULA 會(huì)怎樣,例如他們失去了使用您的軟件的權(quán)限.
您應(yīng)該咨詢(xún)法律專(zhuān)業(yè)人士來(lái)準(zhǔn)備商業(yè) EULA.
You should consult a legal professional to prepare a commercial EULA.
如果這個(gè)項(xiàng)目不能證明律師的費(fèi)用是合理的,請(qǐng)查看以下資源:
edit: If this project can't justify the expense of a lawyer, check out these resources:
- "EULA 建議" 關(guān)于 joelonsoftware
- "如何編寫(xiě)最終用戶(hù)許可協(xié)議"
- "EULA advice" on joelonsoftware
- "How to Write an End User License Agreement"
這篇關(guān)于無(wú)需加密即可保護(hù) PHP 代碼的最佳解決方案的文章就介紹到這了,希望我們推薦的答案對(duì)大家有所幫助,也希望大家多多支持html5模板網(wǎng)!