Publishing and communications · iftyazad.com
This site: a file-backed publishing and helpdesk platform that deploys as a ZIP
I built the publishing system behind this site. When a visitor replies to a support email, their message appears in the same conversation they opened on the web.
- Role
- Designer and developer
- Period
- 2026 to present
- Stack
- PHP 8, JSON file storage, HTML, CSS, vanilla JavaScript, SMTP and IMAP, JSON-LD, IndexNow
- Hosting
- Shared cPanel hosting on Apache or LiteSpeed, behind Cloudflare
- Source
- Private. Behaviour described here can be observed from outside
- Status
- Live. You are reading it.
- Live
- iftyazad.com
The 30-second version
2026 to present- Problem
- A public record and contact route that one person can run on shared hosting, without a database to administer or a third-party inbox holding the conversations.
- My role
- Designer and developer. I own the architecture, the build and its operation.
- Scope
- Server-rendered pages, an admin editor, ticketing with two-way email, cookie-free analytics, structured data and security controls.
- Outcome
- In daily use as the public record and contact route. The November 2026 release cut the home page’s JavaScript from 67 KB to 22 KB and its DOM from 1,211 elements to 636.
- Evidence
- Response headers, sitemap and the contact flow on this site Publicly observable
Problem and constraints
Most personal sites are a brochure plus a contact form that drops messages into an inbox. This one has to hold up as a public record: titles, dates and sources are edited often, journalists write in on deadline, and every conversation needs a reference that both sides can return to.
It also has to be operable by one person. That ruled out anything needing a database server, a build pipeline or a queue, and it set the standard for failure handling: a bad deploy or a full disk must not lose a message or expose stored data.
- Shared hosting: no long-running processes, no root, deploys by uploading files.
- One editor, tens of tickets a month: correctness matters more than throughput.
- Stored messages include email addresses and phone numbers.
- The owner edits content in an admin panel, so releases must not overwrite those edits.
Remit and collaborators
- Request routing, rendering and the content model
- Ticket system, email threading and the visitor ticket page
- Admin panel: editor, media library, backups, security centre
- Analytics, sitemap, structured data and IndexNow
- Security review and the November 2026 hardening release
- Editorial rules for sourcing and labelling claims
- Hosting provider: Apache, PHP runtime, TLS certificates and mail servers
- Cloudflare: edge network and Turnstile
What you see, and what is behind it
Select a number on the image or a note beside it. Each note points to a step in the data flow below.
-
A reference both sides can quote
On screen: A ticket number, the date opened and a status.
Behind it: The number names one file in protected storage. The page itself is opened with a separate 128-bit token in the link, so knowing a ticket number is not enough to read it. Flow step 3
-
The original message
On screen: What the visitor sent through the contact form.
Behind it: It passed a signed form token, rate limits and validation before it was written. The text is stored as sent and escaped when shown. Flow step 2
-
A reply from the owner
On screen: Ifty’s answer, time-stamped in UTC.
Behind it: Written in the admin panel or sent as an email reply to the notification. Either way it is stored on the ticket first and then emailed to the visitor. Flow step 4
-
A reply that arrived by email
On screen: A message marked “via email”.
Behind it: Inbound mail is matched to the ticket by its reply headers, then by the number in the subject. Duplicate deliveries are dropped and auto-replies are filed as notes. Flow step 6
-
Reply on the page
On screen: A reply box that needs no account.
Behind it: The form posts to the same ticket link. It works without JavaScript and is limited to a dozen replies an hour per ticket and address. Flow step 5
Data flow and system boundary
-
Visitor
Visitor sends the contact form
The form carries a signed, time-limited token and a hidden trap field. No session or cookie is needed.
Name, email, message -
Front controller
Checks before anything is stored
Token age, rate limits per address, field validation, optional Turnstile, then a spam score. Trapped bots get a fake success and nothing is written.
422, 429 or accept -
File storage
One file per ticket, written atomically
The ticket is written to a temporary file and renamed into place, then the index is updated under a lock. Each file begins with a guard line so it cannot be served as data.
Ticket ID plus a 128-bit link token -
Mail and admin
Confirmation and notification
The visitor gets a confirmation with a private link. The owner gets a notification that can be answered from the admin panel or by replying to the email.
Message-ID recorded for threading -
Visitor
Visitor replies by email or on the page
Both routes land in the same thread.
Reply text, attachments -
Front controller
Inbound mail is matched to a ticket
By References and In-Reply-To first, then the ticket ID in the subject, then a plus-address. Duplicates are ignored by Message-ID. Bounces and auto-replies become system notes instead of reopening the ticket.
IMAP poll or mail pipe
In words. A visitor submits the form; the front controller validates and rate-limits before writing; storage writes one guarded file per ticket and updates an index under a lock; mail goes out to both sides. Replies come back either through the ticket page or by email, and inbound mail is matched to the right ticket by its headers before the subject line is trusted.
- Front controller, views and content model
- Ticket files, index and Message-ID map
- Admin panel with password, TOTP and session revocation
- Analytics logs and daily summaries
- Outbound HTTP client that refuses private addresses
- SMTP and IMAP servers
- Cloudflare edge and Turnstile
- Search engines and IndexNow
- publications.iftyazad.com and book.iftyazad.com (separate sites)
Decisions I owned
AJSON files instead of a database
- Context
- A database adds credentials, migrations and a backup routine to a site with one editor and low write volume.
- Choice
- One JSON file per record type or ticket. Writes go to a temporary file and are renamed into place; read-modify-write runs under a per-file lock; the content file keeps 80 rolling snapshots.
- Trade-off
- No queries and no concurrent editors. Every save rewrites a whole file. That is acceptable at this scale and would be the first thing to replace if the volume grew.
BCapability links for visitors, not accounts
- Context
- Someone who writes once should not have to create a password to read the answer.
- Choice
- Each ticket has a 128-bit random token in its link. The page is marked noindex and no-store and sends no referrer. Looking up tickets by email sends the links to that address and returns the same message either way.
- Trade-off
- Possession of the link is access. Tokens are compared in constant time, never written to analytics, and lookups are rate-limited.
CReleases never overwrite the owner’s edits
- Context
- Content lives in a file the owner edits through the admin panel. A release that ships new wording could silently undo those edits.
- Choice
- Releases carry a one-time migration that changes a field only if it still holds the text the previous release shipped, takes a snapshot first and records itself as applied.
- Trade-off
- An edited field keeps its old wording and has to be updated by hand. That is the safer failure.
How it is operated
- Deploys
- A release is an allowlisted ZIP extracted over the document root. It contains code and assets only. Settings, credentials, tickets, analytics, uploads and certificate files are never in the archive.
- Integrity and alerts
- A hash baseline of code files is taken per version. A daily check emails the owner if files change outside a release. New-device sign-ins and bursts of failed sign-ins also alert.
- Browser and network controls
- Pages are served with a nonce-based Content Security Policy. Requests for paths that only scanners ask for are answered with 404 and repeat offenders are banned for a day; search and AI crawlers are exempt from bans. Outbound requests resolve the hostname once, refuse private ranges and pin the address.
- Privacy
- Analytics uses no cookies and stores no IP addresses; visitors are counted with a code that rotates daily. The privacy page describes what is kept and for how long.
Outcome and evidence
- Publicly observable
In use since 2026
The site is the working public record and contact route: every message becomes a ticket with a reference number, and replies work by email in both directions.Source: Contact page
- My own publication
16 November 2026
The November 2026 release replaced the home page’s canvas globe and animation layer. Measured in the same browser against the previous and new builds on one local server: compressed JavaScript fell from 67 KB to 22 KB, compressed HTML from 28 KB to 16 KB and DOM elements from 1,211 to 636. Layout shift was zero in both.Source: Measured for this release
What this page does not claim
- The source is private, so internal claims rest on my description. Headers, generated files and form behaviour can be checked from outside.
- File storage has no independent load test; the design assumes low write volume.
- Inbound email identity relies on the hosting mail server’s own sender checks.
Sources
- Publicly observableContact form and ticket flow
Send a message to receive a reference and a private link.
- Publicly observableGenerated sitemap
Built from routes and content on each request.
- My own publicationPrivacy policy
What is stored and for how long.
- Publicly observablesecurity.txt
Contact for security reports.
Links checked November 16, 2026. How sources are labelled
Want to go deeper on this project?
I can walk through the system, the decisions and what I would change.
