Demo · sample accounts and files

Protected downloads

Files are streamed only after the server checks your session and a fixed allowlist. The browser never sends a path.

You are signed out. Sign in as a sample account:

Files

Links are always shown so you can see the server decide. Try the other account, or request an arbitrary path (rejected).

How it works and its limits
  • The session cookie is HttpOnly and SameSite=Lax; sign-in and sign-out are POST with a CSRF token and rotate the session ID.
  • ?file= accepts only a short ID that must exist in ODD_FILES; everything else gets the same generic 404.
  • 401 means signed out, 403 means signed in but not allowed. Headers: attachment, fixed file name, nosniff, no-store.
  • Sample accounts have no passwords and files live in memory. Replace odd_current_user(), odd_may_download() and odd_open_file() for production.