0

I am currently working on a project which allows a user to upload a 3D model in .STL file format and then displays the 3D view for an audience.

There are many javascript libraries that allow you to do this however they do not hide the sourcefile.

How do I make sure people are able to use the 3D view without being able to download the model from URL.

With kind regards.

dennis
  • 1,872
  • 17
  • 24
  • 1
    If it runs on the client's browser, they already have it. – Jamiec Feb 13 '15 at 09:40
  • 1
    You aren't very clear about your execution environment, but if a browser can run a Javascript file, then anyone can see the Javascript source. You cannot prevent viewing of the source. – jfriend00 Feb 13 '15 at 09:41
  • Another relevant dup reference: [Is there a way to hide javascript code?](http://stackoverflow.com/questions/7862880/is-there-a-way-to-hide-javascript-code/7862891#7862891) and [How can I “cloak” my Javascript and CSS files using PHP?](http://stackoverflow.com/questions/8691941/how-can-i-cloak-my-javascript-and-css-files-using-php/8691957#8691957). – jfriend00 Feb 13 '15 at 09:43
  • Thanks jfriend00. I will have to find another way then – dennis Feb 13 '15 at 09:44

0 Answers0