security - Access restriction with JavaScript -


i have application done in javascript using ember.js. want following:

  1. i have 2 account types: basic , premium.
  2. depending on account type user have wish display ads him.
  3. the user can use parts of application if has premium account.

what must have in mind in order protect application it's secure against people trying use premium features without having privilege? because javascript sent single file, people can @ app code , maybe reverse or copy , use locally without entering site, put effort waste.

your client side code shouldn't considered more sugar user's experience, not layer trusted.

that means backend should pessimistic in nature, not trusting requests client, making sure can make said request, , sanitizing data sent them assuming user trying harm.


Comments

Popular posts from this blog

database - VFP Grid + SQL server 2008 - grid not showing correctly -

jquery - Set jPicker field to empty value -

.htaccess - htaccess convert request to clean url and add slash at the end of the url -