Protect my source code from end user
If you want a commercial solution, two of the most popular products are ionCube PHP encoder and zendguard . There are a few free solutions too like PHP protect but I haven't personally used any of them. Search for php obfuscator/encoder
to find the kind of software you require.
How to hide a web code source in the server
You can use any php code obfuscator or php code encoder
http://www.ioncube.com/ is a good code encoder and used by whmcs. And there are many free obfuscators
Obfuscation is making the source code difficult to understand for humans by changing the source code. It sometimes reduces size too. Encoders represent the code in another form which is difficult for humans.
Best solution to protect PHP code without encryption
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:
- "EULA advice" on joelonsoftware
- "How to Write an End User License Agreement"
PHP source code protection method?
There are some commercial solutions available like ioncube's php encoder, zend guard, and phpshield that will all do what you're asking. Hope this helps :)
Related Topics
Resetting Array Pointer in Pdo Results
I Cannot Get My Login Form to Connect Interact Properly With MySQL Database
Insert - Number of Bind Variables Doesn't Match Number of Fields in Prepared Statement
Laravel Certificate Verification Errors When Sending Tls Email
Sanitizing Strings to Make Them Url and Filename Safe
Upgrading PHP in Xampp For Windows
How to Create Virtual Host on Xampp
In Where Shall I Use Isset() and !Empty()
Serializing PHP Object to Json
How to Extract Text from the Pdf Document
Use PHP to Set Cron Jobs in Windows
Export MySQL Data to Excel in PHP
Pdo Prepared Statements With Wildcards
File_Get_Contents(): PHP_Network_Getaddresses: Getaddrinfo Failed: Name or Service Not Known
What Is a Front Controller and How Is It Implemented
Running Command-Line Application from PHP as Specific User
Curl Error: Recv Failure: Connection Reset by Peer - PHP Curl