Under the hood

How w24labs.com works.

The top is explained so everyone can follow. Further down: the whole machinery, measured live in your browser, and the difference between a Worker and a container.

In short

The Edge

Cloudflare has data centres in several hundred cities around the world. That network is the Edge. When you open the site, the data centre closest to you answers, so the page doesn’t have to travel all the way from one server in one particular place.

Prebuilt pages with small functions

The pages themselves are finished files that are simply sent to you. They are called static pages. The contact form and the live measurements are small programs that only run when someone uses them. So the honest name is: static pages with dynamic functions.

Protection

Cloudflare’s network stands in front of the site and receives all traffic. Attacks that try to flood the site (DDoS) are stopped there. The form has its own guard on top: Turnstile against bots, a cap on the number of attempts and a confirmation email.

No server, no database

There is no server for us to keep updated. The site has no database. The only thing stored is a contact message, for at most 24 hours, while it waits for you to confirm it.

Edge, firewall and Worker – three different things

The Edge is the place: Cloudflare’s data centres close to the visitor. The firewall (at Cloudflare it is called the WAF, Web Application Firewall) is the protection: rules that stop malicious requests before they reach the site. It also runs on the Edge, but it is only one of several things running there. A Worker is a small program that also runs on the Edge and does the job a web server would otherwise do. That is why we use the word Edge for the place, and firewall or protection for what guards it.

Classic shared hosting and w24labs.com side by side

The drawing shows two differences: where the site answers from, and where an attacker can try to get in, the so-called attack surfaces. Well-kept shared hosting can be perfectly secure, but it has more surfaces to look after. Several of them do not exist at all in the setup behind w24labs.com. Others remain, and we show those too.

CLASSIC SHARED HOSTINGUSAEuropeAsiaVisitorsOther customers’ sites⑤Shared server · one data centreServer login and control panel①PHP + CMS and its login②Plugins and theme③Database④DDoS on a neighbour⑥attack surface
W24LABS.COM ON CLOUDFLAREEdge · nearest data centreprebuilt pages + WorkerEdge · nearest data centreprebuilt pages + WorkerEdge · nearest data centreprebuilt pages + WorkerUSAEuropeAsiaCVisitorsWorkers KVcontact messages only24 hours at mostCloudflareGitHubAB… and several hundred more citiesDremaining: accounts, code, provider①–⑤ do not exist · ⑥ absorbed by the network
The drawing is simplified and does not show any particular host.

One place or many

The first difference is distance and load. With shared hosting, one server answers every visitor from one place. When the USA wakes up while Europe is still online, every request goes to the same machine, and the further away you are, the further the answer has to travel. Behind w24labs.com it is the same site everywhere: the prebuilt pages are kept as copies in Cloudflare’s network, and each visitor gets them from the data centre closest to them. When many arrive at once, they are spread across many data centres instead of one machine.

Attack surfaces

Attack surfaceClassic shared hostingw24labs.com
① Server login and control panelA compromised admin or customer login gives access to files and the database.There is no server to log in to. All access goes through the Cloudflare account (A).
② The CMS and its loginThe login page is public and a well-known target. Holes in the core must be closed quickly.No CMS and no login page on the site.
③ Plugins and themeEach extension is third-party code that runs on the server and must be kept up to date.No plugins. The code is our own and lives in the repository.
④ DatabasePages are built from the database, so bugs such as SQL injection can reach the content.No database behind the pages. Only contact messages are kept in Workers KV, for 24 hours at most.
⑤ Neighbours on the same serverOther customers’ sites share the machine. If a neighbour forgets to update their WordPress, or gets hacked, it can affect your site and in the worst case the whole server.Cloudflare also runs many customers on the same machines, but each Worker is shut inside its own V8 isolate with no access to the operating system. Other people’s careless security does not affect how w24labs.com runs.
⑥ DDoSAn attack on a neighbour can slow the shared server down for everyone on it.Attacks are absorbed by Cloudflare’s network before they reach the site. That does not make them impossible, but they do not hit one particular machine.

As part of my CEH and ECSA exam, I had to attack a web host in a closed lab environment. I got in through a vulnerable plugin on one customer’s WordPress site, and from there I could take over the whole physical server with every other customer’s site on it. It was an exercise, but the weakness is real: on a shared server, your security also depends on how well your neighbours look after their sites.

– The founder of W24 Labs, CEH and ECSA

What remains

Attack surfaceWhy it mattersHow it is looked after
A · The Cloudflare accountIt can change everything: the domain, the Workers and the settings.It is the most important account to protect. Only the owner has access, and logging in requires two-factor authentication.
B · The GitHub repositoryWhoever can write to the repository can change the site, because changes deploy automatically.Only the owner commits and pushes, and every push is approved with Touch ID. GitHub login uses a passkey.
C · The code in the WorkersThe contact form is the only part that accepts data from outside.Turnstile against bots, at most 5 attempts a minute, a check of where the call comes from, a confirmation email and a CSP with no inline scripts.
D · Cloudflare as providerWe trust Cloudflare to run the network and the separation between customers securely.A deliberate choice, not a guarantee. It is the same trust you give a web host.

