Blog

Keep WordPress, change the front end

, by Baurice

Why I keep WordPress as the back office, only rebuild the front end, and why it’s safer than it sounds.

Your visitors don't care whether your site runs on WordPress, Webflow or anything else. They see a website. They want it fast, clear, and working.

For years I defended my tools as if they were the product. I was a Webflow developer, then I built WordPress sites with page builders. With AI, I rethought what I sell: today I mostly build front ends. The site the world actually sees, fast and made to measure.

That doesn't mean throwing WordPress away. Quite the opposite.

Why I don't push clients off WordPress

When people talk about a modern website, the reflex is to suggest another CMS: Sanity, Strapi, Payload. They're good tools, and yes, you can export everything and migrate.

But for a client who already runs WordPress, the question is simple: what do they gain by switching?

  • They already know the interface. Their team has been publishing on it for years.
  • Their content is already there. Posts, pages, media, users. A migration costs time and carries risk, for a result visitors will never see.
  • WordPress is good at being a CMS. The problem isn't where the content is written. It's the site WordPress generates and exposes to the world.

So instead of replacing WordPress, I only change the part people see: the front end.

WordPress backstage, the site on stage

This is headless. WordPress stays the back office where content is managed. The public site is a separate front end, in Astro for example, that pulls that content and displays it.

For security, this changes a lot:

  • WordPress is no longer exposed. Everyone sees the front end. Only a few people know where the admin lives.
  • You barely need plugins anymore. On a classic WordPress site, every feature goes through a plugin, and every plugin is a potential way in. Headless, the front end handles display, and WordPress keeps one or two.
  • You can lock the admin down for real. Even if someone finds it: restricted access, two-factor authentication, automatic updates. With so few plugins, that's easy to maintain.

Most WordPress vulnerabilities come from plugins and themes, not from core. Patchstack's latest yearly report puts it at 91% in plugins and 9% in themes, with only a handful in core. Cut the number of plugins and you've already closed most of the doors.

"Then why keep WordPress at all?"

This is the objection I hear most: if you're already building the site in Astro, why not move everything to a modern CMS and be done with WordPress vulnerabilities?

Because vulnerabilities don't disappear. They move.

Leave WordPress and you may close some PHP holes. But you open the door to the Node.js ecosystem's: hundreds of npm dependencies, supply-chain attacks, and a server to secure as soon as your site renders anything server-side. Welcome to a different world of vulnerabilities.

No stack is invulnerable. What matters is how much surface you expose and how disciplined you are about maintaining it. A hidden WordPress with two plugins and locked access has nothing to envy a trendy CMS that's badly configured.

"So you just doubled the attack surface"

It's tempting to think so: before there was WordPress, now there's WordPress plus an Astro site. But a static site isn't an attack surface like the others.

Once built, it's HTML, CSS and a bit of JavaScript served from a CDN. No code running on a server, no database, no login page. There's nothing to hack. At worst, someone can copy it. Just protect the hosting account and your DNS with two-factor authentication, because that's where the keys are now.

The npm dependencies only run at build time, on your machine or your deployment platform. Visitors never touch them. The risk exists, but a lockfile and tracked updates keep it in check.

And WordPress no longer needs to be open to the world: its API can be reserved for the build, and its admin kept behind access control. The surface doesn't double. You replace an exposed dynamic site with one that has nothing left to attack, and you put the dynamic part behind a closed door.

One caveat: all of this holds for a static site. As soon as your front end renders server-side, you have a server to secure again.

The setup I recommend

It also depends on your hosting. If you already have a good host running your WordPress well, the simplest move is often to keep it as is and build around it:

  1. Self-hosted WordPress as the CMS, with the bare minimum of plugins and a locked-down admin.
  2. A fast, custom front end, in Astro for example, hosted separately, on Cloudflare for instance.
  3. A visual editing plugin so the client keeps control of their content without touching code.

That third piece is why I built Leiho. The client clicks on their real site inside WordPress, edits, and the live site updates. It also takes care of part of the hardening I used to do with extra plugins: it moves the login address, limits login attempts, turns off the file editor, locks the public API, and replaces the theme with an empty one. Fewer plugins, fewer doors.

The client keeps the tool they know. Visitors get a fast site. And the attack surface shrinks.

In short

The WordPress-versus-everything debate misses the point. Visitors don't see your CMS. They see your site.

So keep what works, hide what's exposed, and take care of what people see. For a lot of clients, the best stack isn't the one that replaces everything. It's the one that keeps WordPress backstage and puts a real front end on stage.

Source: Patchstack, State of WordPress Security in 2026 (data for 2025).

Edit the real site.

Free and open source. Try it on a real WordPress, in your browser.