Which of the following is a common method to prevent Cross-Site Scripting (XSS) attacks?
- Cross-Site Request Forgery (CSRF)
- Input validation
- Output encoding
- Session hijacking
Output encoding is a common method to prevent Cross-Site Scripting (XSS) attacks. By encoding user-input before displaying it in a web page, potential malicious scripts are neutralized, reducing the risk of XSS vulnerabilities.
Loading...
Related Quiz
- _______ caching involves storing data in a distributed manner across multiple servers.
- _______ is known for its speed and event-driven architecture, making it suitable for building real-time applications and APIs.
- In SQL, the ALTER TABLE command is used to _______ an existing database table.
- _______ preloading is a technique used to fetch critical resources in advance to reduce latency during page load.
- In RESTful APIs, _______ is a mechanism used to control access to resources.