Certified Ethical Hacker (CEH v10) — Question 122

Which of the following is one of the most effective ways to prevent Cross-site Scripting (XSS) flaws in software applications?

Answer options

Correct answer: C

Explanation

The correct answer, C, emphasizes the importance of validating and escaping all user input to prevent XSS attacks. Options A, B, and D, while important for other security aspects, do not specifically address the prevention of XSS vulnerabilities.