How to Secure a WordPress Website in 2026 (15-Step Beginner’s Guide)

laptop showing a website security dashboard with shield and lock icons — how to secure a WordPress website 2026
TL;DR — How to Secure a WordPress Website in 2026: Keep WordPress core, themes, and plugins updated; use strong unique passwords with a password manager; enable two-factor authentication on every admin account; install one reputable security plugin (Wordfence or Solid Security); put a firewall in front of your site (Cloudflare’s free plan works); force HTTPS with an SSL certificate; keep automated off-site backups you have actually tested; limit login attempts; remove unused themes and plugins; choose a secure host. These ten habits stop the overwhelming majority of automated attacks. The steps below walk through all 15 in order, including what to do if your site is already hacked.

If you are asking how to secure a WordPress website in 2026, you are asking the right question at the right time. WordPress powers roughly 43% of all websites on the internet, and that popularity makes it the most targeted website platform in the world. But here is the fact most beginners get backwards: WordPress core itself is remarkably secure. When a WordPress site gets hacked, the cause is almost never some sophisticated zero-day exploit against WordPress itself. It is outdated plugins, weak passwords, or no backup to fall back on — things completely within your control.

This guide gives you the full picture in plain, beginner-friendly language: why WordPress sites get hacked, a prioritized 15-step checklist you can work through in one afternoon, how to choose the right security setup for your kind of site, what to do if your site is already hacked, the mistakes that cause most breaches, and answers to the questions beginners ask most. No coding required. Let’s lock your site down.

Why WordPress Sites Get Hacked (and Why Yours Doesn’t Have to Be)

Before the checklist, it helps to understand what you are actually defending against. The overwhelming majority of WordPress attacks are automated and opportunistic, not targeted. Bots crawl the web around the clock looking for easy targets: sites running an old version of a plugin with a known vulnerability, sites with “admin” as the username and a weak password, sites with no protection against brute-force login attempts. The attacker does not care about your site — they just need a site to host spam, redirect visitors to scams, or quietly send spam email from.

The numbers tell the story:

  • Plugin vulnerabilities dominate. Security reports consistently find that roughly 96% of WordPress vulnerabilities come from plugins and themes, not from WordPress core. (Source: Wordfence security reporting.) That means updates — boring, unglamorous updates — are your single most important security action.
  • Brute-force attacks are constant. Wordfence reports blocking tens of billions of password-guessing attacks per year across its network. Every public WordPress login page gets probed, whether your site is one week or ten years old.
  • Neglect, not genius, causes breaches. In our experience reviewing small business sites, the hacked ones almost always share the same pattern: months of ignored updates, a forgotten plugin from 2022, and an admin password like “company123”. Attackers harvest these sites in bulk.
Key takeaway: You do not need to be a security expert to secure WordPress. You need consistent basic hygiene — updates, strong logins, a firewall, and backups. That combination defeats the automated attacks responsible for the vast majority of breaches.

How to Secure a WordPress Website in 2026: The 15-Step Checklist

Work through these steps in order. Steps 1 through 8 cover roughly 90% of the protection for roughly 20% of the effort — if you stop after step 8, you are already safer than most WordPress sites on the internet. Steps 9 through 15 are the hardening layer that makes your site genuinely tough to crack.

Step 1: Keep WordPress Core, Themes, and Plugins Updated

This is the single most important security action you can take. Because almost all WordPress vulnerabilities live in plugins and themes, running outdated versions is the equivalent of leaving your front door unlocked.

What to do: In your WordPress dashboard, go to Dashboard → Updates and install any pending updates for WordPress core, themes, and plugins. Then, for each theme and plugin, decide: do I actually use this? If not, delete it (Step 10 covers this in detail). For plugins you trust and rely on, enable automatic updates — in the Plugins list you can toggle “Enable auto-updates” per plugin. Enable auto-updates for minor WordPress core releases (WordPress does this by default for minor versions) and test major releases soon after they come out.

Beginner tip: If updates make you nervous, make a backup first (Step 7). With a tested backup in place, an update that breaks something is a 15-minute restore, not a disaster.

Step 2: Use Strong, Unique Passwords (with a Password Manager)

Weak and reused passwords remain one of the most common ways WordPress sites get compromised. “Business2024!” and similar patterns fall to brute-force tools in seconds. And if you reuse the password you use for your email, a breach of any other service hands attackers your WordPress keys too.

