WordPress hardening means reducing the number of ways an attacker can get into your site and limiting the damage if one of them works. For a business site, that comes down to six areas: updates, logins, configuration, backups, monitoring and a tested recovery plan. Most of the work is a one-time setup. The part that fails is the routine afterward, which is why many small firms, medical practices, law offices and lenders hand it to a managed IT team that already watches their systems around the clock, such as our managed IT services.
This guide gives you the checklist in the order we would work through it, what each step protects against, and which popular changes can quietly break your site.
TL;DR
- Hardening lowers risk; it does not eliminate it. The WordPress project itself describes security as improving your posture and lowering the odds of becoming a target.
- The highest-value steps are timely updates, two-factor authentication for every administrator, limited login attempts and tested backups kept in more than one place.
- Some well-known tweaks, such as blocking all file changes or trimming database privileges, can stop updates from working. Apply them only with a plan.
- Malware recovery depends on a clean backup you have already tested, so set that up before anything goes wrong.
- If the site holds patient, client or loan data, hardening belongs inside a wider security and compliance program, not on a one-off to-do list.
Table of Contents
- What hardening protects against
- Step 1: Keep core, plugins and themes updated
- Step 2: Lock down logins and administrator accounts
- Step 3: Harden the configuration
- Changes that can break your site
- Step 4: Back up the whole site and keep copies apart
- Step 5: Protect against malware and respond if it lands
- Step 6: Monitor continuously and review on a schedule
- Our perspective
- Let us take the routine off your plate
- FAQ
- Sources
What hardening protects against
A WordPress site is more than one program. It is the core software, a database, a login page, a theme and usually a dozen or more plugins, each with its own code and its own update schedule. Attackers rarely target a business by name. They scan for known weaknesses in outdated software, reused passwords and exposed login pages, and they act on whatever answers.
The official WordPress hardening guide is explicit about the goal. It says security is about applying the appropriate controls within reason to improve your posture and reduce the odds of making yourself a target. That framing matters for a business owner: you are not buying invulnerability, you are removing the easy openings and making sure you can recover quickly.
For regulated organizations the stakes are higher. A contact form on a medical practice site, a client intake page on a law firm site or a loan inquiry form on a mortgage site collects information that carries legal duties. A compromised website can become the first step toward a wider incident, so treat it as part of your overall security perimeter.
Step 1: Keep core, plugins and themes updated
This is the single most important control, and the WordPress hosting handbook agrees: keeping core, plugins and themes up to date is the most important security step.
The reason is timing. According to the official hardening guide, once a vulnerability is found and a patched version ships, exploit information is almost certainly public, so older versions become easier targets every day they stay in place. Only the latest WordPress version is officially supported, although the Security Team backports some fixes to older versions as a courtesy.
What to do:
- Download WordPress, themes and plugins only from official or reputable vendor sources. The hardening guide specifically says to get releases from wordpress.org.
- Turn on automatic updates where they are safe. Automatic updates have been part of WordPress since version 3.7.
- Delete plugins and themes you do not use. Deactivated code still sits on the server.
- Replace plugins that are no longer maintained by their developers.
Where it goes wrong: an update to a form, booking or payment plugin can break a page that brings in leads. The fix is to test updates on a staging copy before they reach the live site, which takes time that busy owners rarely have. Our team handles this kind of recurring maintenance as part of web development and ongoing IT management.
Step 2: Lock down logins and administrator accounts
Stolen or guessed passwords are the quiet way into most sites. The official WordPress guidance on brute-force attacks recommends strong unique passwords with a password manager, two-factor authentication for all administrators, rate limiting of login attempts, CAPTCHA, and protecting or disabling XML-RPC. XML-RPC is an older remote-access interface that many sites do not use but attackers still probe.
Two details are worth knowing:
- WordPress core does not ship with two-factor authentication for self-hosted sites, so you add it through a trusted plugin or a single sign-on setup. The hosting handbook says the same.
- The project does not treat usernames as secret, because the REST API can list users. The handbook explains that a username identifies and a password verifies. Renaming the "admin" account is a fine habit, but it is not a substitute for a strong password and a second factor.
A practical account policy for a business site:
- Give every person their own account, and remove accounts the day someone leaves.
- Give the Administrator role to as few people as possible. Editors and authors rarely need more.
- Require a long, unique password for each account. Michigan's state cyber unit recommends 16-character passwords, two-factor authentication and limited login attempts.
- Offer passkeys where your tools support them. We compare them with traditional multi-factor in our guide to passkeys vs MFA for small business.
For the people side of this, see our pieces on password management best practices and multi-factor authentication for business. Our free password generator helps staff create strong passwords.
Step 3: Harden the configuration
Configuration changes live mostly in the wp-config.php file, the file that tells WordPress how to reach its database, and in the server settings.
The Michigan guidance lists the common ones: changing the database table prefix, using secure database credentials, turning off database error display, restricting file permissions, disabling the dashboard file editor, limiting access to sensitive files, using HTTPS and choosing a host with enhanced security features. The official hardening guide adds locking down file permissions and considering separate databases for separate sites, so one compromised site does not expose the others.
A short configuration checklist:
| Control | What it does | Risk of breaking something |
|---|---|---|
| HTTPS across the whole site | Encrypts traffic between visitors and the site | Low, but fix mixed-content warnings afterward |
| Force HTTPS for the admin area (FORCE_SSL_ADMIN in wp-config.php) | Keeps login credentials off unencrypted pages, per the WordPress Security White Paper | Low |
| Disable the dashboard code editor (DISALLOW_FILE_EDIT) | Removes a common way for an intruder to plant code from inside the dashboard | Low; updates keep working |
| Strict file permissions | Stops the web server writing where it should only read | Medium; wrong settings can block uploads |
| Use SFTP or SSH, never plain FTP | Protects file-transfer credentials | Low |
| Security headers and web application firewall | Filters hostile requests before WordPress sees them | Medium; needs testing against forms and checkout |
A web application firewall is a filter that sits in front of your site and blocks known attack patterns. Michigan's guidance recommends enabling one, and our network security solutions cover firewalls and wireless protection at the business level.
If you are comparing plugin-based options for the site itself, this overview of WordPress security plugin options shows the kinds of risk-reduction measures available.
Changes that can break your site
This is where checklists copied from the internet cause outages. Two examples come up often.
Blocking all file modifications. The setting DISALLOW_FILE_EDIT only removes the code editor and leaves updates alone. A stricter setting, DISALLOW_FILE_MODS, also blocks installing and updating plugins and themes from the dashboard. It makes sense only when your team has a separate, documented way to push updates. Without one, your site stops receiving patches, which is the opposite of what you wanted.
Trimming database privileges. It is tempting to remove permissions such as ALTER or DROP from the database account. The security community's WordPress benchmark notes that core and plugin updates can need the full set of privileges, and any restriction should come with a tested full-database backup plan. Treat that as an advanced option, suited to organizations with formal change management.
The rule we apply: make one change at a time, on a staging copy first, with a verified backup behind it. Then check the pages that earn money, such as forms, booking tools and payments, before and after.
Step 4: Back up the whole site and keep copies apart
Hardening reduces the chance of an incident. Backups decide how bad the incident is.

