Avoid changing the information in HTML

Asked

Viewed 16 times

0

Hello,

I am developing a web application that, on certain pages, has a table with information and I have an event (in jQuery) that is on the table lines that when clicked pass to a detail page. My doubt is related to the way I identify the lines.

Right now I’m doing the following: <div class="test" data-id="3">. However, anyone who knows how to use the developer tools, can go change the value and see another type of information.

Is there any having this identifier but it cannot be changed so easily?

  • From what I see, you want only the person who created this line to be able to make changes to it? (thus preventing other people from using this id and making changes without permission?)

  • Everything you have in the browser the user will be able to modify. You can even make it difficult by creating some kind of encryption and stuff, but you’ll always have to validate the information.

  • Excellent answer: https://answall.com/questions/13298/usar-valida%C3%A7%C3%A3o-via-client-%C3%A9-sufficient

  • I give a more practical example to contrast with this one I gave. In outlook.com, the first thing you see is an email list and only after clicking on one does it open the email. I’ve seen the source code and it didn’t seem like there was any email identifier. I was wondering how I can do in my application?

No answers

Browser other questions tagged

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