TOPIC · 03 · UPDATED 2026-10allwpcare.com/topics/secure-wordpress/
Topics / secure-wordpress

How to Secure WordPress: What to Do First

Update first, then strong logins and two-factor, limit guessing, lock the admin, check from outside. What is only theatre.

Start with updates. Then use strong passwords and two-factor login, keep backups off the server and remove admins and plugins you do not use, then limit password guessing, then check your site from outside. A hidden login address and a hidden version number are small extras.

Many break-ins start with an old plugin or a weak or reused password. So the order below puts the dull steps first.

Five steps in order: updates, logins with two-factor, limit guessing and close XML-RPC, lock down the admin, check from outside. Last, marked as small: a secret login address and a hidden version number.
Work down the list. Updates and strong logins come first.

What to do first#

If this is trueDo this
Something has an update waitingUpdate it, or delete it if you do not use it. Go to Dashboard → Updates. Update plugins safely.
Anyone who can publish has a short or reused passwordUse a password manager, and add two-factor login with a plugin. WordPress 7.1 has no two-factor login of its own.
Your only backup is on the same serverKeep a copy somewhere else, and restore it once to test it. Hardening guide, step 4.
Someone has an administrator account they do not needRemove it or lower the role. Hardening guide, step 2.
The site check says XML-RPC is open and nothing uses itClose it. Hardening guide, step 6.
debug.log can be downloadedBlock it or move it out of the public folder. Debug log guide.
Administrators can edit code from the dashboardTurn off the file editor. Hardening guide, step 7.
The browser says the page is not secureFind the http:// links. Mixed content.

WordPress does not limit wrong passwords by default. In the tested guide, 20 wrong passwords in a row each got the normal error, and the 21st try with the right password logged in. You need a plugin or a server rule for that.

The WordPress Updates screen with one plugin listed: Akismet Anti-Spam. You have version 5.0.1 installed. Update to 5.7.2.
Dashboard → Updates on a test site. This list is the first thing to clear.

A login address is not a lock#

Moving wp-login.php stops bots that only try that one address. It does not touch XML-RPC or the REST API, which still accept passwords. Do it if you like, after the steps above. The login URL guide shows what it leaves open.

Pages linked below#

The sections below list the pages for each step, with what you get on each one.

Start here

Look at your site from the outside first, then read the order of steps.

Updates

The step that matters most.

Logins and passwords

Most break-ins start with a login that was guessed or reused.

The admin and the server

Close the doors that give out information or code.

If something changed

When you cannot tell what happened to your settings.

WellTend plugins that fit

Free, and each switch starts off.

Sources

  1. Hardening WordPress, WordPress developer documentation
  2. Multi-factor authentication, WordPress developer documentation
  3. Editing wp-config.php, WordPress developer documentation
  4. Debugging in WordPress, WordPress developer documentation
Newsletter

One email when something breaks or changes.

New plugins and re-tested guides, about twice a month. Never a sales pitch.