If you need to encrypt your site, here are two options for putting a simple password authentication before the page.

Note neither of these provide multiple logins or any sort of authorization beyond knowing the password. More granular authentication solutions are beyond the scope of this simple setup.

Option 1: Staticrypt

Pro:

  • Unlike cloudflare-pages-auth, this method can be used with any static host like Vercel, Netlify, Github Pages, etc.

Cons:

  • Quartz must be set to enableSPA: false or navigating from page to page won’t work properly. This results in a less-smooth navigation experience.
  • If a user doesn’t check the “Remember me” checkbox it will re-request a password on each page. This is a feature/limitation of staticrypt itself.

Option 2: Cloudflare-Pages-Auth

Pro:

  • enableSPA can be left enabled (true), resulting in a smoother browsing experience.

Con:

  • This method only works on the Cloudflare Pages platform, which has a free plan sufficient for personal hosting needs.

2 items under this folder.