The WordPress backup guide recommends weekly backups for smaller sites and daily backups for high-activity sites, at least three to five recent copies in different locations, and both the database and the files, because a typical restore needs both. The hardening guide likewise calls for regularly timed snapshots of the entire installation kept in a trusted location.
For a business site, apply it this way:
- Back up the database and every file, including uploads, themes and plugins.
- Store copies away from the web server, so an attacker who controls the server cannot erase them.
- Keep several restore points. Malware is sometimes found days after it arrives, and you need a copy from before that.
- Run a test restore to a staging site at least occasionally. A backup you have never restored is an assumption.
Our backup and disaster recovery service is built for this. For the reasoning behind copies an attacker cannot alter, see our explainer on immutable backups for small firms.
Step 5: Protect against malware and respond if it lands
Most malware reaches WordPress through three routes: an outdated plugin or theme, a stolen password, or software downloaded from an untrusted source. Steps 1 to 3 close those routes. What remains is noticing a problem early and responding in the right order.
Signs that deserve immediate attention:
- Administrator accounts you did not create
- Pages or posts you did not write, especially with unfamiliar links
- Visitors redirected to other sites, or browser and search warnings about your domain
- Files changed on dates when nobody edited the site
- A sudden slowdown or an unexpected spike in outgoing email
If you see them, work in this order:
- Contain. Put the site in maintenance mode or take it offline so visitors and search engines are not exposed.
- Change credentials. Reset passwords for all WordPress users, the hosting account, SFTP and the database, and replace the secret keys in wp-config.php.
- Restore from a clean backup. Choose a restore point from before the first sign of trouble, then apply every pending update before reopening the site.
- Rebuild what you cannot verify. Reinstall core, plugins and themes from official sources rather than trusting existing files.
- Look for the way in. If you restore without finding the cause, the same weakness lets the attacker back in.
If the site collected protected health information, client files or financial data, bring in your security and compliance team at the start, not at step five. Notification duties under HIPAA and state breach laws can start when you discover the incident, and your attorney or compliance officer should be part of that decision. Our cybersecurity solutions include endpoint detection, incident response and risk assessment for this situation.
Step 6: Monitor continuously and review on a schedule
Hardening is not finished on launch day. New plugin vulnerabilities appear constantly, staff come and go, and a setting that was correct in January may be wrong by autumn. Michigan's guidance recommends regular professional security audits and penetration testing alongside frequent updates.
A workable rhythm:
- Weekly: review pending updates, failed login patterns and backup status.
- Monthly: review user accounts and roles, remove unused plugins, confirm that a restore point exists.
- Quarterly: run a restore test and review the configuration against this checklist.
- Yearly: schedule an independent security assessment. For regulated firms, fold the site into your compliance and security audits.
If you are building a new site or relaunching one, it is far cheaper to design security in than to bolt it on. Our guides on secure website design and the pre-launch secure website checks show what to settle before go-live.
Our perspective
Most of the WordPress incidents we hear described are not clever attacks. They are an unpatched plugin, a shared password or a backup nobody had restored. None of that is exotic, and all of it is preventable.
That is why we approach website security the way we approach the rest of IT: proactively, so issues are dealt with before they disrupt operations. A hardening checklist is a good start, but a checklist is a snapshot. The value comes from someone owning the routine: the updates, the monitoring, the backups and the review.
For small and mid-size businesses in Southern California, especially healthcare practices, law firms, banks and mortgage companies, the website is one more system holding sensitive information. We fold it into the same 24/7 monitoring, security and compliance work as the rest of the environment, with flat-rate, transparent billing and no long-term contracts.
Alex
Let us take the routine off your plate
Secure Techies provides managed IT, managed cybersecurity, backup and disaster recovery, compliance audits and web development for small and mid-size businesses in Southern California. Our team offers 24/7 monitoring and a 99.9% uptime guarantee, and supports compliance with standards such as HIPAA, GDPR, SEC, SOC 2 and CMMC.

