SecurityZines.com Join

CSP

Content Security Policy

Web SecurityPrintie

CSP (Content Security Policy): hand-drawn explainer poster

Understanding CSP (Content Security Policy)

What is CSP? Content Security Policy (CSP) is a web security standard that helps prevent various attacks, such as cross-site scripting (XSS) and data injection, by controlling which resources a web page can load. It acts as a whitelist of trusted sources defined by developers.

How It Works: CSP is implemented via HTTP headers or meta tags. When a browser loads a web page, it enforces the defined rules, allowing only the specified scripts, styles, or other resources. Any violation generates a report, enhancing visibility into potential attacks.

Why It Matters: By limiting the resources a website can load, CSP significantly reduces the risk of executing malicious code, making it a vital layer of defense in modern web applications.

This is the printer-friendly version. See the colour CSP flyer.

More on Web Security

All 35

Get the next one by email

New posters land in the Security Zines newsletter on Substack. Free, no spam.