Web Security Reference Guide
A free, comprehensive handbook organized in 7 layers of defense - from network infrastructure to application monitoring. Each layer builds on the one below, mirroring how real-world security works: defense in depth.
The 7-Layer Security Model
Security isn't a single product or setting - it's layers. Like the OSI network model, each layer addresses a specific attack surface. A weakness in any single layer can compromise everything above it.
Protect your domain infrastructure. Understand DNS resolution, uptime SLA math, and how silent outages happen.
Articles in this layer
Secure data in transit. Learn about TLS/SSL versions, certificate types, HSTS preloading, and mixed content risks.
Harden your server environment. Isolate runtime workloads, restrict origin exposure, and enforce automated backup recovery.
Key controls in this layer
- • Origin Isolation & Reverse Proxy Hardening
- • Nginx & Ingress TLS Baselines
- • Web Application Firewalls (WAFs)
- • Immutable Backups & Restore Verification
Control browser behavior with response headers. Defend against XSS, clickjacking, and data leaks with CSP, X-Frame-Options, and CORP.
Secure your web applications and CMS. Audit client-side JavaScript bundles, harden WordPress, and manage redirects.
Balance edge speed with security freshness. Prevent stale immutable bundles, poisoned caches, and entrypoint TTL drift.
Key controls in this layer
- • CDN Edge TTL & Entrypoint Cache Hygiene
- • Immutable Asset Hashing & Rollout Convergence
- • Server-Side Cache Isolation
- • Core Web Vitals Latency Budgets
Observe everything below. GDPR compliance through technical controls, outside-in scanning strategies, and alerting best practices.