I have a lot of customized javascript and layout design, and I want to prevent people from using those. Is there any practical way to do this, or do I basically just have to be happy my php code does not show? I want to at least make it difficult to copy my site.
No, there is no way to hide one's code on the web. If you're sending information to the client-side, that information can be copied. That's not merely a fact of the web, that's a fact of information theory. The only option for cases like this is not prevention, but detection.
Theft of software also constitutes copyright infringement. As far as the law is concerned, code is no different from prose or paint. Copyright gives creators certain exclusive rights over their works, whether those works are novels or website code.
At first glance, it may seem as if it's perfectly legal to copy content from a website. But is it? The short answer to this question is "no," unless you've obtained the author's permission. In fact, virtually all digital content enjoys the same copyright protections as non-digital, "offline" content.
If people really want to get access to your source code they can do that fairly easily.
It is possible to slow people down to a limited degree by obfuscating code.
See:
Maintaining obfuscated code is difficult. What you want to do is obfuscate it before deployment so that you can test and debug with the normal version. Debugging problems on a live site can be made a lot more difficult by the obfuscation.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With