Thirteen Website Security Checks That Belong in Maintenance

Editorial illustration.

Originally published 20 June 2023; rewritten and reviewed on 15 October 2026.

A website rarely breaks loudly when it ages. The homepage still loads, forms still submit, and the green padlock still sits in the address bar—meanwhile a WordPress plugin has gone unmaintained for fourteen months, an old staging subdomain still points to an unpatched IIS box, and three ex-contractors still hold administrator logins.

When I audit client sites—whether ASP.NET Core apps, Drupal portals, or WooCommerce stores behind Cloudflare—most incidents trace back to ordinary maintenance drift rather than exotic zero-days. Treating security as a recurring maintenance routine with named owners works far better than buying a wildcard certificate at launch and hoping for the best.

Know what is actually running in production

Before patching anything, you need an honest inventory of the stack. Write down the CMS or framework version, runtime (.NET 8, PHP 8.3, Node 20), database engine, third-party plugins, and who owns each piece. On Linux servers, a quick apt list --upgradable or wp plugin list --status=active on WordPress often reveals dependencies nobody remembers installing.

Once the inventory exists, keep supported versions current across the whole footprint—not just the public web root. Reverse proxies, Redis instances, scheduled cron workers, and staging subdomains need the same patch cadence as the main domain. A forgotten dev. or staging. host with debug mode enabled is an easy side door into the same database network.

Lock down admin paths and per-action permissions

Administrative surfaces should never rely on obscurity alone. Put /wp-admin, /umbraco, or custom back-office routes behind MFA, and where possible gate them with Cloudflare Access or IP allowlisting so random credential-stuffing bots never even reach the login handler.

Account hygiene matters just as much as the login wall. Separate human accounts from service accounts, remove former vendors the week a contract ends, and ban shared admin@ logins that destroy audit trails. Every privileged or state-changing endpoint also needs server-side authorisation checks per operation. Hiding an “Approve Payout” button in React or Razor does nothing if a logged-in standard user can still replay POST /api/payouts/approve with curl.

Validate boundaries, queries, and output

Input validation belongs on the server at every boundary—API controllers, form handlers, webhooks, and query strings. Check type, length, range, and allowed values explicitly rather than trusting client-side HTML attributes or JavaScript checks.

For database access, parameterised queries are non-negotiable. Concatenating user input into SQL strings is still one of the fastest ways to lose a database, even in legacy reporting scripts:

// Safe parameterised query in ASP.NET / ADO.NET
using var cmd = new SqlCommand(
    "SELECT Id, Email FROM Users WHERE TenantId = @tenantId AND Status = @status",
    connection);
cmd.Parameters.Add("@tenantId", SqlDbType.Int).Value = tenantId;
cmd.Parameters.Add("@status", SqlDbType.VarChar, 20).Value = "active";

In WordPress, the equivalent rule is wrapping every raw query in $wpdb->prepare(). On the way back out, encode output for the exact context where it lands—HTML body text, HTML attributes, URLs, and inline JSON inside <script> tags all have different escaping rules.

Harden transport, uploads, and secrets

Serving the apex domain over HTTPS is only half the job. Verify that HTTP redirects cleanly to HTTPS, subdomains (www, api, cdn) carry valid certificates, and third-party scripts or fonts are not pulled over plain HTTP. A quick check from the terminal catches redirect loops and weak headers immediately:

curl -sI https://example.com | grep -iE "strict-transport|x-frame|x-content-type|content-security"

File uploads deserve their own strict boundary. Validate MIME type and magic bytes on the server, enforce tight size limits in Nginx (client_max_body_size 10m;) or Kestrel, strip executable permissions, and store uploaded files outside the web root or in an isolated object bucket so an uploaded .php or .aspx file can never execute.

Secrets need the same discipline. Keep API keys, database connection strings, and SMTP passwords out of Git history, frontend JavaScript bundles, and application logs. Define a rotation schedule and name who owns each key so rotating a compromised token does not stall for three days while people ask who created it.

Observe failures and prove backups restore

When something goes wrong, silent failures cost hours. Log failed logins, permission denials, unexpected 500 responses, and webhook signature mismatches to a central place where someone actually looks at them—and make sure stack traces stay out of public error pages.

Finally, a backup you have never restored is just a comforting rumour. Schedule periodic restore drills into a disposable database or staging VM, check that pg_restore or mysqldump imports cleanly without missing tables, and verify that deployment notes actually match what is running. Running through these thirteen checks once a quarter turns security from panic-driven firefighting into ordinary engineering evidence: each control has a system, a last-checked date, and an owner who knows what to do if it breaks.