Analyze Content-Security-Policy headers and secure your website against XSS and injection attacks. Identify loose directives and wildcards.
Content Security Policy (CSP) is an added layer of security that helps detect and mitigate certain types of attacks, including Cross-Site Scripting (XSS) and data injection attacks. These attacks are used for everything from data theft to site defacement or distribution of malware.
Modern web applications rely heavily on external scripts, styles, and assets. Without a robust CSP, your site is vulnerable to supply-chain attacks where a compromised third-party library could inject malicious code directly into your users' browsers.
A well-implemented CSP is one of the most effective technical controls against XSS, which remains a top priority in the OWASP Top 10 security risks.
Follow these security standards to ensure your policy is both restrictive and functional:
* in directives like script-src as it allows any origin to execute code.'unsafe-inline' and 'unsafe-eval' to prevent classical XSS patterns.default-src 'self' to block everything by default, then add specific exceptions.Enter your URL and click "Analyze CSP". We retrieve your site's security headers and break down every directive. Our auditor identifies "risky" configurations like wildcards or unsafe flags and provides a security strength score. Use this report to iterate on your policy until you reach a robust 'Secure' status.
Stop manually checking tags. Let SeoKwik's algorithms do it for you instantly.
Other helpful tools in the Security category