How to Secure Your WordPress Site: Updates, Logins and Backups

Secure your WordPress site in three moves: update everything, lock down logins with two-factor authentication, and keep tested backups off the server.

By Galactic News Editorial · Published 2026-11-24T19:42:20+00:00 · Updated 2026-11-24T19:42:20+00:00

How to secure a WordPress site with updates, logins and backups

How to Secure Your WordPress Site: Updates, Logins and Backups

To secure a WordPress site, keep core, plugins and themes updated, lock down logins with strong passwords and two-factor authentication, and keep tested backups stored off the server. These three habits stop the most common attacks. Most break-ins use known flaws in outdated plugins or guessed passwords. This guide walks through each step in order of impact, plus the extra hardening that makes recovery fast when something goes wrong.

How to Secure a WordPress Site: Start With Updates

Updates are the single most important security step. WordPress.org explains why. Once a security fix is released, the details of the old flaw are almost certainly public. An out-of-date site is an easy target. Older WordPress versions stop receiving security fixes at all.

WordPress installs minor core security releases automatically by default. Leave that setting on. Since WordPress 5.6, new installations also update major releases automatically. Check your setting under Dashboard, then Updates.

Plugins and themes need your attention. Since WordPress 5.5, you can turn on automatic updates for each plugin and theme. WordPress checks twice a day. It emails you after each update attempt, even if one fails.

  1. Open Dashboard, then Updates, and install everything waiting.
  2. Go to Plugins, then Installed Plugins, and enable auto-updates for plugins you trust.
  3. Do the same on the Themes screen for each active theme.
  4. Delete plugins and themes you do not use. Deactivating is not enough.
  5. Install plugins only from WordPress.org or the developer's own site.

Test major updates on a staging copy first when your site earns money or takes orders. Auto-updates are safest with backups running, so you can roll back if an update breaks something.

Lock Down Logins and User Accounts

Every account with write access is a potential entry point. Review your user list regularly. Delete accounts for former guest authors, interns or agencies whose work is done. Downgrade accounts that no longer need publishing rights to Subscriber.

Use a unique admin username. Never use "admin" as a username. Give each person only the role their work needs. An editor does not need administrator rights.

Passwords matter as much as updates. WordPress.org advises against passwords based on your name, username or site name. Avoid dictionary words and short passwords. Use a password manager to create and store a long, unique password for every account.

Turn on two-factor authentication for every administrator and editor. WordPress core does not include it, so it comes from a plugin. The Two Factor plugin is maintained by WordPress contributors. An authenticator app code adds a second check after the password. Even a stolen password is not enough on its own.

Limit login attempts. Out of the box, WordPress lets anyone try passwords on the login page as often as they like. A limit plugin, a firewall or server-level rate limiting stops brute-force guessing before it reaches WordPress.

Backups: Your Safety Net When Updates and Logins Fail

A backup is the only fix for some attacks. Ransomware, a bad update or a deleted database can all be undone in minutes with a good backup. Without one, recovery can take days or prove impossible.

A complete backup covers two parts. The database holds your posts, pages, users and settings. The files hold WordPress core, plugins, themes, uploads, wp-config.php and .htaccess. Back up both parts together.

Store backups off the server. A backup kept on the same server dies with the server. Use cloud storage or your host's separate backup system. Automate the schedule. Daily backups suit busy sites. Smaller sites can back up weekly, plus after every change.

Test your restores. A backup you have never restored is a guess, not a safety net. Restore to a staging copy at least once. Time the process. Write down the steps so anyone on your team can follow them under pressure.

Extra Hardening Worth Doing

Use HTTPS everywhere. Install a certificate, which most hosts offer free through Let's Encrypt. Make sure Settings, then General shows https for both addresses. Redirect all http traffic to https.

Turn off the dashboard file editor. Add define( 'DISALLOW_FILE_EDIT', true ); to wp-config.php. A stolen admin login can then no longer edit plugin code from the dashboard.

Set sane file permissions. WordPress guidance recommends directories at 755 and files at 644. Set wp-config.php to 400 or 440. Keep your PHP version current. WordPress.org recommends PHP 8.3 or newer, with MySQL 8.0 or MariaDB 10.11 or newer.

Add a web application firewall. A firewall filters exploit attempts before they reach WordPress. Many hosts include one. Security plugins can add one too.

Watch for changed files. A monitoring plugin or an external service can alert you when core files change. Early warning limits the damage from a break-in.

WordPress Security Checklist

TaskHow oftenWhere
Install core, plugin and theme updatesWeekly, or automaticDashboard, Updates
Review user accounts and rolesMonthlyUsers, All Users
Check two-factor authenticationMonthlyEach admin profile
Verify a backup restoreQuarterlyStaging copy
Confirm HTTPS and PHP versionQuarterlySite Health, hosting panel

Bottom Line

WordPress security is risk reduction, not risk elimination. Updates close known holes. Strong passwords and two-factor authentication defeat password guessing. Tested off-site backups make recovery possible. Do those three things first. Then add HTTPS, file hardening and a firewall. A site with this routine in place is a hard target, and most attackers move on to easier ones.