The visitor counter
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 value of themam_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 16 random bytes, written as 32 hex characters. It is set only when the request includes record=1, the User-Agent is not classified as a bot, and the browser did not already send a valid mam_vid. 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 does not store an IP address. It 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.
Other data kept in this browser only
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.localStoragekeyatp-v21-notice-dismissed: the version string of a notice you dismiss.
The chain data the explorer shows is public memo history. It is not collected from your browser beyond the counter above.
Questions about this page: magicagentmoney@proton.me