How to stop users to make changes in values by using Inspect Element / Developer Tool or by pressing F12? Presently users are able to make changes in values. I want to stop it. Is there any idea with out disabling keys?
Asked
Active
Viewed 1,659 times
0
-
1If it is a form submit or something like that, you could probably validate at server side (i.e., if you have one). If not you wont be able to prevent it from a good computer user. To prevent from newbies and freshers, you could prevent key press by checking key code. – Vinod Kumar Apr 17 '15 at 08:31
-
possible duplicate of [How to Disable Function keys using Javascript?](http://stackoverflow.com/questions/13678847/how-to-disable-function-keys-using-javascript) – Code Lღver Apr 17 '15 at 08:32
-
This is not about the disabling the Function keys, It is about stop changes in values. – Aman Gupta Apr 17 '15 at 08:47
1 Answers
2
You can not prevent that, because it happens on the users computers, and you have no control over those (usually).

Jost
- 5,948
- 8
- 42
- 72
-
-
They only make it harder, not impossible - you can for example add a handler for right clicks that prevents the context menu from opening. But you cannot prevent a user from opening firebug and using its "select"-tool. – Jost Apr 17 '15 at 08:33
-
2@ArsenMkrt Facebook doesn't do that, you can easily change something on FB via the developer tools. – André Snede Apr 17 '15 at 08:34
-
some sites just dump some copyright message in that window... I agree, that it just makes harder... but however not sure how they do it – Arsen Mkrtchyan Apr 17 '15 at 08:36
-
but i saw in one website, I pressed F12, I can see the HTML source code , but i was unable to make changes. – Aman Gupta Apr 17 '15 at 08:38
-
2
-