Back to blog
November 24, 2026•5 views

Securing WordPress in 2026: A Practical Checklist for Developers and Site Owners

WordPress securityWordPress hardeningWordPress security checklistWordPress security pluginsWAFwebsite securityWordPress development
Securing WordPress in 2026: A Practical Checklist for Developers and Site Owners

Most WordPress sites I get called in to fix were not hacked because the owner did something dumb. They were hacked because nobody owned security. The agency built the site, the host said "we handle it," the plugin vendor blamed the theme, and the site sat there for fourteen months with a nulled slider plugin and an admin user called admin.

This WordPress security checklist 2026 is the version I actually use when I audit client sites. It's ordered by risk and effort, not alphabetically, because if you only have twenty minutes you should spend them on the three things that stop the majority of automated attacks. The rest can follow over the next few weeks.

I've delivered 300+ sites and web apps across Bangladesh, the US, the UK and Australia, and I currently lead Web Engineering & AI Automation at AKIJ iBOS. Security is one of those areas where the boring fundamentals beat clever tooling almost every time. So let's start with the boring fundamentals.

The 20-minute triage: if you do nothing else

If a site is live and you haven't touched it in months, do these in order. Each one takes minutes and closes a door that bots are actively knocking on.

1. Kill the admin username and weak passwords

WordPress still lets you pick admin at install. Don't. If you already have it, create a new administrator with a different username, log in as that user, and delete the old one (reassign its posts first).

Then force strong passwords. If you're on WP-CLI, you can reset passwords in bulk without touching the UI:

# List admin users
wp user list --role=administrator --fields=ID,user_login,user_email

# Reset a password and force a re-login
wp user update 3 --user_pass="$(openssl rand -base64 24)" --skip-plugins

# Nuke all active sessions so stolen cookies die
wp user session destroy --all --user=3

That last command matters more than people realize. If credentials leaked through a phishing page or an infostealer, rotating the password alone doesn't invalidate existing session tokens. Destroying sessions does. (The wp user session command ships with WP-CLI; run wp help user session to confirm the exact syntax on your version.)

2. Turn on automatic updates for minor core releases

Minor core releases are security patches. There is no good reason to sit on them. Major releases (like a jump from 6.x to 7.x) deserve a staging test, but minor ones should flow automatically.

In wp-config.php:

// Core minor updates only, never major
define( 'WP_AUTO_UPDATE_CORE', 'minor' );

// Stop the file editor from being a backdoor
define( 'DISALLOW_FILE_EDIT', true );

// Disable plugin/theme installs from the dashboard in production
define( 'DISALLOW_FILE_MODS', true );

That last constant is worth a paragraph. If an attacker gets an admin session, the first thing many of them do is upload a malicious plugin zip. With DISALLOW_FILE_MODS set to true and deploys going through your pipeline, that door is closed. You lose the ability to install plugins from the dashboard, which is a trade-off most production sites should happily accept.

3. Put a WAF in front of the site

