Content Security Policy (CSP)
Learn how a Content Security Policy tells the browser which sources of scripts, styles, images, frames and forms to trust. Covers directives, source values, nonces, report-only rollout, and the meta tag's limits, with a live policy tester and a directive matcher.
HTML Security: Keeping Pages and Visitors Safe
Start learning HTML security: where web page risks come from, which HTML features protect visitors (escaping, rel noopener and noreferrer, iframe sandbox, CSP, https), and which protections live on the server. Includes an escaping lab and a defence matcher.
Secure HTML Form Design
Learn secure HTML form design: never trusting the browser, server-side validation with allow-lists, HTTPS, escaping output to stop XSS, parameterised queries against SQL injection, CSRF tokens and SameSite cookies, safe password handling, rate limiting and bot defences, avoiding information leaks, safe file uploads, mass assignment, privacy and data minimisation, and a practical security checklist.
XSS Basics: Cross-Site Scripting
Learn what cross-site scripting (XSS) is, the three types, why it happens, and how to prevent it: escape output for the right context, use safe DOM methods, validate links, sanitise when HTML is allowed, and add a CSP. Includes a context escaping lab and a safe-or-unsafe quiz.