I'd like to protect the PHP and JavaScript program source code from the prying eyes of my client. How can I do that?
-
see: stackoverflow.com/questions/498704/…Nick Dandoulakis– Nick Dandoulakis2009-09-22 13:50:16 +00:00Commented Sep 22, 2009 at 13:50
-
3write some really crazy code using terrible names and bad formatting, like some people I know. that will cause them fits for years to come, and they will wish they couldn't actually see the code ;-)KM.– KM.2009-09-22 13:59:07 +00:00Commented Sep 22, 2009 at 13:59
4 Answers
your javascript source is fair game I'm afraid. You can minify it, you can obscure it and compress it but you can't hide it.
if you are storing PHP files on your clients server, then this issue will be difficult to overcome also.
Apparently there are some PHP encrypters available but they have an adverse affect on performance.
So yeah, not much you can do really. Especially if your client is technically savvy.
1 Comment
If someone has access to your source code it will always be susceptible. The best you can do is obfuscate it ala Google-JS style but it can always be reverse-engineered.
And what makes your application so special anyway? Unless it's some sort of program for something like the government I don't think you should really give a care.
Use a javascript obfuscator.
Jasob :: JavaScript Obfuscator - CSS Obfuscator
Although it won't be 100% irreversible. Just makes it hard to read and understand.
For PHP
and