What makes a website secure

A secure website has little to attack, gets its fixes faster than attackers move, and has a tested way back if it fails. This is what each part means, how fast attacks now come, and what to ask whoever looks after your site.

5 hours

from a WordPress flaw being made public to the first attempt to exploit it, as a weighted median for the flaws attackers targeted most. Patchstack, State of WordPress Security in 2026, 2025 data.

Quick scan

  • Attackers move in hours. Patchstack measured a median of five hours from a WordPress flaw being made public to the first attempt to exploit it, for the flaws attackers went after in 2025.
  • The official standard allows longer. The UK's Cyber Essentials scheme gives 14 days for critical and high-severity fixes.
  • A static site, with no program or database behind its pages, still has things to attack. They are the hosting account, the domain, the GitHub account, the tools that build the site, their code libraries and any third-party script.
  • Ask whoever looks after your site how many days a serious fix takes, when a backup was last restored, and what grade Mozilla's HTTP Observatory gives it.

A secure website has as little as possible to attack. What remains is fixed faster than attackers move. If it fails anyway, there is a tested way back.

An owner can check each of the three. This article explains what they mean, how fast attacks now come, and what to ask whoever looks after your site.

The back door is where attacks go

Every website has a front door, which is the pages visitors see.

Most business sites also have a back door. It is made of an admin login, a program that builds each page when a visitor asks for it, and a database behind it.

Nearly all successful attacks go through the back door, because that is where the code runs and the passwords are kept.

On a WordPress site the back door is large. These are the figures for 2025 from Patchstack, a company that sells WordPress security:

  • 11,334 new security flaws were made public across WordPress, its plugins and its themes.
  • Nine in ten were in plugins.
  • Nearly half, 46 per cent, had no fix available on the day they were made public.

A static site is built differently. Its pages are made in advance and served as finished files. No program runs on the public server, and there is no database to query.

Your team still has an editor for changing the content. It is reached at an address on the site, but the page there is a finished file like the others and runs no code on the server.

Signing in goes through GitHub, the service where the site’s code is kept, with two-factor authentication. That asks for a second proof of identity as well as a password. A stolen password there cannot run anything on your site.

On a static site, this is what is left to attack:

  • the hosting account
  • the domain
  • the GitHub account
  • the tools that build the site
  • the code libraries those tools depend on
  • any script loaded from a third party

That is a much shorter list. It is not an empty one, and we say so.

Attacks now come within hours

The gap between a flaw being made public and someone trying it on your site is now measured in hours rather than weeks.

Four sources put numbers on it. To exploit a flaw is to use it in an attack.

  • VulnCheck found that 23.43 per cent of the flaws first reported as exploited in the first half of 2026 were exploited on or before the day their public record appeared. Across 2025 it was 28.96 per cent.
  • Mandiant’s 2026 report puts the estimated average time to exploit at minus seven days. On average, attacks begin a week before the fix is public.
  • For WordPress, Patchstack measured a median, or middle value, of five hours from a flaw being made public to the first attempt to exploit it. That is for the flaws attackers went after in 2025.
  • Cloudflare has logged an attempt 22 minutes after a proof-of-concept, which is working example code for an attack, was published.

The official standard allows longer. The UK’s Cyber Essentials standard asks for critical and high-severity fixes within 14 days. Central government and the NHS require the standard of suppliers that handle citizens’ personal information. US law sets no deadline for a private business.

Even 14 days is slower than the attackers. That is why the number of things that need fixes matters more than how diligently the fixes are applied.

Most of these attacks are automated. Attackers scan every address on the internet for a known flaw and attack whatever answers.

In the UK government’s 2026 survey, 43 per cent of businesses identified an attack or breach in the previous year. Among small businesses it was 46 per cent.

The tools that build a site are a target too

In 2025 the attacks that made the news were on the tools that build websites, rather than on websites themselves. Developers use these tools to turn code and content into finished pages.

  • March 2025. A build tool used in more than 23,000 code repositories was altered to print their passwords and access keys into its build logs. A repository is a store of a project’s code. On public projects anyone could read those logs.
  • September 2025. A self-spreading worm compromised more than 500 published code packages. These are ready-made pieces of code that developers install without reading.

OWASP is the body that lists the most serious risks to web applications. It widened its old entry on flawed code components to cover the whole supply chain, and ranked it third on its 2025 list.

So a site with no application on its server still has a supply chain. It is made of the code libraries the site is built from, the service that builds it, and any script it loads from someone else’s server.

We do three things about it:

  • We fix each code library at a known version and update it deliberately. Developers call this pinning dependencies.
  • We keep third-party scripts to the minimum.
  • We run the build with the least access it needs.

The risk that is left is small, known and watched. It is not zero.

Every site needs a tested way back

