Which of the following is the primary goal of input sanitization?
- Enhancing user experience.
- Ensuring data accuracy.
- Preventing cross-site scripting (XSS) attacks.
- Optimizing database performance.
The primary goal of input sanitization is to prevent cross-site scripting (XSS) attacks. It involves removing or encoding potentially dangerous characters from user input to ensure that it cannot be executed as script on a web page, thus enhancing web security.
Loading...
Related Quiz
- You are developing a high-traffic RESTful API with Express. How would you design the architecture to ensure optimal performance, scalability, and maintainability?
- In a distributed database system, achieving ______ can be challenging during CRUD operations due to network partitions.
- What implications does using synchronous fs methods have on the performance of a Node.js application?
- How does indexing impact the performance of read and write operations in a database?
- You are developing a user management system and need to design routes for CRUD operations. How would you structure the routes to follow RESTful principles in Express.js?