Webmasters Stack Exchange is a question and answer site for pro webmasters. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to prevent my HTML files downloaded to a particular system from getting copied from that particular system to another system or getting the script modified?

Is there any tool or method out? Well, I make custom projects using HTML and JavaScript for students and don't want someone to copy or modify the files once downloaded.

If they start copying or modifying, that affects me as I get paid per project. The projects are meant to run in the user's browser only. May it be online or offline.

share|improve this question
up vote 5 down vote accepted

Sorry, but that is not possible. They are plain text files, so no way to hide their content. As far as scripts, you can obfuscate the JavaScript, but it just makes it harder (but not impossible) for humans to read. As mentioned in a comment in that link, "The only way to truly keep something secret is to not send it to the client."

share|improve this answer
+1 Also note that there are even tools to reverse minification/obfuscation, to varying degrees depending upon the original process used, further eroding how useful that is. It tends to largely be formatting, with variable names still left as less-than-useful "a" "b" etc, but it's still a big difference. – Su' Jan 13 '13 at 11:09
Thank you. I was also thinking that how can anyone hide those text files. But asked this question to be sure. – user1439968 Jan 14 '13 at 5:19

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.