Security issues that cause the biggest damage are often the simplest ones:
If a service must be reachable, restrict it by IP and require strong auth.
# Example: block Redis from the public internet
sudo ufw deny 6379
sudo ufw reload
Always redirect HTTP → HTTPS and enable HSTS.
Minimum recommended:
| Header | Why it matters |
|---|---|
Strict-Transport-Security | Force HTTPS |
Content-Security-Policy | Reduce XSS risk |
X-Content-Type-Options | Block MIME sniffing |
X-Frame-Options | Reduce clickjacking |
Run a scan, fix critical/high issues first, then iterate.