A web application firewall blocks the noise: XML-RPC brute force, known exploit payloads, bad bot traffic. You can run one at the host level (Cloudflare, your host's built-in) or as a plugin. Either is better than nothing, and the difference between "some WAF" and "no WAF" is enormous.

I'll get into specific picks later. For now, just know that a WAF buys you time to do the rest of this list properly.

The full WordPress security checklist

Here's the whole thing, categorized. I've added rough effort and what breaks if you skip it, because "harden everything" is useless advice without prioritization.

Area Action Effort Risk if skipped
Hosting Move off shared hosting with no isolation 1-2 hrs One compromised neighbor takes your site down
Hosting Enable PHP version updates and OPcache 30 min Unpatched PHP CVEs, slow pages
Login Remove admin, enforce strong passwords, 2FA 30 min Credential stuffing succeeds
Login Rate limit and CAPTCHA on wp-login.php 15 min Unlimited brute force attempts
Login Change or block wp-login.php URL (optional) 20 min Minor; obscurity, not security
Core Auto-update minor releases, test majors on staging 20 min Known CVEs stay exploitable
Plugins Audit and delete unused plugins/themes 45 min Abandoned code becomes the entry point
Plugins Pin to maintained vendors, check last-updated dates Ongoing Supply-chain compromise
Plugins Disable plugin/theme file editing 5 min Post-compromise persistence
Files Correct permissions (dirs 755, files 644) 20 min Privilege escalation on shared hosts
Files Block PHP execution in wp-content/uploads 15 min Uploaded shell executes
Database Change table prefix away from wp_ 20 min Minor; slows automated SQLi attempts
Database Separate DB user, least privilege 15 min Lateral movement after a breach
Backups Offsite, automated, tested restores 1 hr You pay ransom or lose data
Headers HSTS, CSP, X-Frame-Options, Referrer-Policy 30 min Clickjacking, XSS amplification
Monitoring File integrity + uptime + login alerts 30 min You find out from Google, not your inbox
Recovery Written incident response plan 1 hr Panic, wrong moves, data loss

Now the details that matter.

Hardening login: the highest-leverage work

Roughly every WordPress site I've seen compromised through the front door was hit via weak credentials, reused passwords, or a plugin that exposed authentication. Fix login and you've removed the easiest path in.

Two-factor authentication is not optional anymore

If you run a business site, 2FA on every administrator account is table stakes. I use a TOTP app, not SMS (SIM swapping is real, and SMS delivery in Bangladesh and parts of Southeast Asia is unreliable anyway).

Most security plugins bundle 2FA. If you want something focused, a dedicated 2FA plugin works fine and keeps the surface small. Enforce it for all admin and editor roles, then add a fallback recovery method stored somewhere sane (not in the same inbox).

Rate limiting and bot filtering

Brute force protection should do two things: throttle failed attempts per IP and block the obvious automated patterns. Combined with a WAF, this drops the noise floor to near zero.

One nuance: if you're behind Cloudflare or a reverse proxy, make sure WordPress sees the real visitor IP. Otherwise rate limiting keys off your proxy's IP and either blocks everyone or no one. Check your X-Forwarded-For handling if login throttling behaves strangely.

Plugin and theme hygiene

Plugins are a leading entry point for WordPress compromises. That's not a knock on plugins; it's a fact of an ecosystem where thousands of small vendors ship code that runs with full site privileges.

A few rules I apply on every project:

  • Delete, don't deactivate. A deactivated plugin still sits on disk. If it has a known vulnerability, some scanners and exploit kits don't care that it's inactive.
  • Check the last-updated date before installing anything. If a plugin hasn't shipped a release in two years, assume it's unmaintained and look for an alternative.
  • Fewer plugins, better plugins. Every plugin is attack surface plus performance cost. I've seen sites with 40 plugins where three did the same thing.
  • Watch for supply-chain risk. In 2026 this is the scary one. A trusted plugin can be sold to a new owner and ship something malicious in a routine update. This is why staging environments and update review matter, even for "trusted" vendors.
  • Nulled plugins are malware with a nice UI. I've cleaned up sites where a "free premium" plugin dropped a backdoor within hours of activation. Never install them.

A quick pre-purchase plugin check

Before you install a plugin, run through this in the admin:

  1. Active installs above a reasonable threshold (I look for 10k+ for anything touching auth or payments).
  2. Recent updates within the last 3-6 months.
  3. A changelog that references security fixes, not just feature drops.
  4. A vendor with a real support presence, not a ghost account.

Choosing security plugins and a WAF

This is where people overthink. You do not need five security plugins. You need one WAF layer, one monitoring layer, and one backup system. Sometimes those are the same product; often they aren't.

Here's how I think about the main options, with honest trade-offs:

Tool Type Strengths Watch out for
Cloudflare (free/Pro) Edge WAF + CDN Fast, blocks bad bots globally, no server load Free tier is basic; advanced WAF rules need a paid plan
Wordfence Plugin WAF + scanner Strong malware scanner, good alerts, useful free tier Can be heavy on shared hosting; centralized scanning adds load
Sucuri Cloud WAF + cleanup Solid firewall, incident response and cleanup service Paid; premium pricing for small sites
Solid Security (formerly iThemes Security) Plugin hardening Good login and 2FA controls, file change detection Feature sprawl; tune it or it nags constantly
Host-level WAF (Kinsta, WP Engine, etc.) Managed Zero config, integrated with backups Locked to that host; migration means rebuilding

My default stack for a business site: Cloudflare in front, a lean security plugin for login hardening and file integrity monitoring, and offsite backups from a separate provider. That combination covers the realistic threat model without turning the site into a plugin museum.

File permissions and server-level hardening

If you control the server (VPS, dedicated, or a managed host with SSH), these are worth the twenty minutes.

# Directories 755, files 644, wp-config locked down
find /var/www/html -type d -exec chmod 755 {} \;
find /var/www/html -type f -exec chmod 644 {} \;
chmod 600 /var/www/html/wp-config.php

# Block PHP execution in uploads (nginx)
location ~* /wp-content/uploads/.*\.php$ { deny all; }

For Apache, drop a .htaccess in wp-content/uploads:

<FilesMatch "\.php$">
  Require all denied
</FilesMatch>

This one line stops a huge class of attacks. If an attacker gets a PHP file into uploads (through a vulnerable form or plugin), the server refuses to execute it. Cheap, effective, and almost nobody does it by default.

Also disable XML-RPC unless you specifically need it (Jetpack and some mobile apps use it). If you must keep it, block it at the WAF or restrict it by IP.

Security headers worth setting

Headers don't stop a determined attacker, but they reduce the blast radius of XSS and clickjacking, and they're a quick win.

  • Strict-Transport-Security with a long max-age once you're fully on HTTPS.
  • X-Content-Type-Options: nosniff.
  • X-Frame-Options: SAMEORIGIN (or a CSP frame-ancestors rule).
  • Referrer-Policy: strict-origin-when-cross-origin.
  • A Content-Security-Policy, added carefully. Start in report-only mode, watch what breaks, then enforce. CSP is the one header that will absolutely break a site if you rush it.

For reference on what each header does and how to set it, the OWASP Secure Headers Project is the most reliable starting point.

Backups: the part everyone skips until it's too late

A backup you've never restored is a hope, not a backup. I've watched founders discover their "daily backups" were stored on the same server that got wiped. That's not a backup; that's a copy. If you want the full ownership and recovery workflow, my WordPress backup and data ownership playbook walks through it end to end.

What a real backup setup looks like:

  • Automated, at least daily for content-heavy sites, more often for e-commerce.
  • Stored offsite (S3, Backblaze, a different provider than your host).
  • Encrypted at rest.
  • Tested with an actual restore onto a staging site at least once a quarter.
  • Retained long enough to cover the window between infection and detection, which can be weeks.

What to do if you're already hacked

This is the section most checklists skip, and it's the one you'll need at 2am. If your site is compromised:

  1. Take it offline or put up a maintenance page. Serving malware to visitors and Google is worse than downtime.
  2. Preserve evidence before you wipe. Copy logs and a full snapshot. You'll want to know how they got in, or you'll get reinfected.
  3. Rotate every credential. WordPress users, database, FTP/SSH, hosting panel, API keys, payment gateway keys. All of them.
  4. Rebuild from clean source. Restore core, themes and plugins from official sources, not from the infected site. Restore content from a backup you trust, or export the database and clean it.
  5. Find the entry point. An outdated plugin, a stolen admin session, a vulnerable form. If you don't find it, assume it's still there.
  6. Re-scan and monitor for weeks. Attackers leave persistence: hidden admin users, modified core files, scheduled tasks, backdoors in uploads.
  7. Request a review in Google Search Console once clean, so the malware warning clears.

The cost of a hack for a small business isn't just cleanup. It's lost sales during downtime, Google blacklisting, reputational damage, and in some cases legal exposure if customer data leaked. In Bangladesh I've seen local businesses lose weeks of orders because their site got flagged and their payment gateway integration had to be re-certified. Prevention is dramatically cheaper.

A maintenance cadence that actually holds

One-time hardening decays. Set a rhythm:

  • Weekly: review plugin and theme updates, apply low-risk ones, check uptime and error logs.
  • Monthly: review user accounts, prune inactive admins, check backup restores, review WAF logs for attack patterns.
  • Quarterly: full audit against this checklist, test a restore, review security plugin reports, update dependencies.
  • Annually: review hosting, PHP version, and whether your plugin stack still earns its place.

If you're a solo founder with no technical team, this is exactly the kind of recurring work worth delegating. It's unglamorous, it's high-value, and it's the difference between a site that survives 2026 and one that becomes a case study. If you're weighing who to bring in, my guide on how to vet a WordPress developer in 2026 covers the portfolio, code review and security questions to ask, and the NIST cybersecurity guide for solopreneurs explains what a founder should demand from whoever they hire.

FAQ

Do I really need a security plugin if my host has a WAF?

Often yes, but a lighter one. Host WAFs are good at blocking network-level attacks. They're less good at application-level things like login hardening, file integrity monitoring, and 2FA enforcement inside WordPress. Pick one plugin that covers those gaps and skip the rest.

Is changing the login URL worth it?

It's obscurity, not security, but obscurity has real value against automated bots. If you do it, keep rate limiting and 2FA in place. A hidden login page with a weak password is still a weak password.

How often should I update plugins?

Weekly for most sites, with low-risk updates applied directly and anything touching payments or authentication tested on staging first. The goal is to shrink the window between a vulnerability being published and your site being patched.

Can I secure WordPress myself without a developer?

You can cover the 20-minute triage and most of the checklist with a decent security plugin and managed hosting. The parts that need a developer are server-level hardening, incident response, and anything involving custom code or headless setups. If you're unsure, get an audit. It's far cheaper than a cleanup.

If you're running a WordPress site and want a second pair of eyes, or you're a founder deciding who should handle this long term, I do security audits and hardening work for clients across Bangladesh, Australia, the US, Canada and New Zealand. Reach out through the contact page and tell me what you're running. I'll tell you honestly what's worth fixing first.

Frequently asked questions

Do I really need a security plugin if my host has a WAF?

Often yes, but a lighter one. Host WAFs block network-level attacks well. They are weaker on application-level tasks like login hardening, 2FA enforcement and file integrity monitoring inside WordPress. Pick one plugin that fills those gaps and skip the rest.

Is changing the login URL worth it?

It is obscurity, not security, but obscurity has real value against automated bots. If you do it, keep rate limiting and 2FA in place. A hidden login page with a weak password is still a weak password.

How often should I update WordPress plugins?

Weekly for most sites. Apply low-risk updates directly and test anything touching payments or authentication on staging first. The aim is to shrink the gap between a vulnerability being published and your site being patched.

Can I secure WordPress myself without a developer?

You can handle the 20-minute triage and most of the checklist with a decent security plugin and managed hosting. Server-level hardening, incident response and custom or headless setups usually need a developer. If unsure, get an audit; it is far cheaper than a cleanup.

Share this post

Native Web Share is available on mobile, so that share sheet includes Instagram and any other app you have installed.

Let's Connect

Get In Touch

Let's build something premium together.

Contact info

Follow me
Chat on WhatsApp