1350 posts
  • Has been part of the Envato Community for over 6 years
  • Has collected more than 1000 items on Envato Market
  • Helped several times protecting Envato Market against copyright violations
graphic4444 says

hi – I want to try and somehow protect scripts I buy from being looked at/taken by competitors who do Ctrl-U and click the filename.js in my site pages.

though i realize you can’t protect .js from advanced techno-geek hackers, would something like minify or other obfuscator at least provide some protection against casual copycat/thiefs? or, any speed or other drawbacks to using obfuscators?

i like protecting stuff I buy (for example I domain-lock .swfs); wanted to see if any easy way (not php/asp redirect, that’s too techy for me to do), to somehow protect .js files?

thx,

k

736 posts
  • Has been part of the Envato Community for over 2 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+2 more
Typps says

Using a compiler like google closure to minify and hyper crunch your code is a good thing to do. There are many minifiers and most will perform variable renaming/method renaming and optimization of your code. I use google closure as part of my build process and its very nice.

However, I’d use these tools to increase my development productivity ( google closure gives you quite a lot in this regard) and to improve the overall file size of your assets.

Sadly protecting your code base will be difficult no matter how much obfuscation you manage to implement because the assets are downloaded to the clients computer. You will be investing too many resources when the same time can be well spent going about the real needs that bring value to your business.

You have exclusive copyright to your work. This is enough protection to stop abuse of your code. Any serious business will consider those implications and not go that route.

Edit: I misread your wanting to protect code you write versus code you purchase on envato. I guess the original authors of said code will have to do the minification anyway. Attempting to go for advanced crunching of the code base that involves variable/methods renaming is complex and needs to be thought out from the beginning as the developer is writing the code or you’ll simply end up breaking the code.

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by