Using Security Headers to help secure your site
summary
Many common site compromises are avoidable with a few HTTP headers and careful configuration: practical steps cover HSTS with max-age and preload (preload requires >1 year and can brick domains), setting headers at the web server for performance, using CSP with report-only mode first plus nonces or SHA-256 hashes and SRI for third-party scripts, X-XSS-Protection and X-Content-Type-Options, and Feature-Policy to disable unused APIs. WordPress admin areas and plugins often break CSP and caching or reporting to the same domain can DDoS reporting, so test carefully.
AI-written summary · about
chapters (12)
- 0:00Introduction to security headers
- 3:26What are HTTP headers
- 7:25HTTP Strict Transport Security
- 12:27Cross-site scripting protection
- 16:25Content type options
- 17:48Content Security Policy basics
- 24:35Subresource integrity
- 27:24Challenges with CSP in WordPress
- 29:13Protecting users vs developers
- 30:17Feature policy overview
- 31:45Tools to check headers
- 32:23Q&A and closing remarks
