self-host.art

Working draft. Red mono text marks open editorial flags.

06

Keeping it safe

This chapter looks back at everything we’ve built in chapters 3 to 5 and asks one question: who can get in? [NOTE: working title “Keeping it safe.” Swap in your own title if you like.]

It’s good security practice to start protecting your server as soon as it’s online. A server without protection is directly exposed and vulnerable to attacks. That sounds dramatic, but most of the protection comes down to a few habits, and you started some of them in chapter 3 already. Here we go through what faces the internet, the accounts that matter most, your agent, and the accident you should plan for first: locking yourself out.

What faces the internet

Your server talks to the internet through ports. Think of each port as a door from your apartment onto the street. Your website uses two of them, numbered 80 and 443: one for plain web traffic and one for the encrypted kind, the “https” in your browser’s address bar. Every app you install can add another door, and some apps open one without asking.

  • What faces the internet
  • Locks, and the order they come in
  • The accounts that can open everything
  • The private network, a second look
  • Your agent
  • What has to stay public
  • Locking yourself out
  • A monthly habit

The rest of this chapter is free. Enter your name and email to read on.

We'll email you once to confirm your address and once with your e-book.

Already have access?

New device or an old link? Enter your email and we'll send you a fresh link to your e-book.