What to do: Generate a long, random password (20+ characters) for every account that can log into WordPress — especially administrator accounts. Do not try to memorize them; use a password manager (Bitwarden is free and excellent; 1Password is a solid paid option). Change the passwords of any account still using something a human could guess. This one habit, combined with Step 3, eliminates the entire class of attacks that guesses passwords.

Step 3: Enable Two-Factor Authentication (2FA) on Every Admin Account

Two-factor authentication means a password alone is not enough to log in — the attacker also needs a time-based code from your phone app. This single step neutralizes brute-force and credential-stuffing attacks against your login page, because even a correctly guessed password is useless without the second factor.

What to do: Install a 2FA plugin such as the official Two-Factor plugin from WordPress.org or WP 2FA by Melapress, then go to Users → Profile and enable it for your account. Enforce it for all administrator accounts — in a multi-user site, one unprotected admin account is as bad as none. Save your backup codes somewhere safe (your password manager is ideal).

Key takeaway: If you do only three things this month, do steps 1–3: update everything, use a password manager, and turn on 2FA. Together they close off the attack paths that compromise the most WordPress sites.

Step 4: Install One Reputable Security Plugin

A good WordPress security plugin bundles several protections into one dashboard: a firewall, malware scanning, login attempt limiting, and file-integrity monitoring. It is the easiest way to get professional-grade defenses without configuring them one by one.

What to do: Pick one security plugin — installing two active security plugins causes conflicts and performance problems. The most established options are Wordfence Security (huge threat-detection network, strong firewall), Sucuri Security (monitoring-focused, with a respected cleanup service), and Solid Security (formerly iThemes Security, very beginner-friendly with a setup wizard). Install it, run the setup wizard, and enable the firewall and scheduled malware scans. The plugin comparison table later in this guide breaks down which one fits which kind of site.

Step 5: Put a Firewall in Front of Your Site

A web application firewall (WAF) inspects traffic before it reaches WordPress and blocks malicious requests — exploit attempts, bot spam, and brute-force probes. Some security plugins include a firewall, but a cloud-based firewall like Cloudflare’s free plan protects you even when WordPress itself is down or being updated, and it hides your real server address.

What to do: Sign up for Cloudflare’s free plan, point your domain’s nameservers to Cloudflare, and turn on the WAF rules. The free tier blocks a meaningful share of automated attacks and also speeds up your site with its CDN — a double win. (If you recently worked on site speed, you will recognize this: performance and security often improve together.)

Step 6: Force HTTPS with a Proper SSL Certificate

HTTPS encrypts the connection between your visitors and your site, so passwords, form submissions, and login credentials cannot be intercepted in transit. It is also a confirmed Google ranking factor, and browsers now flag non-HTTPS sites as “Not Secure” — which scares visitors away regardless of how safe your site actually is.

What to do: Almost every decent host in 2026 offers free SSL certificates (Let’s Encrypt) with one-click activation in the hosting control panel. Install the certificate, then go to Settings → General and make sure both the WordPress Address and Site Address start with https://. Add a redirect so all http:// traffic goes to https:// (plugins like Really Simple Security can do this in one click, and Cloudflare can enforce it at the edge too). After switching, check a few pages for “mixed content” warnings — an image loaded over http:// on an https:// page will trigger a browser warning.

Step 7: Set Up Automated Off-Site Backups (and Test the Restore)

Backups are your ultimate safety net. Even perfect security cannot reduce your risk to zero — a zero-day vulnerability in a popular plugin, a compromised admin account, or your own accidental mistake can still take a site down. With a recent, tested backup, any of those is an inconvenience. Without one, it is a catastrophe.

What to do: Install a backup plugin such as UpdraftPlus (free tier is genuinely useful) or Solid Backups, and schedule automated backups — daily for an active site, weekly for a quiet brochure site. Store the backups off-site: in your Google Drive, Dropbox, or cloud storage, never only on the same server as your website. And critically: test the restore process once. A backup you have never restored is a theory, not a backup. Run a restore to a staging copy or follow your plugin’s test-restore flow so you know it works before you need it.

Step 8: Limit Login Attempts and Hide the Login Page

