访客计数器
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 小时内出现过的访客标识数量。这个窗口随时钟移动。它不在午夜归零,也不改变累计总数。known 行上的 last_seen 是最近一次已经带有签名 cookie 的请求的 Unix 时间。离开窗口后,这一行仍然保留。
浏览器在页面加载时,以及浏览器换到另一页时,发送一次 POST /api/pageview。每 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