訪問者カウンタ
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.
このブラウザだけに残る他のデータ
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.
ページ閲覧
フッターにはページ閲覧も出ます。2026年11月28日からのページ表示回数です。この数はゼロから始まります。訪問者の合計ではありません。
フッターには、直近 24 時間に見られた訪問者 ID の数も出ます。この窓は時計とともに動きます。深夜 0 時にはリセットされず、累計も変えません。known 行の last_seen は、署名済みクッキーを既に持っていた最新リクエストの Unix 時刻です。窓から外れても行は残ります。
ブラウザは、ページの読み込み時と、エクスプローラーが別のページへ移るときに、POST /api/pageview を 1 回送ります。12 秒ごとの GET /api/visitors?record=1 はページ閲覧を足しません。
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
このサイトは、同じサーバから、cookie を使わない Umami の分析スクリプトも読みます。Umami は cookie を置かず、IP アドレスも保存しません。ブラウザが Do Not Track を送る場合、スクリプトは訪問を記録しません。スクリプトはページで動き、/api の呼び出しでは動きません。12 秒ごとの訪問者の心拍は、Umami のページ閲覧ではありません。
エクスプローラーが見せるチェーンのデータは、公開されたメモの履歴です。上のカウンタ以外に、ブラウザから集められるものではありません。
このページについての質問: magicagentmoney@proton.me