Remove framework version headers on Caddy
Why it matters
Headers such as X-AspNet-Version, X-AspNetMvc-Version and X-Generator name the exact framework release, which tells attackers which known vulnerabilities to try. Browsers never need them.
The fix
- Remove the headers in the site block and reload.
Caddyfile
header -X-Generator header -X-AspNet-Version header -X-AspNetMvc-Version
Related
Scan your domain to see whether this applies to you.