Your WordPress login page (/wp-login.php and /wp-admin) is public and gets attacked constantly. Two cheap defenses: lock out IP addresses after a few failed attempts, and move the login page to a custom URL that bots do not know.

What to do: Most security plugins limit login attempts out of the box — verify it is enabled and set to something like 5 attempts before a temporary lockout. To change the login URL, plugins like WPS Hide Login let you set a custom address (for example, yoursite.com/my-secret-login). Note: changing the login URL is “security through obscurity” — helpful against bots, but it is not a substitute for strong passwords and 2FA. Treat it as a bonus layer.

Key takeaway: Steps 4–8 form your defensive perimeter: a security plugin, a firewall, HTTPS, tested backups, and login protection. With these plus steps 1–3, you have blocked the attack paths responsible for the vast majority of WordPress compromises. Everything from here is hardening.

Step 9: Delete the “admin” Username and Manage User Roles Properly

Half of all brute-force login attacks target the username “admin”, because it used to be WordPress’s default administrator name. If your site still has an account literally named “admin”, you have handed attackers half of your login credentials.

What to do: Create a new administrator account with an unpredictable username, log in as the new account, and delete the old “admin” account (attribute its content to the new account when prompted). Then audit your users: go to Users → All Users and check that everyone has the lowest role they actually need. A contributor who writes blog posts does not need administrator access. Remove accounts for people who no longer work with you. The fewer admin accounts, the smaller your attack surface.

Step 10: Delete Unused Themes and Plugins

Every installed theme and plugin is code that runs (or can be reached) on your server. Inactive plugins still contain exploitable files — attackers do not care whether a plugin is “active”, only whether its vulnerable code is reachable. The 2024 Wordfence data showing ~96% of vulnerabilities in plugins and themes is really a story about forgotten plugins and themes.

What to do: Go through Plugins → Installed Plugins and Appearance → Themes. For anything you do not actively use, click Delete (deactivating is not enough — deletion removes the files). Keep one default WordPress theme (like Twenty Twenty-Five) as a fallback in case your active theme breaks. Aim for the leanest plugin list that still gives you the site you want — every plugin you remove is one fewer thing to update and one fewer thing that can be exploited.

Step 11: Harden wp-config.php and File Permissions

wp-config.php is the most sensitive file in your WordPress installation — it contains your database credentials and secret keys. File permissions control who can read, write, and execute files on your server. Both are worth five minutes of attention.

What to do: Add define('DISALLOW_FILE_EDIT', true); to your wp-config.php to disable the theme/plugin file editor inside the WordPress dashboard — if an attacker ever gets admin access, this stops them from editing your files directly from the browser. Also add fresh secret keys (generate them at api.wordpress.org/secret-key/1.1/salt/ and paste them in) if you have never rotated yours. For permissions, the safe standard is 644 for files and 755 for directories, with wp-config.php tightened to 600 or 640. Never use 777 permissions — that makes files writable by anyone on the server. Most good hosts set these correctly by default; your security plugin or host’s file manager can verify them.

Step 12: Choose a Host That Takes Security Seriously

Your host is the foundation everything else sits on. A host with outdated PHP versions, no server-level firewall, no malware scanning, and no isolated accounts can undermine every step above. Conversely, a good host quietly handles a large share of security for you: patched server software, account isolation (so a hacked neighbor site cannot reach yours), free SSL, daily backups, and a support team that helps with cleanups.

What to do: When evaluating a host, ask or check for: current PHP versions (PHP 8.1 or newer — PHP 7.4 has been end-of-life since 2022), free SSL certificates, server-level firewall and malware scanning, account isolation on shared plans, and automated backups with easy restores. If your current host cannot offer these basics, moving to one that does is one of the highest-leverage security upgrades available — and it usually improves your site speed at the same time. If you’re still comparing hosts, see our detailed guide to choosing the right web hosting.

Step 13: Schedule Regular Malware Scans and Know the Cleanup Workflow

Prevention is ideal, but detection closes the loop. A scheduled malware scan catches infections early — often before Google flags your site or visitors notice anything wrong. And knowing your cleanup workflow in advance means you act in minutes instead of panicking for days.

