How can I protect my code?
Moderator: General Moderators
How can I protect my code?
Dear All
My new code has some pretty nifty technology in it that I don't want anyone else to copy and profit out of (that's just against the rules!).
I've got all my PHP scripts in separate PHP files on my server's public HTML directory. I know if you go to View->Source you can view only the HTML output, however is there any way to stop people copying/downloading my code? E.g. some encryption system that won't take a lot of bother or processing time to use? Or some other method?
What permissions should I use for my PHP scripts for maximum security (bearing in mind they need to be accessed in order to run). Do I turn off 'public read' and just leave 'public execute' on? Would this make them only runnable (i.e. only HTML output viewable in browser) but not capable of being downloaded by a user?
Many thanks
Mark
My new code has some pretty nifty technology in it that I don't want anyone else to copy and profit out of (that's just against the rules!).
I've got all my PHP scripts in separate PHP files on my server's public HTML directory. I know if you go to View->Source you can view only the HTML output, however is there any way to stop people copying/downloading my code? E.g. some encryption system that won't take a lot of bother or processing time to use? Or some other method?
What permissions should I use for my PHP scripts for maximum security (bearing in mind they need to be accessed in order to run). Do I turn off 'public read' and just leave 'public execute' on? Would this make them only runnable (i.e. only HTML output viewable in browser) but not capable of being downloaded by a user?
Many thanks
Mark
there was a post about this a while back...and few before that aswell, search the forum.
here is a start for you...
viewtopic.php?t=20440&highlight=protect+code
here is a start for you...
viewtopic.php?t=20440&highlight=protect+code
-
anotherJean
- Forum Newbie
- Posts: 22
- Joined: Tue Mar 30, 2004 3:59 pm
You do know that PHP is executed on the server and then it gives the output. I would find it practically impossible for someone to view your source unless they that ftp access or you were foolish enough to create a script which opens a file given by a variable, like
viewfile.php?file=blah.txt
Also remember to put an index page in each directory to prevent others from seeing your directory listing. And anotherJean just say what you have to say as im very interested. I personally think the user in question is just thinking of the aspects of his security so please do not abuse others for no reason whatso ever. Nevertheless code on and best of luck with your security pal!
viewfile.php?file=blah.txt
Also remember to put an index page in each directory to prevent others from seeing your directory listing. And anotherJean just say what you have to say as im very interested. I personally think the user in question is just thinking of the aspects of his security so please do not abuse others for no reason whatso ever. Nevertheless code on and best of luck with your security pal!
-
anotherJean
- Forum Newbie
- Posts: 22
- Joined: Tue Mar 30, 2004 3:59 pm
-
anotherJean
- Forum Newbie
- Posts: 22
- Joined: Tue Mar 30, 2004 3:59 pm
-
magicrobotmonkey
- Forum Regular
- Posts: 888
- Joined: Sun Mar 21, 2004 1:09 pm
- Location: Cambridge, MA
Code: Select all
IndexIgnore */*-
kettle_drum
- DevNet Resident
- Posts: 1150
- Joined: Sun Jul 20, 2003 9:25 pm
- Location: West Yorkshire, England
the chances of that being effective is slimkettle_drum wrote:Write a license for it saying that nobody can copy the code without your permission and payment etc etc.
face it, if someone has the intentions of copying the code, how would anyone else be able to find out if their code is being used? Copyrighted or not, its just the harsh reality of lazy slobs who cannot write their own.
-
anotherJean
- Forum Newbie
- Posts: 22
- Joined: Tue Mar 30, 2004 3:59 pm
my names's not everyone elsemjseaden wrote:Thanks to those who made helpful comments. Everyone else - you really know how to waste your own time. I want to protect my code because I just spent the last 3-4 months of my life making it - is that simple enough?
Mark
referring to your first post above I just doubt you are able to write such great code as it seems you even don't know the basics. however if it's really your own code, try to hide it, waste your time and your/servers ressources .
oops I am being harsh again? I'm sorry. I just had to put in my two cents' worth
btw my suggestion
Code: Select all
<?php
print str_rot13(str_rot13("nifty technology")) ;
?>