Page 1 of 1

source code protection

Posted: Wed Oct 01, 2003 5:05 am
by horobey
Hi guys I am searching the Net for good PHP source code protector/obfuscator.
Do you use one of them? What can you advise me?

Posted: Wed Oct 01, 2003 5:10 am
by patrikG
The only people ever seeing your PHP-code are those with direct access to the server.

PHP is serverside scripting - it hands the server the data it will send to the client. The only thing a visitor to your websites will see is this data. Not ever one line of your PHP code.

Posted: Wed Oct 01, 2003 5:51 am
by mesz
There are loads of good javascripts to hide source code at
http://www.dynamicdrive.com

Posted: Wed Oct 01, 2003 6:22 am
by twigletmac
Are you looking to protect source code you intend to distribute/sell?

Mac

Posted: Wed Oct 01, 2003 7:00 am
by Derfel Cadarn
patrikG wrote:The only people ever seeing your PHP-code are those with direct access to the server.
True, unless you're used to saving a backup of the script you're currently working on as a phps in the same directory.
I made this mistake once, untill I discovered what the f:evil: I was doing....

lol

Posted: Wed Oct 01, 2003 7:13 am
by horobey
I am going to sell some expensive scripts which cost me and my team lots of time and effort. PatricG, you're right only my customers will see the script. But they can be my competitors willing to reverce engineering and stealing parts of the code. Customers also can use my script to create their own and then distribute it.
...
etc
...

So thing I am looking for is "PHP source code obfuscator"
It takes PHP file and renames all the variables, removes line breaks etc.
I am already testing stuff like POBS, but as too me it is not perfect.
For example it will wrong interpret lines like
$var1="this is one dollar = \$1";

Hope somebody can help me.

Posted: Wed Oct 01, 2003 7:17 am
by [xNet]DrDre
SourceGuardian.

The only problem is, to use php encryptors, your clients would have to install the decryptors on their server, this will lead to
->Laziness and complains
->Host not allowing it
->Complaining bout no source view

Because people like to see the source when they buy something, cuz if they buy it, they expect to be able to edit it

Posted: Wed Oct 01, 2003 7:36 am
by horobey
seems like noone here has any experience with subj.

Obfuscator is different from encryptor. Obfuscator will just rename variables from $my_variable to $bc23af32d98c so now code update is nearly impossible.

Posted: Wed Oct 01, 2003 7:41 am
by devork
obfuscated codes are complex and create complex outputs mean little tough coding varius results /outputs

Posted: Wed Oct 01, 2003 8:10 am
by horobey
what do you mean?

Posted: Wed Oct 01, 2003 8:22 am
by scorphus
Sorry if I'm wrong but it seems that Zend Encoder or Zend SageGuard could be what you're looking for.
Regards,
Scorphus.

Posted: Wed Oct 01, 2003 8:44 am
by horobey
yeps but Zend is ~$900 I would like something cheaper.
And I would like somebody to share some experience of using it.