What to do: Enable scheduled scans in your security plugin (weekly is fine for most sites, daily for stores). If a scan flags something: (1) do not panic and do not start deleting files blindly; (2) check whether your host offers a malware cleanup service — many do, sometimes free; (3) if you have a clean recent backup, restoring it is often the fastest and safest fix; (4) after cleanup, change all passwords, rotate your secret keys, and update everything before going back online. Sucuri also offers a well-known paid cleanup service if you want experts to handle it.

Step 14: Protect Forms, Comments, and Registrations from Spam Bots

Your contact forms, comment sections, and user registration pages are the doors bots knock on most. Unprotected forms get flooded with spam, and unprotected registration pages get used to create spam accounts — which attackers can then escalate.

What to do: Turn on comment moderation (Settings → Discussion — require manual approval for first-time commenters), disable user registration entirely if your site does not need it (Settings → General → uncheck “Anyone can register”), and add a CAPTCHA or honeypot to your forms. Cloudflare Turnstile is a good modern option — it blocks bots without making real visitors solve puzzles. Akismet (bundled with WordPress, free for personal sites) handles comment spam well.

Step 15: Put Security on a Maintenance Schedule

Security is not a one-time project; it is a habit. The sites that stay safe are the ones whose owners spend ten minutes a month on maintenance, not the ones who hardened everything once in 2023 and never looked again.

What to do: Set a recurring monthly reminder and run this ten-minute routine: install pending updates, glance at your security plugin’s dashboard for blocked threats or scan warnings, confirm your latest backup completed successfully, review the user list for accounts you do not recognize, and check that your SSL certificate is still valid. Ten minutes a month is all it takes to stay ahead of the automated attacks that harvest neglected sites.

Key takeaway: The full 15-step checklist is: update everything, strong unique passwords, 2FA, one security plugin, a firewall, HTTPS, tested off-site backups, login-attempt limits, no “admin” username with least-privilege roles, delete unused themes/plugins, harden wp-config.php and permissions, a secure host, scheduled malware scans, spam/bot protection on forms, and a monthly maintenance routine. Work it top to bottom and your site is harder to hack than the vast majority of WordPress sites online.

WordPress Security Plugins Compared: Which One Should You Choose?

You only need one security plugin, but choosing the right one matters. Here is how the three most established options compare for beginners in 2026:

FeatureWordfence SecuritySolid Security (ex-iThemes)Sucuri Security
FirewallYes — endpoint firewall, very strong threat feedYes — with brute-force and network protectionMonitoring-focused; full WAF is a paid add-on
Malware scannerYes — compares core/theme/plugin files against official versionsYes — site scan with version managementYes — integrity monitoring and audit logs
Beginner-friendlinessPowerful but settings-heavyExcellent — guided setup wizard, plain-language optionsStraightforward, fewer knobs to turn
Free tier qualityGenerous — firewall + scanner freeGood — core hardening freeGood — scanning and hardening free
Best forSite owners who want maximum visibility into attacksBeginners who want a guided, set-and-forget setupSite owners who value monitoring + professional cleanup options
Watch out forCan be resource-heavy on tiny shared plansSome advanced features are paidFull firewall protection requires the paid platform

The verdict: For most beginners, Solid Security is the easiest starting point thanks to its setup wizard; Wordfence is the best choice if you want the deepest protection and don’t mind more settings; Sucuri is worth considering if you want the option of a professional cleanup service behind you. Any of the three, properly configured, is vastly better than none.

How to Choose the Right Security Setup for Your Type of Site

Not every site needs the same level of protection. Use this framework to match the checklist to your situation:

  • Personal blog / portfolio (low traffic, no payments): Steps 1–8 plus monthly maintenance are plenty. Free Cloudflare + one free security plugin + UpdraftPlus backups + 2FA is a complete, $0 setup.
  • Business / brochure site (reputation matters): Do all 15 steps. Add uptime monitoring (UptimeRobot’s free plan) so you know immediately if the site goes down, and keep daily backups. A hacked business site that redirects visitors to scams does real brand damage.
  • WooCommerce / membership site (handles payments and user data): All 15 steps, daily backups stored off-site, a paid security tier (Wordfence Premium or Sucuri’s platform) for real-time firewall rules, and consider a staging site for testing updates. If you store customer data, you may also have legal obligations (like GDPR) around protecting it.
  • Client sites (you build sites for others): Standardize on one security plugin and one backup solution across all client sites, enforce 2FA on every admin account including the client’s, and document the monthly routine so handover is clean. Your reputation is on the line with every site you ship.
