Skip to main content

Your privacy

We store what the site needs to work, like a notice you closed or your domain shortlist. With your OK we also use Google Analytics to see which pages help people, and the Meta Pixel to measure which of our adverts work. Privacy policy

Serverlys
Security

Harden your WordPress login

The changes that stop password-guessing and stolen-password attacks on wp-admin, in the order worth doing them.

All Security tutorials6 stepsAbout 20 minutes

Before you start

  • An administrator account
  • FTP or File Manager access, in case a change locks you out
  1. Step 1: Retire the account named admin

    It is the first username every automated attack tries. WordPress cannot rename a user from the dashboard, so create a new administrator with a different username, log in as it, then delete the old account and attribute its content to the new one when asked.

  2. Step 2: Use unique passwords and remove spare administrators

    Every administrator needs a long password used nowhere else. Open Users, filter by Administrator, and downgrade anyone who only writes content to Editor or Author. Each administrator account is a full set of keys to the site.

  3. Step 3: Turn on two-factor authentication

    Install a two-factor plugin, such as Two Factor or Wordfence Login Security, and enable an authenticator app for every administrator. Save the backup codes it offers somewhere outside the site.

  4. Step 4: Limit failed logins

    Out of the box, WordPress allows unlimited password attempts. A plugin such as Limit Login Attempts Reloaded locks an address out after a few failures, which turns a brute-force attack from millions of guesses into a handful.

  5. Step 5: Close XML-RPC if nothing uses it

    xmlrpc.php accepts many login attempts in a single request. Jetpack and some mobile and publishing apps depend on it, so check before blocking. If nothing does, deny it in .htaccess.

    <Files xmlrpc.php>
      Require all denied
    </Files>
  6. Step 6: Disable the built-in file editor

    If an administrator account is ever compromised, the theme and plugin editor lets the attacker write PHP straight onto the server. Add this to wp-config.php to remove it.

    define( 'DISALLOW_FILE_EDIT', true );

The mistake people make

Enabling two-factor authentication without saving the backup codes. Lose the phone and the only way back in is disabling the plugin by renaming its folder over FTP.

Stuck on something not covered here?

Support is included on every plan, and it reaches a person. There is also the blog for the why behind these, and the FAQ for questions about buying.

Get help

A plan that still makes sense in year two

Free migration, free SSL and daily backups on every plan, with a 30-day money-back guarantee.

Prefer the phone? (305) 671-1272 · Existing customer? Client login