source code protection

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
horobey
Forum Commoner
Posts: 52
Joined: Thu Jul 25, 2002 5:01 pm
Location: Ukraine
Contact:

source code protection

Post 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?
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post 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.
User avatar
mesz
Forum Contributor
Posts: 216
Joined: Fri May 23, 2003 8:11 am
Location: M/cr

Post by mesz »

There are loads of good javascripts to hide source code at
http://www.dynamicdrive.com
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Are you looking to protect source code you intend to distribute/sell?

Mac
User avatar
Derfel Cadarn
Forum Contributor
Posts: 193
Joined: Thu Jul 17, 2003 12:02 pm
Location: Berlin, Germany

Post 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
horobey
Forum Commoner
Posts: 52
Joined: Thu Jul 25, 2002 5:01 pm
Location: Ukraine
Contact:

Post 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.
[xNet]DrDre
Forum Newbie
Posts: 8
Joined: Wed Oct 01, 2003 7:06 am

Post 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
horobey
Forum Commoner
Posts: 52
Joined: Thu Jul 25, 2002 5:01 pm
Location: Ukraine
Contact:

Post 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.
User avatar
devork
Forum Contributor
Posts: 213
Joined: Fri Aug 08, 2003 6:44 am
Location: p(h) developer's network

Post by devork »

obfuscated codes are complex and create complex outputs mean little tough coding varius results /outputs
horobey
Forum Commoner
Posts: 52
Joined: Thu Jul 25, 2002 5:01 pm
Location: Ukraine
Contact:

Post by horobey »

what do you mean?
User avatar
scorphus
Forum Regular
Posts: 589
Joined: Fri May 09, 2003 11:53 pm
Location: Belo Horizonte, Brazil
Contact:

Post 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.
horobey
Forum Commoner
Posts: 52
Joined: Thu Jul 25, 2002 5:01 pm
Location: Ukraine
Contact:

Post by horobey »

yeps but Zend is ~$900 I would like something cheaper.
And I would like somebody to share some experience of using it.
Post Reply