After launch: site security in practice
This follows “Building a portfolio website yourself”: I record a real security pass on my own site, covering what attackers want, accounts and Google sign-in, protection against domain spoofing, the site edge, backup and restore, and keeping protections from quietly failing.
Chapter 7 of the site-building series covers the principles; this series walks through doing it for real. Read in order, or jump straight to the chapter you need.
Chapters7
Part 1 · Essay · About 5 min read
Ask what attackers want first: test the site before hardening itAttackers usually want not your web pages but your keys and login sessions. This post starts from a game-launcher trojan and a post about a cloud bill that spiked, and explains how I first hit my own site with the paths a scanner would try, looked up DNS and accounts, and only then decided what to fix.
Part 2 · Essay · About 10 min read
Does switching to Google sign-in already mean two-step verification?Switching the console to Google sign-in is the right direction, but it only hands the job of proving who you are to Google. To be truly secure, you still need to check the Google account itself, the old password login, the console's own two-step verification, and backup codes. This post is my record of completing these for my Cloudflare, GitHub and Google accounts, with step-by-step instructions on where to click, and it ends with a prompt you can paste into an AI to check your setup.
Part 3 · Essay · About 3 min read
A domain that doesn't send mail should say so too: SPF, DMARC, and null MXA domain that isn't used for email is the easiest to abuse for sending phishing under its name. Three DNS records can declare that the domain neither sends nor receives mail, giving receiving servers a basis for rejecting forged messages. This post covers why, which three records to set, how to add them in Cloudflare, and how to verify them.
Part 5 · Essay · About 4 min read
Recoverable and visible: restore drills and checking what the firewall blockedLocking the door leaves two more things: whether you can recover when something goes wrong, and whether anyone is knocking. Rebuilding from GitHub from scratch showed me that files deliberately kept out of git were missing from the backup; looking back at firewall events showed me the rules really were doing their job. Includes step-by-step instructions for a restore drill and for reviewing events.
Part 6 · Essay · About 5 min read
Keep the protections from silently failing: one checklist plus periodic re-checksSetting up protections once isn't hard; the hard part is whether they are still there three months later. I wrote a baseline of protections for each type of public asset, use a script to re-check from the outside, record the date of each manual check, and flag any that have gone stale. Includes a prompt you can give an AI to build the same checklist.
Part 7 · Essay · About 4 min read
Two moves only dynamic sites need: checking against the server’s own time, and leaving the original data aloneA site that quotes prices, takes orders or has a database carries two extra risks: someone may submit an order with stale or edited prices, and queries may hit the original data directly. This post starts from two directions raised in a friends’ group chat and adds implementation steps based on OWASP’s recommendations: prices and times are decided by the server, the original data is kept as a separate copy, and queries touch only the copy.
Email subscriptions will open later. For now, you can follow new articles and work with RSS.