Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What are some good ways to prevent people from copying my source code? [closed]

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.

like image 874
Scarface Avatar asked Apr 01 '10 18:04

Scarface


People also ask

How do I hide my source code not copied?

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.

Is it illegal to steal source code?

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.

Is it legal to copy source code of a website?

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.


1 Answers

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:

  • http://code.google.com/p/minify/
  • http://refresh-sf.com/yui/
  • http://ajaxian.com/archives/utility-javascript-obfuscator

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.

like image 110
Brian Lyttle Avatar answered Nov 11 '22 05:11

Brian Lyttle