All challenges
Multiple ChoiceIntermediate 30s

Input sanitization

Choose the best answer for: preventing injection
Options
  1. 1Trust the client's validation and re-check nothing server-side
  2. 2Validate on the client only, assuming the browser is safe
  3. 3Skip sanitization and rely on the database to reject bad input
  4. 4Validate and sanitize ALL user input on server; never trust client

Think you can answer under pressure?

Get matched and answer live questions in 3-minute 1v1 battles. Elo ranking, badge tiers and bragging rights on the line.

Play this in a 3-minute battle