Protected downloads
Files are streamed only after the server checks your session and a fixed allowlist. The browser never sends a path.
Files
- Welcome guideAny signed-in account · sample-welcome-guide.txt Download Welcome guide
- Member reportMembers only · sample-member-report.csv Download Member report
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 inODD_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()andodd_open_file()for production.