I am using jQuery to disable some form buttons. Simple stuff. But how can I prevent users from editing the DOM and enabling the button themselves so they can work around the restrictions I put in place?
-
1You cannot! You have to use server side logic script as PHPA. Wolff– A. Wolff2013-01-07 16:57:19 +00:00Commented Jan 7, 2013 at 16:57
-
1This question may be of use to you. Keep in mind that the client cannot be trusted to validate its own input to your server.Ryan Stein– Ryan Stein2013-01-07 17:00:36 +00:00Commented Jan 7, 2013 at 17:00
Add a comment
|
4 Answers
You can't. The client is completely under the control of the user.
You can only handle what data you accept when it is submitted to the server.
Use client side code to make things convenient for users. Use server side code to enforce security and other restrictions.
1 Comment
tvb
Thank you. I understand. Thus I need to validate every input in the server-side.