Click here to Skip to main content
15,887,683 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
i developed an application in which i use hidden input and read only text inputs to pass fixed variables to server. but anyone can change these values from inspect element. i want to be sure than no one can change these values.

i disabled ctrl+alt+c, f12, right click but inspect element can be open by open from any other page and then open my page or press f12 on title bar.
Posted
Comments
Sergey Alexandrovich Kryukov 27-Jun-15 22:21pm    
What do you mean by "inspect element tool"? Is it a tool of some particular browser? Then it makes no sense at all.
You should come from the assumption that everything which is sent to the client side in your HTTP response is 100% accessible to the client.
—SA
Mohibur Rashid 29-Jun-15 3:35am    
read the link Do not do it

You can't do it in your code.

In IE it can be done though Group Policy (NOT YOUR CODE!) if in a domain environment, but other browsers do not have such a facility.
 
Share this answer
 
As per my understanding your main concern about changing the values stored in variables at client side, So you can use some other options for hiding these data from client, I would like to suggest that you can use bundling and minification for your jquery code, that can not easily understand by some end use guys. or can also use encryption or other things for these values.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900