Protect source code

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
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Protect source code

Post by fastfingertips »

How can i protect my source code?

If i'm posting my files on a public server, how can i make then unreadable? I'm also thinking to something like encryption.
d3ad1ysp0rk
Forum Donator
Posts: 1661
Joined: Mon Oct 20, 2003 8:31 pm
Location: Maine, USA

Post by d3ad1ysp0rk »

Your PHP code? It's already done.

HTML? There's no reason to.
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Post by fastfingertips »

LOL

Sir if you are informed about this please provide a solution otherwise do not use the database of this forum for an useless answer :P.

When i was talking about source code encryption i was referring to the possibility that if someone will be able to take my source files to look at them then that person must not be able to understand what is inside.
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

no need to be a idiot about it... punk was only helping.

the only way I see anyone getting to your .php files was if u set up their own ftp account n gave them access to whatever server your files are on.

html code can be seen if the person really wants it.
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Post by fastfingertips »

OMG :x

Please can you post on the subject?
As i know you can encrypt your php files or to transform the code lines into a very understandable form so nobody else will not be able to understand anything even if he will stay with the source files in front of his eyes many weeks.

I want to know how to secure that and i'm not interested what happening on the user side.
fastfingertips
Forum Contributor
Posts: 242
Joined: Sun Dec 28, 2003 1:40 am
Contact:

Post by fastfingertips »

For example if you are designing an application in PHP you will need to protect somehow your source files (your work) before to publish it.

That's why please post on this subject and excuse my behaviour.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

There is the Zend Source Protector (google for it) and, also a thread about this at
viewtopic.php?p=90052&highlight=#90052
User avatar
tim
DevNet Resident
Posts: 1165
Joined: Thu Feb 12, 2004 7:19 pm
Location: ohio

Post by tim »

oh i am sorry... i'd read this too, i had it in my favs.

http://www.groovyweb.uklinux.net/index. ... 20how%20to
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

fastfingertips wrote:OMG :x

Please can you post on the subject?
As i know you can encrypt your php files or to transform the code lines into a very understandable form so nobody else will not be able to understand anything even if he will stay with the source files in front of his eyes many weeks.

I want to know how to secure that and i'm not interested what happening on the user side.
You know, if you're clear in your question others will be clear in their answers. No need to be rude, just clarify.

Mac
malcolmboston
DevNet Resident
Posts: 1826
Joined: Tue Nov 18, 2003 1:09 pm
Location: Middlesbrough, UK

Post by malcolmboston »

i know you can get hold of 'freeware' versions of this sort of thing but i mean really, most of the ones ive used ive just hit ctrl+r to do a search + replace and tadda ive unscrambled my own source code

although i read a rather favourable review a few days ago about the zend protector

as a designer / developer myself i always have a little voice in my head saying if you give this guy/gal/company your source code they are free to do whatever you want with it, hence why i dont give it out through the initial 'development' stage and just give screenshots until its 'ready' to go on my server and go live, only when i receive 100% payment do i ever give the source code out.

however i would like to have the option of keeping my code a 'secret' even after selling the site to a company, so i for one will be looking more into this option in the close future
Post Reply