The web form can only drop down the selected data items, and users can modify and submit them at will through the F12 debug panel, how to prevent this situation.

developed a web page form, in which some data items can only be dropped down and not entered at will, but users can modify the web page code through the debug panel of browser F12, modify the drop-down items into other content at will, and then submit them.

I would like to ask you how to prevent this problem. There seems to be no way through the client. Is it possible that all the drop-down data items can only be checked by the server to see if they are in the legal value? I feel so troublesome. Is there any good idea?

Apr.03,2021

client-side validation is never trusted, and server-side validation is required.


this situation cannot be avoided and prevented.

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b3e894-2bb9b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b3e894-2bb9b.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?