Key takeaway: Match your effort to your risk: a free, well-configured setup covers personal blogs completely; business and store sites deserve the full 15 steps plus daily backups and monitoring. The wrong choice is not “too little” — it’s “nothing”.

What to Do If Your WordPress Site Is Already Hacked: A Recovery Workflow

Finding out attackers hacked your site is stressful, but you can recover it — especially if you have backups. Follow this workflow in order and resist the urge to start deleting things at random:

  1. Confirm the hack. Common signs: Google shows a “This site may be hacked” warning, visitors report redirects to strange sites, your host suspends your account for spam, unknown admin users appear, or your security scan flags modified core files. Don’t ignore these — early action limits damage.
  2. Take the site offline or into maintenance mode. This stops visitors (and Google) from seeing the compromised version while you work. Your host’s control panel or a maintenance plugin can do this in one click.
  3. Change all passwords. WordPress admins, hosting control panel, FTP/SFTP, database — everything. Treat the credentials as compromised until you prove otherwise.
  4. Restore from your most recent clean backup. This is the fastest path back to a working site. Restore both files and the database, then verify the site looks and behaves normally.

Clean Up, Close the Hole, and Ask for a Re-Review

  1. If you have no clean backup, clean manually. Update everything. Delete and reinstall all plugins and themes from official sources — don’t just update, reinstall, in case attackers modified files. Replace WordPress core files with a fresh copy, and remove any unknown admin users or suspicious files your scanner flags. When in doubt, hire your host’s cleanup service or a professional. A half-cleaned hack that attackers reinfect is worse than a slow, thorough one.
  2. Close the hole. Figure out how they got in: an outdated plugin is the most likely answer. Update it (or replace it), enable 2FA, tighten everything per the 15-step checklist above — otherwise you will be cleaning the same hack again next month.
  3. Ask Google to re-review. If Google flagged your site, fix everything first, then request a review in Google Search Console under Security Issues. Reviews typically take a few days.
Key takeaway: A hacked site is not a dead site. Restore from a clean backup, close the entry point, and harden everything — and the same afternoon that felt like a disaster becomes the day your site got permanently safer.

7 Mistakes That Get WordPress Sites Hacked

  1. Ignoring updates for months. The number-one cause. An update you postpone for six months is a vulnerability attackers have had six months to exploit.
  2. Using nulled (pirated) themes and plugins. “Free premium theme” downloads from shady sites are one of the most common malware delivery methods in the WordPress ecosystem. They often contain backdoors by design. If you can’t afford the premium version, use a reputable free alternative from WordPress.org.
  3. One weak password everywhere. Reusing your email password as your WordPress admin password means one breach anywhere becomes a breach of your site.
  4. Installing plugins and never removing them. The average neglected site we see has 10+ inactive plugins, several abandoned by their developers years ago. Each one is an unlocked window.
  5. No backups — or backups stored on the same server. A backup on the same hacked server is not a backup. Off-site or it doesn’t count.
  6. Giving everyone administrator access. Your writer, your VA, your developer’s intern — if they only need to edit posts, give them the Editor role. Every unnecessary admin account is another set of credentials that can be stolen.
  7. Assuming “my site is too small to be hacked.” Attackers don’t target you personally; bots target everyone automatically. Small sites are actually preferred targets because they’re the least likely to notice.

Free vs Paid WordPress Security: What Do You Actually Need?

A common beginner question: do I have to pay for security? The honest answer is that a careful free setup covers the essentials, and paid tiers buy convenience and faster protection.

Free setup ($0)Paid setup (~$100/yr)
What you getOne free security plugin, Cloudflare free firewall, free SSL, free backup plugin, 2FA pluginEverything in free, plus premium firewall rules updated in real time, priority malware removal, advanced scanning
Protection levelExcellent against automated attacks — the 99% caseExcellent, plus faster response to brand-new threats
Best forBlogs, portfolios, new sites, tight budgetsStores, business sites, anyone who wants cleanup handled for them

The verdict: Start free and do it properly — a well-configured free setup beats an expensive plugin you never configure. Upgrade to paid when your site earns money or handles customer data, because at that point the cost of a breach exceeds the cost of the subscription.

