Security

Is WordPress safe? Why switch to a custom-built website

By Jérôme Stéphan · September 30, 2026 · Reading time: 8 min

Read in: Español · English · Français

Is WordPress safe? Why switch to a custom-built website

WordPress powers more than 4 out of every 10 websites in the world. That's exactly why it's the favourite target of automated attacks: a single flaw works against millions of sites. With artificial intelligence, those attacks are arriving faster and faster. Here's what's happening, why a custom site with its own admin panel is safer, and how I protect the sites I build.

The 2025 numbers

The annual report by Patchstack, a WordPress security specialist, is clear:

11,334new vulnerabilities in the WordPress ecosystem in 2025 (+42%)
91%of them in plugins, and 9% in themes
46%with no patch available when they were made public
5 hmedian time to mass exploitation for the most dangerous ones

WordPress core itself is fairly solid (only 6 flaws reported in 2025). The problem is everything added on top: form plugins, sliders, shops, page builders… each written by a different author, some abandoned for years.

AI speeds up attacks

It used to take days between a flaw being published and being exploited. Now it's hours: with AI, an attacker compares the fixed version with the old one, understands what was patched and generates an attack ready to launch against thousands of sites.

The best example is "wp2shell", in July 2026: the first critical flaw in WordPress core exploitable without a password in nearly a decade, according to Wordfence. It was found with the help of an AI model. The patch came out on July 17 and within hours public exploits were circulating, with tens of thousands of attempts and fake admin accounts created on unpatched sites (BleepingComputer).

Why a small business WordPress site is so exposed

To be fair: a WordPress site with few plugins, automatic updates, a firewall and backups can be well protected. But it takes constant maintenance that, in practice, few small businesses do.

Why a custom site is safer

Careful: "custom" doesn't automatically mean "secure". A badly built custom system is vulnerable too. What counts is good practice, and here is mine.

How I protect the sites I build

1. A security filter inside the application

2. Never block Google (or the AI that recommends you)

An aggressive filter that returns "access forbidden" to Googlebot drops your site from Google. Legitimate search engines and AI assistants are exempt from rate limiting, while robots.txt blocks SEO scrapers that only eat resources.

3. Hardened forms

Server-side validation, anti-forgery protection, reCAPTCHA or an invisible honeypot field only bots fill in, and detection of submissions too fast to be human.

4. A well-configured IIS server

An extract of the web.config I use:

<system.webServer>
  <security>
    <requestFiltering removeServerHeader="true">
      <requestLimits maxAllowedContentLength="10485760" />
    </requestFiltering>
  </security>
  <httpProtocol>
    <customHeaders>
      <remove name="X-Powered-By" />
      <add name="Strict-Transport-Security" value="max-age=31536000; includeSubDomains" />
      <add name="X-Content-Type-Options" value="nosniff" />
      <add name="X-Frame-Options" value="SAMEORIGIN" />
      <add name="Referrer-Policy" value="strict-origin-when-cross-origin" />
    </customHeaders>
  </httpProtocol>
</system.webServer>

5. Backups and monitoring

Automatic database backups, a tested restore, and log reviews to spot anything abnormal.

Moving from WordPress to a custom site without losing Google

The migration keeps the content, the images and, above all, the addresses: every old URL redirects (301) to the new one so the rankings you've earned aren't lost. Along the way you gain speed, and an admin panel designed only for what you actually need. See my .NET migration service for details.

Is your site running on WordPress?

I'll review its security for free and tell you, with no strings attached, whether to harden it or move to a custom site.

Get my free reviewMessage me on WhatsApp
WhatsApp