For the technically curious

The infrastructure map

The whole site, as it answers right now. Measured, not drawn. Your browser makes two calls: /api/kant reports which data centre answered you, and /api/topologi reports which bindings the site Worker has switched on and measures Workers KV and the feedback Worker. No IP address, city or cookie is stored.

What happens when you open the front page

  1. DNS. Your browser looks up w24labs.com. The name is hosted at Cloudflare, signed with DNSSEC and points to Cloudflare’s network.
  2. The Edge. The connection ends at the nearest Cloudflare data centre, with TLS 1.3 and HTTP/3 if your browser supports it. DDoS protection stands in front of everything else here.
  3. The site Worker. Requests for pages reach the Worker w24labs-site. It fetches the finished HTML file from Static Assets, and while the file streams past, HTMLRewriter inserts the shared top bar, menu and footer. There is no build step and no template engine.
  4. Headers and counting. The Worker sets security headers (CSP, HSTS and more) and writes one data point to Analytics Engine: page, language and data centre. No IP, no cookie. The write doesn’t wait for anything, so you won’t notice it. The Worker also inserts the Cloudflare Web Analytics script, which measures page views and load time in your browser without cookies.
  5. Everything else directly. CSS, JavaScript, images and fonts under /assets/ are sent straight from Static Assets, bypassing the Worker. That is free and fast.
  6. The live lines. In your browser, site.js asks /api/kant for the data centre and /api/segl for the site’s own DNS settings (DNSSEC, CAA, SPF, DMARC). The seal is looked up via DNS over HTTPS at Cloudflare.

What happens when you send the contact form

  1. The guard. POST /api/kontakt checks that the call comes from w24labs.com, that the hidden field is empty, that you haven’t sent more than 5 times in a minute (Rate Limiting), and that the Turnstile answer is genuine and made for exactly this site and action.
  2. The waiting room. The message is placed in Workers KV with a lifetime of 24 hours. The key is a SHA-256 fingerprint of the link, so the link itself isn’t stored anywhere.
  3. The confirmation. Resend sends an email with the link. At most 3 confirmation emails go to an address per hour.
  4. Onwards. When you click and confirm, the Worker sends the message via a service binding (inside Cloudflare, bypassing the internet) to the feedback Worker wi24rd-feedback, which files it as a private issue on GitHub. The link only works once.

Workers are not Kubernetes

It is a common assumption that a Worker is a small container running in Kubernetes. It isn’t. A container packs a whole little operating system with your program and starts it as a process on a machine. Kubernetes is the system that distributes and restarts those containers across a cluster of machines.

A Worker is a V8 isolate instead. V8 is the JavaScript engine from Chrome. One running V8 program can hold thousands of isolates, each with its own memory, unable to see each other. Your code is placed in an isolate inside a process that is already running. No operating system has to start, and no image has to be fetched.

PropertyContainer in KubernetesCloudflare Worker (V8 isolate)
What runsA whole image with operating-system files, libraries and your program, as a process on a node.Only your code, placed in an isolate inside a V8 process that is already running.
Start-upTypically seconds for a new pod, especially if the image has to be fetched first.A few milliseconds. Cloudflare often starts the isolate during the TLS handshake, so you don’t notice it.
IsolationLinux namespaces and cgroups. The containers share the machine’s kernel.V8 keeps the isolates’ memory apart, and Cloudflare adds further sandbox layers around them. The code has no direct access to the operating system.
WhereIn the regions and clusters you have chosen.In whichever Cloudflare data centre the request lands in. You don’t pick a region.
LanguagesAnything that runs on Linux.JavaScript and TypeScript, WebAssembly (e.g. Rust) and Python Workers.
Disk and processesA file system, and the program can start other programs.No ordinary disk to save to and no other programs. Everything goes through fetch and bindings: KV, D1, R2, Durable Objects, other Workers.
LimitsCPU and memory, as you set them.128 MB of memory per isolate and a cap on CPU time per request. Time spent waiting on the network doesn’t count as CPU time.
CostFor the machines, for as long as they run.Per request and CPU time. If the site is idle, it costs nothing.

In practice, this means w24labs.com has no server to warm up, scale or update. On the other hand, a Worker can’t run just anything: a program that needs a real machine (for example a headless browser or a program written for Linux) doesn’t fit. For that, Cloudflare has separate products such as Browser Run and Containers. w24labs.com uses neither.

Skill or agent? How Claude works

This site was built together with Claude. Two words come up all the time, and they mean different things.

A Skill is knowledge and method in a package: a folder with a SKILL.md file and possibly scripts and reference files. Claude only sees the Skill’s short description and loads the rest when a task matches. A Skill does nothing on its own. It is a recipe, not a cook.

An agent is Claude actually solving a task: working in a loop with tools (reading files, running commands, searching), looking at the result and deciding the next step itself until the task is done. A subagent is an agent with its own separate working memory, started for one well-defined task, which hands a result back.

In short: the agent is the one doing the work, and the Skill is the knowledge the agent looks up. One agent can use many Skills, and the same Skill can be used by many agents.