Which of the following is a common technique used to prevent cross-site scripting (XSS) attacks?

  • Input validation
  • Using strong passwords
  • Escaping user-generated content
  • Storing user data in plain text format
To prevent cross-site scripting (XSS) attacks, it's common to escape user-generated content before rendering it in web pages. This prevents code execution.
Add your answer
Loading...

Leave a comment

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