CSP SRI STS PKP ETC OMG WTF BBQ…
summary
Walkthrough of concrete headers and behaviors: Content Security Policy blocks injected scripts (demoed by stopping a Harlem Shake payload), CSP report-only turns every visitor into a QA agent and the report-uri service receives real-time JSON violation posts, form-action prevents credential exfiltration, Subresource Integrity uses base64 SHA hashes to silently block tampered CDN files, Strict Transport Security (HSTS) forces first-request HTTPS and thwarts SSL stripping, and Public Key Pinning limits rogue CA risk (crawl of top 1M finds ~200 PKP adopters); demos run live and the protections work as shown.
AI-written summary · about
