Schema PH · Learn

How we keep software safe, fast and lawful

Short lessons on the rules we build by. Each one covers what the rule is, the real incident that made it a rule, how to apply it, and what it costs.

Start with lesson 1  

Security

Keeping a signed-in user, their session and their data out of the wrong hands.

  1. 01 HTTPS and HSTS Why having HTTPS is not enough, how one header stops a whole class of attacks, and why that header is hard to take back.
  2. 02 CSRF — cross-site request forgery How another website can act as your signed-in user, why cookies make it possible, and the three modern defences.
  3. 03 Sessions and cookies What a session cookie must carry, the flags that protect it, and the trade-off between signed cookies and server-side sessions.
  4. 04 Access control and tenant isolation The most common serious web flaw is not clever hacking but a server that forgets to ask "is this yours?". How to make that question impossible to skip.
  5. 05 Injection and escaping SQL injection and cross-site scripting are the same mistake in two places, data being read as code, and they have the same cure.
  6. 06 Third-party scripts and dependencies Every script you load from someone else runs with your page's full power. Real breaches that came in through a chat widget, a CDN and an npm package.
  7. 07 Size and rate limits A server with no limits can be knocked over by one request. How caps on body size, request rate and tracked state keep one visitor from taking everyone down.

Infrastructure

Caches, deploys, health checks, backups and secrets: the parts that run the code.

  1. 08 Edge caching A CDN can serve your pages from a city near the visitor in milliseconds, or serve one person's account page to thousands of strangers. The headers decide which.
  2. 09 Deploys and versioning Most outages start with a change. How to ship so that old and new code never mix, and why a bad release should reach a few machines before it reaches all of them.
  3. 10 Health checks and monitoring A green status page and a broken app can happen at the same time. What a health check can see, what it cannot, and how to count the failures real users hit.
  4. 11 Backups and secrets A backup you have never restored is a hope, and a password in a git repository is public. One company that nearly lost everything, one that did, and one that hid a breach for a year.
  5. 12 Redis, and when you need it Redis is a fast shared memory for many servers. What it is good at, the incidents that came from using it carelessly, and why a single server usually does not need it at all.

Performance

Doing the same work with less CPU, less RAM and less waiting, and proving it.

  1. 13 Memory in Node.js How V8 spends RAM, why short-lived garbage still costs you, and how to build caches that cannot grow forever on a small server.
  2. 14 CPU and the event loop Node.js runs your code on one thread. One slow regular expression can stop every user at once, and it has taken down two of the biggest sites on the web.
  3. 15 Streaming Send data as it is produced instead of building it all in memory first. How backpressure keeps a slow phone from filling your server's RAM, and what to do when a stream breaks halfway.
  4. 16 Measuring performance A change is faster only when a measurement says so, beyond the noise. How to run an optimisation loop that keeps real wins and never trades away correctness or security.

Compliance

What the law and the platforms expect of a public website.

  1. 17 Privacy and personal data What the Philippine Data Privacy Act asks of every website, from the privacy policy and cookie banner to the day someone asks you to delete them.
  2. 18 Honest selling online Hidden fees, fake reviews, tricky cancel flows and borrowed images. What consumer law and the regulators say, with the fines that made them famous.
  3. 19 Accessibility Alt text, colour contrast and keyboard navigation. Three habits that make a site usable for people with disabilities, and that courts have started to enforce.

Attack archive

Real breaches from recent years: what the attacker did, and the gap that let them in.

  1. 20 Why breaches happen — the six patterns The start of the attack archive. Almost every recent breach reuses one of six gaps, and knowing the six is worth more than knowing any single attack.
  2. 21 Poisoned packages — the npm worms How one phished maintainer turned into hundreds of infected packages, why npm install runs code before you look at it, and the settings that buy you a week of safety.
  3. 22 When the framework is the hole — React2Shell and the Next.js bypass Two recent flaws in the most popular web stack, one that skipped every login check and one that ran attackers' code, and why checking access in one place only is fragile.
  4. 23 Stolen logins and infostealers Why most break-ins are now just log-ins, where the passwords come from, and why a second factor on every account is the single cheapest defence there is.
  5. 24 Phishing that beats MFA How modern phishing steals the session instead of the password, why codes from an app no longer stop it, and why passkeys do.
  6. 25 Help desks and admin consoles How a phone call to IT became the most expensive attack in British history, how one admin login wiped a medical company's devices worldwide, and why powerful actions need two people.
  7. 26 Stolen tokens and connected apps Why a stolen session cookie or OAuth token skips the password and the second factor, how one chatbot integration opened 700 companies' Salesforce data, and how to make tokens worth less.
  8. 27 Edge devices and mass exploitation Why firewalls, VPNs and file-transfer servers are now the most attacked machines on the internet, why patching them is not the end, and how to shrink what faces the world.
  9. 28 Open buckets and default passwords The breaches that needed no hacking at all — an app that left its users' ID photos public, a hiring bot with the password 123456, and the Philippine voter leak — and why "private by default" matters.
  10. 29 AI agents and prompt injection How text hidden in an email or a GitHub issue can take over an AI assistant, how AI agents in a test escaped and broke into Hugging Face in 2026, and what that means for ordinary web bugs.
  11. 30 Floods and botnets — DDoS How hijacked TVs and routers now send 31 terabits a second, how one quirk in HTTP/2 let a small botnet do the work of a huge one, and why the defence lives in front of your server.