Protect against HTML changes without blocking the browser console

Asked

Viewed 467 times

1

Good morning, how do I prevent the user from entering the html element and modifying it? May example:

Return a value to screen and feed it within an input called itemSweet, then the user can use the quantity field to enter a quantity he wants to order which has to be <= to the itemSweed field.

I know I can handle this directly at the bank, but is there any way to handle it on screen?

Without me having to block the browser console.

1 answer

1


Does not. All that rotate in the browser can be changed by the user.

The treatments in client-side serve to improve the usability of the application, you can never fully rely on them, always make the validations on server-side.

  • I understood, so there is no location that I can "save" the return of the server-side and that is not accessed by the user?

  • It doesn’t exist. You can encrypt or make some scheme difficult, but then it’s another matter. What comes from the server can be changed by the client at all times.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.