Skip to content
Security and monitoring Beginner

WordPress Security Checklist for Client Sites

A practical security checklist for client WordPress sites, ordered by what actually causes incidents: access, updates, configuration and backups.

WordPress Security Checklist for Client Sites

This is the checklist I would run on every client site when it comes into maintenance, and again once a year. It is ordered by how often each item turns out to be the problem, not by how impressive it sounds. Most hacked client sites I have seen were not beaten by anything clever. They had an outdated plugin, a forgotten admin account, or a backup nobody had checked.

Accounts and access

Start with people, because every other measure assumes you know who can log in.

  • Give every person their own account. No shared “admin” or “office” login, so you can remove one person without changing everyone’s password.
  • Remove accounts of former staff, former agencies and freelancers who finished their job. Check users with the Administrator and Shop manager roles first.
  • Require two-factor authentication for administrators and shop managers. Those two roles can install code or see customer data.
  • Set a password policy (length matters more than symbols) and limit login attempts, so a password list cannot be tried at full speed.
  • Review application passwords under each administrator’s profile. They bypass 2FA by design, and old ones are easy to forget.
  • Use SFTP rather than FTP, turn on 2FA for the hosting control panel, and keep the hosting login with the client or in your password manager, not in an e-mail thread.

Software and updates

  • Update plugins, themes and core on a fixed schedule, with security releases applied within days rather than at the next monthly round.
  • Delete plugins and themes that are not in use. Deactivated code is still on disk and can still be requested directly. Keep one default theme as a fallback and remove the rest.
  • Never install nulled premium plugins or themes. If the client has no licence, that is a conversation, not a download.
  • Monitor known vulnerabilities in the plugins and themes you run, so a published hole reaches you before it reaches an automated scanner. How to monitor plugin vulnerabilities covers how.
  • Run a PHP version that still gets security fixes. The list is on php.net under supported versions, and it is worth checking against your client list twice a year.

WordPress configuration

  • Turn off the theme and plugin editor with define('DISALLOW_FILE_EDIT', true); in wp-config.php. Someone who steals an admin login should not be able to edit PHP from the browser.
  • Set WP_DEBUG to false on production. If you need logging, write the log outside the web root, and check that /wp-content/debug.log does not answer with a 200. Publicly readable log files leak paths, queries and sometimes customer data.
  • Disable XML-RPC if nothing uses it. Check first: the Jetpack connection and some mobile and publishing apps still depend on it.
  • Block user enumeration through /?author=1 and the REST users endpoint, so usernames are not handed out for free.
  • Stop PHP from executing in wp-content/uploads. On Apache that is a small .htaccess rule in that folder, on nginx a location block.
  • Set file permissions to 644 for files and 755 for directories, and make wp-config.php 640 or 600 where the host allows it.
  • Hide version numbers in the page source and feeds. It does not stop a determined attacker, but it removes an easy filter for automated ones.

Server and headers

Force HTTPS everywhere and add an HSTS header once you are sure every subdomain has a valid certificate. Add the basic security headers: X-Content-Type-Options: nosniff, a Referrer-Policy, and protection against framing (X-Frame-Options or frame-ancestors in a content security policy). A full content security policy is worth it on a shop or a site with logins, but test it on staging, because page builders and tracking scripts break under a strict one.

Forms, logins and bots

Every public form is an entry point for spam and sometimes for worse. Protect the login, registration, comments, WooCommerce checkout and account pages, and the contact forms. Captchas work but cost conversions, and an accessible captcha is rarer than it should be, so a check that runs without bothering the visitor is the better default. A custom login URL cuts down the noise in your logs. It is not a security measure on its own, so keep the rate limiting and 2FA behind it.

Monitoring

  • Uptime and certificate expiry, with alerts that reach a person. WordPress uptime monitoring best practices covers intervals and false alarms.
  • Changed-file detection on plugin and theme files, so a file that changes without an update is noticed the same day.
  • An activity log of logins, user changes and plugin installs, kept long enough to look back a few weeks after an incident.
  • Vulnerability alerts for the plugins, themes and core version each site actually runs.

Backups and recovery

Daily backups with a copy off the server, retention of at least four weeks, and a restore test on a fixed schedule. A backup is part of the security checklist because it is the only item that helps after every other item failed. If you have never restored a given site, you do not know if you can. The article on what to do when a WordPress site gets hacked explains why retention of a few days is not enough.

Paperwork that saves time later

  • An access list per client: hosting, DNS, domain registrar, SFTP, WordPress admins, payment providers, and who holds each login.
  • A data processing agreement with each client whose site handles personal data, including how fast you inform them of an incident.
  • A short incident plan: who contains, who calls the client, where the evidence copy goes.

Doing this across fifty sites

On one site this checklist is an afternoon. On fifty, it only stays done if the settings live in one place and apply per package rather than per site, so a new site inherits them on day one. In WP Octo most of the items above, from 2FA, login limits, password policy and bot protection to security headers, XML-RPC, user enumeration and the check for publicly readable log files, can be switched on per site or per package. The page for agencies shows how that works with clients and packages.

For the monitoring side of this list, and how it turns into a weekly routine, read the guide to WordPress security monitoring for agencies.

Read also