Guide
A safe static website baseline
A practical starting checklist for publishing a simple website with fewer moving parts.
A static website is not automatically perfect, but it starts with fewer exposed parts. There is no app server handling public requests, no database to leak, and no account system to protect.
Baseline
- Publish static files over HTTPS.
- Avoid third-party scripts until they have a clear purpose.
- Add security headers at the host level.
- Keep dependencies small and updated.
- Treat Markdown as trusted author content, not user input.
Headers worth starting with
Content-Security-PolicyStrict-Transport-SecurityX-Content-Type-OptionsX-Frame-OptionsReferrer-PolicyPermissions-Policy
The exact values may change if the site later adds analytics, forms, embedded media, or a CMS.