1569 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $100+ on Envato Market
  • Has collected 10+ items on Envato Market
+2 more
rahulbist
says

Hi everyone,

I am soon uploading a javascript file to codecanyon.

I want to ask if is it safe to give a live preview for such file. because, all files can be downloaded easily.

kindly, advice.

thanks in advance.

812 posts
  • Has been part of the Envato Community for over 5 years
  • Has collected 10+ items on Envato Market
  • Achieved the monthly Community Superstar Award
  • Sells items exclusively on Envato Market
iamthwee
says

Short answer, there is no real way to protect your code.

Best is to obfuscate it. Obviously if said buyer, purchases your item you would provide the proper js code, with the minified js as well.

http://stackoverflow.com/questions/194397/how-can-i-obfuscate-javascript
by
by
by
by
by
by