BaCheWork and records of a photonics research workhorse
Language
08

#security

Articles with this tag, 8 in total, newest first.

8 articles · 2026-10-31 – 2026-11-22

Series 01

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.

7 articles · 2026-11-22 – 2026-11-22

  1. p.01

    Ask what attackers want first: test the site before hardening it

    Attackers 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.

    2026-11-22
    Chapter 1

    #security#site building#Cloudflare

  2. p.02

    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.

    2026-11-22
    Chapter 2

    #security#site building#Cloudflare

  3. p.03

    A domain that doesn't send mail should say so too: SPF, DMARC, and null MX

    A 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.

    2026-11-22
    Chapter 3

    #security#site building#Cloudflare

  4. p.04

    Three gates at the website edge: blocking scan paths, limiting password attempts, and adding headers

    Using one firewall rule on Cloudflare's free plan to block scans for .env and .git, one rate-limiting rule to block brute-force password guessing, and then adding HSTS and anti-embedding headers. Each item comes with console steps, and each has a control check: what should be blocked is blocked, and normal requests are not blocked by mistake.

    2026-11-22
    Chapter 4

    #security#site building#Cloudflare

  5. p.05

    Recoverable and visible: restore drills and checking what the firewall blocked

    Locking 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.

    2026-11-22
    Chapter 5

    #security#site building#Cloudflare

  6. p.06

    Keep the protections from silently failing: one checklist plus periodic re-checks

    Setting 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.

    2026-11-22
    Chapter 6

    #security#site building#AI workflow

  7. p.07

    Two moves only dynamic sites need: checking against the server’s own time, and leaving the original data alone

    A 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.

    2026-11-22
    Chapter 7

    #security

Series 02

Building a portfolio website yourself

From buying a domain to going live: site structure, project pages, privacy, traffic analytics, security, and making yourself findable by AI search. One topic per chapter.

1 articles · 2026-10-31 – 2026-10-31

  1. p.08

    Security for a static personal site: where the real risks are

    A static website is hard to hack. The real risks are stolen accounts, accidental exposure, URLs leaking through side doors, and an expired domain.

    2026-10-31
    Updated 2026-11-22
    Chapter 7

    #security#site building#Cloudflare