What goes away, and what you still have to watch

A site built from ready-made pages takes a lot of the usual attack away. It does not take all of it, and this page sets out which risk goes and which one stays with you.

The targets a static site doesn't have

A site made of pages that are already finished, and sent out the same to every visitor, has fewer places for someone to get in. Several of the usual targets simply aren't there to begin with.

No database to breach

A database is where a site stores information it reads and writes each time someone visits it, things like bookings, comments or account details. A static site has none. The pages are built in advance and nothing is written back to them as people browse, so there's no store of data behind the scenes for anyone to reach.

No plugin layer to exploit

Some sites add small pieces of extra software, often called plugins, to handle things like contact forms, bookings or search. Each one is written by someone else and needs to be kept up to date, and an out of date one can be a way in. A static site runs no plugin layer behind its pages, so there's nothing of that kind to update or break into.

No server-side code running for each visit

A site that works this way runs code on its server every time a page is requested, deciding what to show before sending it out. That running code is itself something that can be attacked. On a static site the pages are built once, in advance, and sent out exactly as they are, so there's no code executing on the server each time someone visits.

No admin login to guess

A site you edit through a browser has a login screen for signing in and making changes. That screen can be tried against directly, with a password that's been guessed, found, or reused somewhere else. A static site is edited by changing the files that make it up, so there's no login screen on the site itself to guess at.

What remains

Where the risk moves to

The domain, the accounts that control the site, anything loaded from another server, and any form still need looking after.

The domain and registrar account

The domain name is the address people type to reach the site, held under a renewable licence with a registrar. Whoever controls that account controls where the address points.

Read about running costs

Hosting and repository access

A static site still sits somewhere, usually a hosting account and a repository that holds the files before they go live. Whoever can sign in to those can change or remove the site.

Check your situation

Scripts loaded from elsewhere

A page that loads a script from another company's server is trusting that server too. If it is changed, the script changes with it and runs on your page.

See what to ask

Any form on the site

A contact form has to send what the visitor types somewhere, even on a page that is otherwise built in advance. That destination is worth asking about before you sign anything.

Read how to read a quote

Why the domain name needs its own protection

What the registrar account controls

The domain name is the address people type to find the site, and it's held under a renewable licence with a company called a registrar. Whoever can sign in to that registrar account can point the address somewhere else, change the mail attached to it, or let the licence lapse. None of that touches the pages themselves. It touches where they're found.

Why it gets targeted

The National Cyber Security Centre says DNS, the system that turns an address like a domain name into the location of the files that make up a site, is increasingly targeted. Building the pages in advance and sending the same ones to every visitor doesn't change that. The address still has to point somewhere, and that pointing is set from the registrar account.

Two-step verification on the registrar account

Of everything the National Cyber Security Centre recommends for protecting a domain, it names two-step verification on the registrar account as the most important: a second check, such as a code sent to a phone, that makes the account harder to get into even if the password is known. Turning it on costs nothing and takes a few minutes in the registrar's account settings.

Auto-renew, and who holds the account

The National Cyber Security Centre also recommends setting the domain to renew automatically, so a missed payment never lets the licence lapse and the address fall into someone else's hands. And it recommends that the domain sits in an account the organisation itself controls.

What a script loaded from somewhere else can still do

A page that is already built in advance can still reach out to another company's server the moment someone opens it. A font, a tracking snippet, a chat widget, a map, a payment button: each of these is often loaded from somewhere else.

What that other server can do

MDN explains that whoever controls that server controls what it sends out, and can change it at any time without touching a single file of yours. Your page asks for the script, and whatever comes back runs as if it were part of your own site.

That is what is meant by a supply chain attack. The attacker does not need to get into your site at all. They only need to get into the site you are borrowing a script from, and your visitors inherit whatever that script now does.

What a content delivery network adds

Scripts and fonts are often served through a content delivery network, a system of servers in different locations that sends files from whichever is nearest to the visitor. It makes a page load faster, and it also adds one more address your page depends on and one more place for something to go wrong before the content reaches your visitor.

None of this is removed by having a site that is already built before anyone asks for it. Taking away a database and a login screen takes away the risks that come from running code on your own server for every visit. It does not take away the risk carried by a script fetched from somewhere else, because that script is still running, on your page, under someone else's control.

The practical question is not whether to use outside scripts at all, most sites use at least one, but which ones you have chosen to load and why each one is still there. A script added for a feature nobody uses any more is a dependency with no upside left.

What to do about the risk that remains

The risk you are managing is not gone. It has moved from the pages themselves to the accounts that control those pages, and those accounts are worth securing before anything else.

The domain and registrar account

The domain name is the address people type to reach the site, held under a licence that renews with the company that registers it, known as the registrar. Whoever can log in to that account can point the address somewhere else, or lose it if a renewal is missed. The registrar account can usually be set up to ask for a second check, such as a code sent to a phone, before letting anyone in. That second check is called two-step verification, and turning it on is worth doing first.

The hosting and repository account

The files that make up the site have to live somewhere, and whoever can log in to that account can replace them with anything they choose. The same account usually holds a record of every change made to the site, called a repository. Keep the list of people who can log in short, remove anyone who has left, and turn on the same two-step check there.

Scripts loaded from elsewhere

A page can pull in a script from another company's server, for a chat widget, a map or a visitor count. Whoever controls that other server controls what the script does once it runs on your page, and a change made there reaches every site using it without anyone touching your own files. Checking what is loaded from elsewhere and dropping anything no longer needed keeps that list of dependencies short.

Where a form sends what people type

A form on the page does not make the question of where the answer goes disappear. Something still has to receive each submission and store it, and that something has its own login, however small. It is worth asking whoever built the form what happens to a submission and who can read it.

If you are weighing up a quote for a new site, it is worth raising these accounts directly and asking who will hold each one once the project is handed over. How to read a quote for a website sets out what else to ask before signing.