Example of input sanitization

Question:
Which of these is an example of input sanitization?

  1. Removing characters such a ', ;, and -- to prevent them from impacting a query
  2. Cleaning out sensitive user data from requests
  3. Programming a firewall to drop network packets containing potential SQL injection attacks
  4. Passing user input as parameters to a pre-prepared statement
Answer:
A - is the correct answer. That’s right! Input sanitization removes characters that have the ability to manipulate SQL queries from the frontend user input