In the context of web security, what is the primary purpose of Content Security Policy (CSP)?
- Mitigate Cross-Site Scripting (XSS)
- Protect against DDoS attacks
- Prevent SQL Injection Attacks
- Ensure Secure File Uploads
Content Security Policy (CSP) primarily aims to mitigate Cross-Site Scripting (XSS) attacks by specifying which sources of content are considered safe and trusted. CSP helps prevent the execution of malicious scripts injected into web pages.
Loading...
Related Quiz
- What is the function mysql_pconnect() useful for?
- Which function can be used in PHP to filter and sanitize user input?
- In PHP, the if statement is used to execute some code if a ______ is true.
- What is the main purpose of a destructor in a PHP class?
- What kind of operations can be performed inside a constructor in a PHP class?