To prevent cross-site scripting (XSS) attacks, it is important to ____________ user input in web applications.

  • Encrypt
  • Hash
  • Sanitize
  • Validate
To prevent XSS attacks, it is crucial to sanitize user input by removing or encoding malicious content. Validation alone may not be sufficient, as attackers can use various techniques to bypass it. Sanitization ensures that input is safe for rendering in web pages, contributing to a more secure web application.__________________________________________________
Add your answer
Loading...

Leave a comment

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