Doubts about client side validation

I read from one of the blog, for security reasons, it was suggested to do an input check on the server side, and not on the client side.

From the above statement, My mind began to ask then 1) what kind of check can I do with JS on the client side. 2) Is there any rule where any programmer can decide where to check, whether on the client side or on the server side?

I am creating a Java based web application

+3
source share
5 answers

You can do any checks on the client, but you should never rely on this check.

, . (, JavaScript), , .

, , , .

+6

, , javascript POST GET, ?

.

- .

, SQL- SQL - , . CSS, HTML. XML, RSS JSON, - , , , .

: - . , . - .

+5

javascript, , , , , ( , ), .

, , , , .

+2

, - , , , , . , -, - , .

, ( ) , .

+2

, , , , " " .

The client-side check, however, should be considered a NO check, as clients can disable this check and enter invalid values.

The server should always check the entered data. Client verification is for convenience only.

+1
source

Source: https://habr.com/ru/post/1752609/


All Articles