Every site, however it is built, needs a tested way back. That means backups that:

  • are kept somewhere other than the server they back up
  • are taken often enough that losing the gap between them would not hurt
  • have been restored at least once, to prove they work

A backup nobody has restored is a hope.

For a static site, the whole site and every change ever made to it is kept in a repository under version control, which records each change. The repository is in your name, or transferable to you on request. Rolling back is a one-line change.

For a site that stays on WordPress, the way back is scheduled backups of the database and the files, kept off the host, with a practice restore in the calendar.

What secure means on a site we build

When we say a site we build is secure, we mean all of the following. Each can be checked.

  • There is no application or database on the public server. The pages are files. The editor’s sign-in page is a finished file too, and the sign-in itself happens at GitHub with two-factor authentication.
  • Every connection is encrypted, using only the modern versions of the encryption method, and the browser is told never to connect without encryption.
  • The site sends the browser instructions, called response headers, that say what the page may load and where it may be shown. A stray script is refused. So is a forged frame, which is the page shown inside another site. Mozilla’s HTTP Observatory, which anyone can run, grades these headers and the redirect to encryption, though not the versions of the encryption method. We build to grade A.
  • The site’s code libraries are fixed at known versions and updated on purpose. That is within 14 days for anything rated high or critical, and within 48 hours where a public exploit exists.
  • Editors sign in through an account with two-factor authentication. They can change content and cannot change code.
  • The whole site is in version control, in the client’s name or transferable on request, and a restore has been tested.
  • Forms go to a service that holds the message and nothing else, and the site loads no third-party script it does not need.

Four questions to ask about your site

Put these to whoever looks after your site.

  1. Does our public website run an application that checks passwords on our own server, and who has an account? (On WordPress, add /wp-login.php to your address and see what appears.)
  2. When a serious flaw is announced in something we use, how many days until it is fixed on our site, and how would you know it had been announced?
  3. When did we last restore a backup, and how long did it take?
  4. Scan our site at Mozilla’s HTTP Observatory and tell me the grade.

A good answer to all four is possible on any platform. A vague answer to any of them is the thing to worry about.

Where this definition is used

  • The Websites page builds to it.
  • WordPress migration moves a site from the large back door to none.
  • Ongoing care is the fixes, the backups and the practice restore as routine work.
  • The Website Risk Analysis checks a site you already have against every line of it and gives you the immediate actions in writing.

If you cannot answer the four questions about your own site, that is the place to start.

  • NextWhat makes a website safe for the people who use itA website can be secure and still be unsafe for the people who use it. A safe site collects nothing it does not need, can be used by anyone, and does what it says. You can check each of those wherever your buyers are.
  • PreviousWhat makes a website fastFast is a measurement, not a feeling. It means your page is usable on a mid-range mobile phone in under two seconds for most real visitors. You can check your own site in five minutes.

Sources (14)

  1. PPN 014, Cyber Essentials scheme UK Cabinet Office, 17 February 2025. Accessed 11 November 2026.
  2. State of WordPress Security in 2026 Patchstack (vendor), 25 February 2026, covering calendar 2025. Accessed 11 November 2026.
  3. State of Exploitation 1H 2026 VulnCheck (vendor), 28 July 2026, covering January to June 2026, 495 newly exploited vulnerabilities. Accessed 11 November 2026.
  4. State of Exploitation 2026 VulnCheck (vendor), 21 January 2026, covering 2025. Accessed 11 November 2026.
  5. M-Trends 2026 Google Cloud, Mandiant, 23 March 2026, covering 2025 investigations. Accessed 11 November 2026.
  6. Application Security Report 2024 update Cloudflare (vendor), 11 July 2024. Accessed 11 November 2026.
  7. Cyber Security Breaches Survey 2025/2026 Department for Digital, Culture, Media & Sport, and Department for Science, Innovation & Technology, 30 April 2026, fieldwork August to December 2025, 2,112 businesses. Accessed 11 November 2026.
  8. Cyber Essentials, Requirements for IT infrastructure v3.3 National Cyber Security Centre, April 2026. Accessed 11 November 2026.
  9. OWASP Top 10:2025, A03 Software Supply Chain Failures OWASP, 2025. Accessed 11 November 2026.
  10. Harden-Runner detection: tj-actions/changed-files action is compromised StepSecurity (vendor), 14 March 2025. Accessed 11 November 2026.
  11. tj-actions/changed-files supply chain attack (CVE-2025-30066) Wiz (vendor), 15 March 2025, updated 17 March 2025. Accessed 11 November 2026.
  12. Widespread Supply Chain Compromise Impacting npm Ecosystem US Cybersecurity and Infrastructure Security Agency (CISA), 23 September 2025. Accessed 11 November 2026.
  13. Shai-Hulud npm supply chain attack Wiz (vendor), 16 September 2025. Accessed 11 November 2026.
  14. HTTP Observatory tests and scoring MDN, Current. Accessed 11 November 2026.