If your WordPress site needs hardening, ongoing maintenance or a tested recovery plan, start with our Cybersecurity Solutions or contact us through our site.
FAQ
Is WordPress secure enough for a business website?
Yes, when it is kept current and configured with care. The WordPress Security Team works on fixes and releases for the core software, and most real-world problems come from outdated plugins, weak passwords and missing backups. Hardening and routine maintenance address exactly those points.
How long does hardening a WordPress site take?
The core settings, such as logins, two-factor authentication, file permissions and backups, can be done in a few hours on a typical site. The ongoing part is the monthly and quarterly review. Sites with checkout, patient forms or custom plugins take longer because each change needs testing.
Do I need a security plugin?
A security plugin can add login limits, file scanning and firewall rules in one place, and many hardening steps are easier with one. It works best alongside updates, strong authentication and backups kept off the web server, not in place of them.
What should I do first if my site shows signs of malware?
Take the site offline or into maintenance mode, change every related password, and restore from a clean backup made before the problem began. Then update everything and find how the attacker got in. If the site handled health, legal or financial data, involve your compliance officer or attorney right away.
Sources
- Hardening WordPress, WordPress Advanced Administration Handbook
- Brute Force Attacks, WordPress Advanced Administration Handbook
- Backups, WordPress Advanced Administration Handbook
- Security, WordPress.org
- WordPress Hosting Handbook: Security
- WordPress Hosting Handbook: Security (usernames and user IDs)
- WordPress Security White Paper
- Cyber Snapshot: Strengthening WordPress Security, Michigan State Police MC3
- Top 4 Security Plugins for Elementor