Frequently Asked Questions

Is WordPress secure in 2026?

Yes — WordPress core itself is very secure and vulnerabilities in core are rare and patched quickly. The risk lives in the ecosystem around it: outdated plugins, weak passwords, and poor hosting choices cause the vast majority of hacks. A maintained WordPress site with updates, strong logins, a firewall, and backups is well protected.

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

Common signs include Google showing a “This site may be hacked” warning in search results, visitors being redirected to strange websites, a sudden drop in traffic, unknown administrator accounts appearing, new files you didn’t create, or your host suspending your account for sending spam. Run a malware scan with your security plugin to confirm.

What is the best security plugin for WordPress in 2026?

There is no single winner, but the three most established options are Wordfence Security (deepest protection, most settings), Solid Security (most beginner-friendly, guided setup), and Sucuri Security (strong monitoring with professional cleanup options). Pick one, configure it properly, and never run two security plugins at once.

Do I need to pay for WordPress security?

No. A free setup — one free security plugin, Cloudflare’s free firewall, free SSL from your host, a free backup plugin, and 2FA — protects against the automated attacks responsible for nearly all breaches. Paid tiers are worth it when your site earns money or handles customer data, mainly for real-time firewall rules and professional cleanup.

How often should I update WordPress, themes, and plugins?

Install security updates as soon as they are available — attackers start exploiting known vulnerabilities within days of disclosure. Enable auto-updates for plugins you trust, enable automatic minor updates for WordPress core, and check your Updates screen at least monthly as part of a maintenance routine.

Is two-factor authentication really necessary for WordPress?

Yes — it is the single most effective step against brute-force and stolen-password attacks. Even if an attacker guesses or steals your password, they cannot log in without the code from your phone. It takes five minutes to set up and protects every account it covers.

Will a security plugin slow down my website?

A well-configured security plugin has minimal impact — usually unnoticeable. Problems arise from running two security plugins simultaneously (they conflict) or from aggressive scanning settings on very small hosting plans. Schedule scans for low-traffic hours and you will not feel a difference.

How do I secure the WordPress login page?

Use a strong unique password plus 2FA (this matters most), limit login attempts so bots get locked out after a few failures, and optionally change the login URL to something bots won’t guess. Together these make brute-force attacks practically impossible.

What should I do first if my WordPress site is hacked?

Put the site in maintenance mode, change all passwords (WordPress, hosting, FTP, database), and restore from your most recent clean backup — that is the fastest recovery. Then find and close the entry point (usually an outdated plugin), harden the site with the checklist above, and request a Google re-review if your site was flagged.

Does my web hosting affect my site’s security?

Significantly. A good host provides current PHP versions, a server-level firewall, malware scanning, account isolation, free SSL, and automated backups — handling a large share of security for you. A poor host with outdated software and no isolation can undermine everything you do inside WordPress.

Are nulled (pirated) themes and plugins safe to use?

No — never use them. Nulled themes and plugins downloaded from unofficial sites are one of the most common ways WordPress sites get infected, because they frequently contain hidden backdoors. Always download from WordPress.org or the developer’s official site, and use reputable free alternatives when budget is tight.

Can I secure my WordPress site myself, or do I need a developer?

You can do it yourself. Every step in the 15-step checklist above requires no coding — just dashboard settings, plugin installs, and a hosting control panel. A developer is only needed for unusual cases like custom-coded vulnerabilities or complex multisite setups.

The Bottom Line

Learning how to secure a WordPress website in 2026 comes down to one mindset shift: security is maintenance, not magic. Update everything, lock down logins with strong passwords and 2FA, run one good security plugin behind a firewall, keep tested off-site backups, and spend ten minutes a month on upkeep. Do that, and your site joins the quiet majority of WordPress sites that never get hacked — not because attackers never try, but because the bots move on to easier targets.

If you found this guide useful, the natural next step is making your site fast as well as safe — a slow site loses visitors just as surely as an insecure one scares them away. Read our guide on how to speed up your WordPress website in 2026 for the 12 fixes that pair perfectly with this security checklist. And if you’re still in the planning stage, our step-by-step guide to starting a blog and making money in 2026 walks through choosing hosting and launching the right way from day one.

    Related Posts

    4 Comments

    Leave a Reply

    Your email address will not be published. Required fields are marked *