PDA

View Full Version : Security Issue ..?



Vikram
27 Nov 2013, 8:19 AM
Hello there,

How can we restrict to user to view JS code in browser?

thanks & regards
vikram

delp
27 Nov 2013, 8:57 AM
You can't stop users looking at the JS code, but you can make it hard to read. Have a look at Sencha cmd to shrink your code base. http://vimeo.com/75397092

delp
27 Nov 2013, 9:02 AM
Also as a tip, if you are worried about someone else coping your code then insert a few extra functions that don't really do anything. That way should you find someone that has ripped of your work then it will be obvious and they can't say that they just created something with a similar mindset.

All security should be handled in the server side logic as well.

NEVER trust the client :)