commercial Web application PHP - [duplicate]
Asked Answered
D

5

6

I was thinking of making a commercial application to sell to customers to install on their servers but I wanted to do it with PHP & MySQL.

what should i do to ensure that the source code (& Database) will not be opened nor copied. The most important thing is the code will be hosted on the customer server. And also how to ensure that the customer will not resell the web application (like copying the code & Db to other people)

Thank you

Darden answered 2/4, 2010 at 17:54 Comment(0)
N
6

There's a lot of question around PHP code obfuscation / encryption / compilation on SO. Check them out.

There is a number of products to protect PHP code like Zend Guard, ioncube encoder and others.

Related SO questions:

Nudicaul answered 2/4, 2010 at 18:2 Comment(3)
+1 Great info Pekka. (though it only covers half the problem. The DB is the hard nut to protect).Deviate
@mrj you're welcome. But a DB? Didn't read that part. I'd say that is pretty impossible to protect in any performance-oriented way. Then you need to think about Software as a service.Nudicaul
I have read the links you have provided and I think I will still go forward with making the application with PHP. The most important protection I will use will be the legal part and then I think I will go for obfuscatoin and ioncube Thanks, these were really helpful links.Darden
S
2

As long as the software is distributed in source code form (versus binary), there are no way to prevent the customer opening / altering it. Even binaries can be more or less reverse-engineered by decompiling them.

One can obfuscate the code in order to make it difficult to read / understand how it works, but as every countermeasure, it won't stop piracy – sooner or later someone with enough motivation will bypass it.

You have few options:

  1. Sell your software as a service (SAAS).

  2. Just don't care about piracy, high-profile / most users will probably pay anyway if the price is reasonable.

  3. Licence it as free (libre) and profit by selling support etc.

Saransk answered 2/4, 2010 at 18:18 Comment(0)
D
1

You can use Zend Guard and some controls inside your applications to try to mitigate piracy on your PHP WEB applications.

DataBase will probably remain open.

Dipody answered 2/4, 2010 at 18:1 Comment(0)
D
0

Not possible, IMO, without a fully hosted environment. Once on the customer's server, they have access, then it is a matter of determination and resources. I say this because even powerful, native code licensing protectionss are subverted all the time, just Google to see all of the cracked keys.

If you DO want to protect your code, use of native languages or obfuscated verions (at least) will only change the magnitude of difficulty, but not alleviate the risk.

Protecting the database is even tougher. Even engines that allow full DB encryption require the key to start / connect to the db. If that is part of your web app, or in the customer's hands, they have full access. DB Encryption is really for protection against hackers, not against your customers.

Piracy becomes a legal issue, not a technical issue.

Deviate answered 2/4, 2010 at 17:56 Comment(0)
B
0

I think the most you could do is encode it but if they are savvy enough to notice they can just decode it... PHP is a scripting language that is interpreted at run time.

Your customers should be signing a contract saying they won't be handing it out, you could work some sort of licensing check into the software to verify that no one is using it illegally... vbulletin is an example of a commercial PHP web app, you may look into the way they go about business.

Buford answered 2/4, 2010 at 18:1 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.