To prevent XSS attacks, it is essential to _________ user input and _________ user output.

  • decode
  • encode
  • sanitize
  • validate
To prevent XSS attacks, it is essential to sanitize user input and encode user output. Sanitizing helps remove potentially harmful content, and encoding ensures that user data is displayed correctly and safely in the browser.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *