How I Built a Zero-Log, Accountless Web Chat with In-Memory Sessions and Hardened Nginx
Most "private" web chat apps still ask for an email, phone number, or persistent browser storage—which defeats the purpose if you just want ephemeral, zero-trace messaging. I built NoTrace around one strict rule: leave
Most "private" web chat apps still ask for an email, phone number, or persistent browser storage—which defeats the purpose if you just want ephemeral, zero-trace messaging.
I built NoTrace around one strict rule: leave nothing behind on the client or the server.
Here is a breakdown of the architecture and server hardening behind it:
1. Accountless Token Authentication (SHA-256 Only)
Instead of usernames, passwords, or OAuth providers, access is handled via a 256-bit cryptographically random token:
- Users generate a token and sign in without providing any personal identifiers.
- The backend never stores the raw token—only its
SHA-256hash is kept for validation.
2. Strict RAM-Only Client Sessions
Browser persistence (localStorage, indexedDB, tracking cookies) leaves forensic artifacts on the device even after a session ends.
- In NoTrace, active session state and message buffers live strictly in memory (RAM).
- The moment you close or refresh the tab, the session is wiped clean.
3. Zero-Log & Hardened Nginx Edge
Application-level privacy means nothing if the reverse proxy logs every IP address and request path to disk. At the Nginx layer:
-
Access logs disabled:
access_log off;ensures no IP addresses, user agents, or timestamps are written to disk. -
Rate limiting:
limit_req_zoneprotects endpoints from brute-force token guessing and flood abuse without storing visitor logs. -
Strict file isolation: Dotfiles and internal configuration paths are blocked at the edge (
deny all;). - Zero third-party scripts: No Google Analytics, no external CDNs, and no tracking pixels.
Try It Out
You can test the live build here: https://notrace.space
I’d love to hear feedback from other devs—especially if you spot any edge cases in the session lifecycle or Nginx hardening setup.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.