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.
Loading...
Related Quiz
- To pass the request and response to the next entity in the chain, the filter uses the __________ method.
- How can a filter access initialization parameters set in the web.xml file?
- How does a servlet container differentiate between authenticated and unauthenticated users?
- A servlet is configured to allow only specific file types for upload. What strategies should be implemented to ensure this?
- Which XML element is used to declare a filter in a web application's deployment descriptor?