SquareByteDigital Services

Knowledge base · Websites

What “serverless” means, and why it’s secure by default

Honestly, “serverless” took me a while to understand. It’s a terrible name: there are still servers. The point is that you don’t have one. Nobody has to install, patch, update or babysit a server for your website. Here’s what that means in practice.

The short version: a traditional website is a program running on a computer you rent, building each page when someone asks for it. A serverless website is a set of finished files handed out by a big, well-defended network. Fewer moving parts means faster pages and far less to attack.

A traditional website, like a restaurant kitchen

A typical WordPress site runs on a rented server. When someone visits, the server runs code (PHP), asks a database for the content, assembles the page from the theme and plugins, and sends it back. Every visit, a little kitchen cooks a meal to order.

That kitchen needs looking after: the operating system, the web server software, PHP, the database, WordPress, the theme and every plugin all need updates. Any of them can have a weakness. And there’s an admin login page that bots knock on all day.

A serverless website, like a vending machine run by experts

A serverless static site is built ahead of time into finished pages: plain HTML, images and styles. Those files sit on a hosting platform run by a large provider, behind a global network like Cloudflare, which hands them out instantly.

  • No server for you to maintain: the provider’s specialists handle the infrastructure.
  • No database to break into and no admin login on your website.
  • No plugins to fall out of date.
  • Fast everywhere, because finished files are served from close to each visitor.
  • Handles traffic spikes without falling over.
  • Often free or nearly free to host (see what a website costs to run).

Why that’s “secure by default”

Most website hacks exploit something running on the server: an outdated plugin, a weak admin password, a database injection. If those things don’t exist, those attacks have nothing to aim at. What’s left (your domain, your hosting account, your email) is protected with good passwords and two-step sign-in. Add strict security headers (as this site does) and the attack surface is tiny.

It’s not magic. You still need to protect your accounts, and any third-party tools you connect (bookings, forms, payments) have their own security. But the website itself becomes a very boring target, which is exactly what you want.

What about forms, bookings and changes?

  • Forms and bookings use dedicated services, or small “serverless functions” that run only when needed.
  • Changes are made to the files and re-published in seconds. There’s no drag-and-drop editor, which is why I offer quick edits as part of ongoing care.

When it’s not the right fit

Busy online stores, member portals and sites where many people edit content every day may be better on a platform built for that. For most small-business websites, which are mostly information that changes now and then, serverless is a great fit.

See it in action: how this website was built, or ask about a website reconstruction.