---
title: "How to Secure a WordPress Site: 2026 Checklist"
description: "A 10-step WordPress security checklist in order of impact: updates, fewer plugins, two-factor login, roles, backups, a firewall, HTTPS and hardening."
source: https://wpos.ai/blog/how-to-secure-a-wordpress-site/
updated: 2026-11-11
---

[Black Friday](https://wpos.ai/black-friday/): 15,000 free credits + 50% off ends Nov 30

# How to Secure a WordPress Site: The 2026 Checklist

Most WordPress hacks come through outdated plugins and weak logins, not WordPress itself. This checklist puts the fixes in order of impact: updates, fewer plugins, stronger logins with two-factor, the right user roles, backups, a firewall, HTTPS and a few lines of hardening.

- Security

- Checklist

- 2026

## The short answer

**Keep everything updated, remove what you don't use, protect logins with two-factor, and keep off-site backups.** Those four steps close most of the doors attackers use. [Patchstack](https://www.patchstack.com/whitepaper/state-of-wordpress-security-in-2026/) counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025: 91% were in plugins and only six in WordPress core. The full checklist:

- Update WordPress, plugins and themes.
- Delete plugins and themes you don't use.
- Use strong passwords and two-factor login.
- Give each person the lowest role that does the job.
- Keep automatic off-site backups, and test a restore.
- Add a firewall and malware scanning.
- Serve the site over HTTPS, with security headers.
- Turn off file editing in wp-admin.
- Keep PHP and the server current.
- Give AI tools and integrations their own limited access.

## 1. Update everything, automatically where you can

**Most attacks use flaws that already have a fix.** WordPress installs minor releases by itself. For plugins and themes you trust, turn on automatic updates from the Plugins and Themes screens. Test big updates, such as a new major WordPress version or a WooCommerce release, on a staging copy first.

## 2. Use fewer plugins, and delete the rest

**Every plugin is code someone can attack.** Remove plugins and themes you don't use: a deactivated plugin still sits on the server. Before you install a new one, check that it was updated recently, has a solid install base and answers support questions.

## 3. Lock down logins with two-factor

**WordPress doesn't build two-factor login into core,** so add it with a plugin, for administrators at least.

- [Two Factor](https://wordpress.org/plugins/two-factor/), published by WordPress.org, adds codes from an authenticator app, email codes and backup codes (100,000+ active installs).
- Security suites such as [Wordfence](https://wordpress.org/plugins/wordfence/) (5 million+ installs) add two-factor as part of a wider package.
- [Limit Login Attempts Security](https://wordpress.org/plugins/limit-login-attempts-reloaded/) (1 million+) locks out bots that keep guessing passwords; many hosts block them at the server too.

Use a unique, long password for every account, kept in a password manager.

## 4. Give people the right role

**An account can only do the damage its role allows.** Give writers the Editor or Author role, keep Administrator for the few people who change plugins and settings, and remove accounts when people leave. WordPress's guide to [roles and capabilities](https://wordpress.org/documentation/article/roles-and-capabilities/) explains each role. Give tools that connect to the site an [application password](https://make.wordpress.org/core/2020/11/05/application-passwords-integration-guide/), which you can revoke on its own. Hiring help? Our guide to [hiring a WordPress developer](https://wpos.ai/blog/how-to-hire-a-wordpress-developer/) covers giving access safely.

## 5. Back up off-site, and test a restore

**A backup you haven't restored is a guess.** Keep [automatic daily backups](https://wpos.ai/blog/how-to-backup-a-wordpress-site/) somewhere other than the server, from your host or a plugin such as [UpdraftPlus](https://wordpress.org/plugins/updraftplus/) (4 million+ installs). Keep a few weeks of copies, and restore one to a staging site now and then to prove it works.

## 6. Add a firewall and malware scanning

**A firewall blocks known attacks before they reach WordPress.** Many hosts and CDNs run one in front of the site. Inside WordPress, Wordfence adds a firewall and a malware scanner, and [Sucuri Security](https://wordpress.org/plugins/sucuri-scanner/) (600,000+ installs) adds remote malware scanning, file-change monitoring and an activity log. Run one scanner, not several, and act on what it reports.

## 7. HTTPS and security headers

**Serve every page over HTTPS,** which most hosts now provide with a free certificate. Then add security headers: Strict-Transport-Security keeps browsers on HTTPS, X-Content-Type-Options stops file-type guessing, a Referrer-Policy limits what other sites see, and a frame rule stops other sites embedding yours. Check the result with a header scanner after the change.

## 8. Turn off file editing in wp-admin

**By default an administrator can edit theme and plugin code from the dashboard.** If an admin account is ever taken over, that editor hands the attacker the site. Add this line to wp-config.php:

`define( 'DISALLOW_FILE_EDIT', true );`WordPress's [hardening guide](https://developer.wordpress.org/advanced-administration/security/hardening/) notes that it won't stop an attacker who can upload files, but it closes one easy route. The same guide recommends file permissions of 644 for files and 755 for folders.

## 9. Keep PHP and the server current

**An unsupported PHP version stops getting security fixes.** WordPress [recommends](https://wordpress.org/download/) PHP 8.3 or newer, and MySQL 8.0 or MariaDB 10.11 or newer. Ask your host which versions you run and how they patch the server.

## 10. Give AI tools their own, limited access

**Agents and integrations need access too, and they should never use your login.** Connect each one as its own WordPress user with the lowest role that does the job, through OAuth or an application password, and keep a log of what it changes. Our guides on [connecting ChatGPT](https://wpos.ai/blog/can-chatgpt-log-in-to-wordpress/) and [connecting Claude](https://wpos.ai/blog/connect-claude-to-wordpress/) show how.

## Keeping it secure is routine work

**Security is mostly upkeep:** updating, removing and checking, every week, on every site. WPOS puts an agent inside wp-admin on the sites you already run, on any host, so a routine check becomes one request:

> “List every inactive plugin and theme on this site, and every user with the Administrator role, so I can decide what to remove.”

WPOS is our product, so weigh this section accordingly; you can [try it free for 30 days](https://app.wpos.ai/signup?ref_page=how-to-secure-a-wordpress-site&ref_cta=body-cta) with 5,000 credits, a live site plus a staging sandbox, and no card.

## Frequently Asked Questions

**Is WordPress secure?**

WordPress core is well maintained: Patchstack found only six of 2025's 11,334 new WordPress vulnerabilities in core. Most risk comes from outdated plugins and themes, weak passwords and missing backups.

**Does WordPress have two-factor authentication built in?**

No. Add it with a plugin, such as Two Factor from WordPress.org or a security suite, at least for administrator accounts.

**Do I need a security plugin?**

Not always. If your host runs a firewall, blocks login attacks and keeps backups, you may only need a plugin for two-factor login. Avoid stacking several security plugins that do the same job.

**How do I know if my WordPress site has been hacked?**

Common signs: administrator accounts you don't recognize, redirects to other sites, spam pages showing up in Google, browser warnings, or a notice from your host.

**Should I change the wp-admin login URL?**

It cuts down bot traffic but isn't real protection. Two-factor login and limits on login attempts do far more.

**What is the single most important step?**

Keeping plugins, themes and WordPress updated, and deleting the ones you don't use.

**Black Friday**ends Nov 30

## Start free with 15,000 credits.

Three times the usual 5,000, no card needed. Then 50% off your site licences for 2 months with FRIDAY50.

## Security is upkeep. Hand off the upkeep.

WPOS puts an AI agent inside wp-admin on the sites you already run, on any host, and it checks its own work. Free for 30 days: 5,000 credits, a live site plus a sandbox, no card.

[Claim 15,000 credits](https://app.wpos.ai/signup?ref_page=how-to-secure-a-wordpress-site&ref_cta=prefooter-cta): Start free
