When should I prefer Client-side validation checks over Server-side validation checks

0 votes
Hi. I am building a new web application that takes user information from the html form and send it to the server which then stores the data in the database. For the user input, I want validation and I have two options: client-side check and server-client. My senior asked me to use client-side check but I don't know why and couldn't ask him at that time. Can someone tell me the reason behind this?
Aug 23, 2019 in Cyber Security & Ethical Hacking by Rishi
949 views

1 answer to this question.

0 votes
Client-side validation checks are preferred to reduce the load on the server. Suppose there are 5 fields in the form and you decide to use server-side check. Every time there is an invalid input from the user, the server transaction is wasted because the input is sent to the server, gets validated but the data doesn't get stored because it is invalid. In such cases, using client-side checks reduce the requests to the server because only valid inputs are sent to the server. I think you were asked to use client-side checks because the input data is not dangerous to the functions of the web application.
answered Aug 23, 2019 by Steven

Related Questions In Cyber Security & Ethical Hacking

0 votes
2 answers

What programming language should I learn for cyber security?

Python is a language that is making ...READ MORE

answered Jul 5, 2020 in Cyber Security & Ethical Hacking by South
• 140 points

edited Oct 6, 2021 by Sarfaraz 4,537 views
0 votes
1 answer
0 votes
1 answer
–1 vote
1 answer
0 votes
1 answer

What programming languages should a ethical hacker know?

An Certified Ethical Hacker is a  computer expert, who specializes ...READ MORE

answered Feb 3, 2020 in Cyber Security & Ethical Hacking by Sirajul
• 59,230 points

edited Oct 6, 2021 by Sarfaraz 1,650 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP