A Content Security Policy (CSP) tells the browser which sources of scripts, styles, images, fonts, and connections are allowed. If an attacker injects a script, a good CSP stops it from running or from sending data away. Set it in Aegisify Shield → Security Headers → Standard headers → CSP level.
Levels
- None (default): no CSP header is sent. An untested CSP can break scripts, payment widgets, and page builders.
- Basic: safe defaults for most sites. Allows your own site plus any HTTPS source for scripts, styles, images, fonts, and connections, and still allows inline scripts and styles. Framing is limited to your own site.
- Strict: a locked-down policy. Scripts, connections, and fonts only from your own site (plus
data:for images and fonts); inline styles allowed; framing limited to your own site. Many plugins and third-party services will need adjustments. - Pro: Use Visual CSP Builder (Report-Only): your custom policy is reported but not enforced.
- Pro: Use Visual CSP Builder (Enforced): your custom policy is enforced.
Recommended path
- Start with Basic and test the whole site.
- If you need tighter control, use the Pro CSP Builder in Report-Only mode, review violation reports, and only then enforce.
Admin safety
To protect administrator recovery, Shield never sends a blocking CSP to wp-admin or the login page; admin policies are sent as Report-Only.
Related: CSP Builder mode, Security header profiles.
