Le compteur de visiteurs
The footer shows a total and “Online now”. While a tab is visible, the browser calls GET /api/visitors?record=1 about every 12 seconds. The same handler answers /api/visits.
The rows live in a SQLite file, counter.db, on the server. Three tables:
counterhas one row,id1, and an integervisitors. That integer is the footer total. It increases by one the first time a non-bot browser is counted.knownstoresid, the 32-character hexadecimal visitor id inside the signedmam_vidcookie, andfirst_seen, the Unix time of that first counted request.presencestores the sameidandseen, the Unix time of the latest request. Rows whoseseentime is older than 90 seconds are deleted. “Online now” is the number of rows left.
The cookie mam_vid is a server-signed token: 32 hex characters, an expiry time, and an HMAC. The server counts a visitor only when a later request sends that token back. A value the server did not sign is ignored for counting. An older unsigned 32-hex cookie that is already in known is replaced with a signed cookie and is not counted again. The attributes are Max-Age=31536000 (one year), Path=/, HttpOnly, SameSite=Lax, and Secure.
A legacy cookie named mam_seen is only read. If it is present, the browser is written into known and presence, and the visitors total is not increased.
The counter database does not store an IP address. /api/visitors and /api/pageview keep a short in-memory rate limit keyed by IP and answer 429 when it is exceeded. Those buckets are not written to counter.db. The counter does not use localStorage. The User-Agent is read only to skip empty agents and agents that match bot, crawl, spider, slurp, wget, curl, python-requests, headless, semrush, ahrefs, petalbot, or bytespider. That string is not written to counter.db. Bots are not counted and do not receive mam_vid.
Each HTTP request is also printed to the process log with the client address of that connection. That log line is separate from the visitor counter and is not written to counter.db.
Autres données gardées seulement dans ce navigateur
localStoragekeymam-portfolio: a PoA address you type, so a field can be filled in again.localStoragekeyatp-available-only:1or0, a display preference.localStoragekeymam-guide-v2:1after the feature guide is dismissed.localStoragekeypoamarket_popup_v1:1after the POAMARKET notice is shown.localStoragekeypoamarket_banner_v1:1after the POAMARKET banner is dismissed.
Pages vues
Le pied de page montre aussi Pages vues, un compte des pages ouvertes depuis le 28 nov. 2026. Ce compte part de zéro. Ce n’est pas le total des visiteurs.
Le pied de page montre aussi combien d’identifiants de visiteurs ont été vus ces dernières 24 heures. Cette fenêtre suit l’horloge. Elle ne se remet pas à zéro à minuit, et elle ne change pas le total depuis le début. last_seen sur la ligne known est le temps Unix de la dernière requête qui portait déjà un cookie signé. La ligne reste quand elle sort de la fenêtre.
Le navigateur envoie un seul POST /api/pageview au chargement d’une page et quand l’explorateur change de page. L’appel toutes les 12 secondes à GET /api/visitors?record=1 n’ajoute pas une page vue.
The count is one integer in a pageviews table in the same counter.db file. The row stores that integer and the start date 2026-11-28. It does not store an id, a cookie, or an IP address. The same bot check as the visitor counter skips the increment. A signed visitor is counted at most once per path per 30 minutes. The request that first issues the cookie does not itself add a page view.
Umami
Ce site charge aussi un script d’analyse Umami sans cookie, depuis ce même serveur. Umami ne pose pas de cookie et ne stocke pas ton adresse IP. Si ton navigateur envoie Do Not Track, le script n’enregistre pas la visite. Le script tourne sur les pages, pas sur les appels /api, et le battement de 12 secondes du compteur de visiteurs n’est pas une page vue Umami.
Les données de chaîne que l’explorateur montre sont l’historique public des mémos. Elles ne sont pas collectées depuis votre navigateur, au-delà du compteur ci-dessus.
Questions sur cette page : magicagentmoney@proton.me