Security

Hardening WordPress: the 12 settings that actually matter

A practical security checklist for WordPress sites — what to change, why it matters, and what is mostly security theatre.

By WPProductHub 2 min read

Most WordPress security advice is a long list of tweaks. Some of them make a real difference; others only feel safe. These twelve are the ones worth your time.

Keep things up to date

1. Update plugins and themes promptly. The large majority of reported WordPress vulnerabilities are in plugins and themes, not WordPress core. Turn on automatic updates for plugins you trust, and check the rest at least weekly.

2. Keep WordPress core updated. Minor (security) releases update automatically by default — leave that on.

3. Run a supported PHP version. Old PHP versions stop receiving security fixes. Your host’s control panel usually lets you switch.

4. Remove what you don’t use. Deactivated plugins and unused themes can still contain vulnerable code. Delete them, keeping one default theme as a fallback.

Protect logins

5. Use strong, unique passwords for every account, and a password manager to keep track of them.

6. Turn on two-factor authentication for every administrator and editor. It stops most attacks that rely on stolen or guessed passwords.

7. Limit login attempts. Rate limiting or temporary lockouts stop automated password guessing on wp-login.php and XML-RPC.

8. Give people the lowest role they need. Writers rarely need to be administrators. Remove accounts for people who no longer work on the site.

Lock down the server side

9. Disable file editing in the dashboard. Add this line to wp-config.php so a compromised admin account can’t edit theme and plugin code from the browser:

define( 'DISALLOW_FILE_EDIT', true );

10. Serve the whole site over HTTPS, and make sure the WordPress and site addresses in Settings → General use https://.

11. Keep backups off the server — automatic, stored somewhere else, and tested. A backup you have never restored is a hope, not a plan.

12. Add a firewall. A web application firewall, either as a plugin or at your host or CDN, blocks many known attack patterns before they reach WordPress.

What matters less than you’d think

  • Changing the login URL cuts down log noise but doesn’t stop a determined attacker. Two-factor authentication and rate limiting do far more.
  • Hiding the WordPress version has little effect; automated attacks simply try known exploits on every site.
  • Stacking several security plugins often causes conflicts. Choose one well-maintained plugin, plus your host’s protections.

Security plugins such as Wordfence Security, Solid Security and Sucuri Security combine several of these steps — firewalls, login protection and scanning — and backup plugins like UpdraftPlus handle off-site backups.

Browse security plugins or compare Wordfence and Solid Security side by side.

For makers

Building a WordPress product?

Get it in front of people comparing plugins, themes and tools for their next WordPress site.

  • Reviewed before publishing
  • Shown alongside similar products