Site Security
What a public site faces every day, and how we keep the door closed.
This site is public: a pile of static pages plus two endpoints that accept writes — the assistant in the corner, and the guestbook. Public means someone will always come knocking. This page is about how we keep the door closed.
Only two exposed surfaces
The pages themselves are pre-generated static files with no database and no admin login, so there is little to attack there. What needs guarding are the two endpoints that accept input:
- The assistant: requests are handled in a queue, one at a time, with a per-message length cap and a minimum interval — and no daily total cap, because the compute belongs to the owner's own machine rather than a metered API. It can see exactly one public code-mirror directory, its toolkit is three read-only actions, and it cannot reach the system, the configuration or any non-public data.
- The guestbook: a size limit, rate limiting and a human moderation queue — submissions go through the queue rather than straight onto the page.
Four principles
- Deny by default: only the ports the service actually needs are open; egress is tightened too, so this machine cannot be used as a hop or a relay.
- Read-only first: static where possible, read-only where not. Anything that can change state stays off publicly reachable paths.
- Observable: scans, probes and bans are counted and logged; critical files are checked for integrity on a schedule, and anything unusual is pushed to a phone rather than waiting to be noticed.
- Recoverable: the site is generated, the configuration is backed up, and the services can be rebuilt — lose a machine entirely and the site can be brought back.
So far
- Scans and probes turned away: 12,383
- Sources placed on the ban list: 67
- Counts roll forward with the access logs.
Why no specifics
Publishing the rules, thresholds and port list would amount to handing visitors a map. So this page covers reasoning and results only — if you want to talk specifics, email is welcome.