CS0-003 · Question #117
A developer is working on a program to convert user-generated input in a web form before it is displayed by the browser. This technique is referred to as:
The correct answer is A. output encoding.. Output encoding, also known as output sanitization, is a technique used to convert user- generated input in a web form before it is displayed by the browser. This technique helps to prevent cross-site scripting (XSS) attacks, which occur when attackers inject malicious code into
Question
A developer is working on a program to convert user-generated input in a web form before it is displayed by the browser. This technique is referred to as:
Options
- Aoutput encoding.
- Bdata protection.
- Cquery parameterization.
- Dinput validation.
How the community answered
(31 responses)- A87% (27)
- B3% (1)
- D10% (3)
Explanation
Output encoding, also known as output sanitization, is a technique used to convert user- generated input in a web form before it is displayed by the browser. This technique helps to prevent cross-site scripting (XSS) attacks, which occur when attackers inject malicious code into a web page, causing it to execute in the user's browser.
Topics
Community Discussion
No community discussion yet for this question.