Skip to content

Protect Docs With Access

Recommended path

Use Cloudflare Access, not an app-level password page.

The site can stay static while Cloudflare puts an identity gate in front of docs.mementropy.com.

Good now

Self-hosted Access app with One-time PIN for a short list of trusted email addresses.

Better later

Switch to a real identity provider and group-based policies when more people need access.
  1. Create an Access application for docs.mementropy.com.
  2. Use One-time PIN as the login method.
  3. Add an Allow policy for only the email addresses you trust.
  4. Set a session duration short enough that a shared machine does not effectively become public access.
  1. Enable preview deployment access in the Pages project so branch preview URLs are not public.
  2. Protect docs.mementropy.com with a self-hosted Access application.
  3. Redirect the production *.pages.dev hostname to docs.mementropy.com so the default public hostname is not the main entry point.