Forum Moderators: phranque
I've searched for the answer to this question everywhere I can think of.
I have htaccess code that I intend to sell to customers. This code's purpose is to control the way a 3rd party perl script operates.
Is there a way to encrypt the actual htaccess rules so that my competitors cannot view, steal and resell my ideas as their own? I only say this because this very thing happened to me in the past.
If not, is there a way to put something in a perl script or php file or something that would serve rules into the htaccess file on the fly or ANYTHING that might be a solution to this rather bizarre problem? Thanks!
Gdog
You could replace the htaccess with a very obfuscated mod_perl module: Perl is good for obfuscation, and mod_perl is an arcane art not easily understood by the PHP generation ;-). That still wouldn't be a real hindrance to reverse engineering.
The only way to get the kind of protection your'e looking for would be to write your own custom Apache extensions in C and distribute them as binary modules. (Yes, even these could be reverse-engineered but only with exponentially greater effort).
Jim
I'm just afraid that because it has happened before I already know the charachter of the fellow doing the damage. As far as this guy goes, hanging a sign saying, 'this code is protected by copyright' might not do the trick. Although I appreciate your thoughts, I think this would be kind of like hanging a sign at a bank saying 'robbing us could lead to a prison sentence' all while leaving the doors unlocked and the vault open. Ouch!
A nice thought but maybe a security system would prove to be more effective. However, finding the best security system might not prove to be an easy task :(
Any other thoughts? Thanks.
Maybe it's more like the equivalent of making bank robbery punishable by the incarceration of your entire family. If your code is worth charging for, then it's worth a registered copyright. It's basically either that, one of the other suggestions above, or just don't worry about it...
Jim