Web Security · Junior · Question 2 of 75

A form checks in JavaScript that the age field is a number from 18 to 120. Is that enough to protect the server?

Explanation

Client-side validation is for user experience. Anyone can send a request with curl or DevTools, so every rule that matters must be checked again on the server.

Further reading

Problem with a question

Web Security · Junior · question 2

Test yourself

Take the Web Security · Junior quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz