Websites often get hacked because they miss simple WordPress security measures. We’ve cleaned more than 10,000 hacked WordPress sites at MalCare, and when we trace each one back to how the attacker got in, the answer is rarely clever. It’s an outdated plugin, a reused password or an admin account nobody remembered was still active.
This WordPress security checklist covers the 27 checks we’d run on any site we were asked to protect, in the order we’d run them.
You can tick several off in one go, too. Install a WordPress security plugin like MalCare, and the first few items are done before you’ve scrolled any further.
TL;DR: Start with MalCare for a firewall, malware scanning, vulnerability alerts and login protection, then work through your updates, accounts, files and backups. Back up before you change any setting, test your logins, forms and checkout afterwards, and revisit this checklist whenever your site or team changes.
Before you start
Backup your files and database first, and make sure you can restore without wp-admin. Anything that could affect customers or connected tools belongs on staging before it goes live.
Already seeing redirects, unknown admins or spam you never published? Start with malware scanning and cleanup, because hardening a compromised site only locks the attacker in with you.
Protect and detect
Many attacks on WordPress sites are automated, so bots probe your site day and night whether you’re watching or not. These first six checks put protection in place that works on the same schedule.
Check 1: Install a WordPress firewall
Put a WordPress-specific firewall in front of your site. It inspects every request and drops the ones that look like attacks, which matters because the most dangerous plugin flaws can be triggered without logging in.

MalCare’s firewall filters malicious traffic, and its Atomic Security layer watches for the actions every exploit has to take, like creating an admin, escalating a role, writing a file or changing site options. That lets it stop attacks even on flaws that haven’t been made public, and it builds its rules from your own site’s setup with nothing for you to configure.
If a form or checkout ever breaks, check the blocked-request log before you switch protection off.

Check 2: Run regular malware scans
Use a WordPress malware scanner to scan your files and database on a schedule, not just once. Quick detection is the difference between a salvageable and a completely destroyed site, and malware is built to hide, so your homepage can look perfect while infected code redirects visitors or sits inside a scheduled task.
MalCare scans every file, database table and scheduled task, with the heavy analysis running on our servers so your site doesn’t slow down. Scans run weekly on Free, every 24 hours on Protect, every 12 hours on Repair and every hour on Fortify. Send the alerts to an inbox someone actually reads.

Check 3: Use a malware cleaner
Remove malware fast, then close the way it got in. Every hour it stays is another hour of infected visitors and search warnings, and cleaning by hand is risky because malicious code is often disguised as a real plugin’s.
MalCare’s one-click cleanup comes with Repair and Fortify, and Fortify adds unlimited manual fixes from our security team. Attackers often leave a way back in, so after any cleanup:
- Reset passwords for WordPress and every related service, and delete unknown accounts
- Revoke application passwords and API keys you didn’t create
- Change your security keys and salts to kick out stolen login sessions
- Clear your caches so visitors stop getting the infected version
- Patch the weakness that let the attacker in
Check 4: Scan for vulnerabilities
Use a WordPress vulnerability scanner to find out when a plugin you run has a known flaw. Once a flaw goes public, bots start hunting for sites that haven’t updated, and that window is when many sites get hit.

Every MalCare plan includes vulnerability alerts, and Vulnerability Shield flags high-impact flaws straight away instead of saving them for your digest. When no fix exists yet, MalCare’s virtual patches block the attack, right away on paid plans and after seven days on Free.

Good to know: scanners catch known flaws, and finding brand-new ones takes penetration testing.
Check 5: Choose plugins and themes wisely
Install only maintained code from WordPress.org or the developer’s own site. Every plugin is code you’re trusting with your whole site, so check who maintains it and how often it’s updated.
Never install nulled plugins or themes, the pirated copies of premium tools. Installing them to save on licensing costs is like rolling out the red carpet to malware, since they’re a favorite way to sneak in backdoors and they never get security updates.
Check 6: Apply updates regularly
Keep WordPress core, plugins and themes current from Dashboard, then Updates. Most security updates exist because someone found a flaw, and once the fix is public, so is the flaw.

WordPress applies minor core releases automatically, and major ones deserve a quick test on staging with a backup ready. Check premium plugins against the vendor’s latest version now and then, because an expired licence can quietly stop updates.
Secure your accounts
A firewall keeps bots out of your code, but attackers would much rather log in through the front door with a real password. That makes your accounts the next thing to lock down.
Check 7: Use strong passwords
Use long, random passwords from a password manager. Bots crack weak ones by running through huge lists of common words and patterns, and a manager creates and remembers strong ones for WordPress, hosting, email, your domain registrar and MalCare.

WordPress flags weak passwords, but anyone can click past the warning, so set a clear rule for your team.
Check 8: Use unique passwords
Give every account its own password, and every person their own login. When another site leaks passwords, attackers try them everywhere, which is called credential stuffing. Using unique passwords helps contain the damage, much like stopping a forest fire from spreading.
Separate logins also show who changed what and let you cut off one person without locking out everyone.
Check 9: Set up two-factor authentication
Turn on 2FA for every admin. It asks for a code from your phone after the password, so a stolen password alone isn’t enough, which makes it one of the most effective checks on this list.
MalCare includes 2FA for 2 admin users on Free, up to 5 on Protect, up to 15 on Repair and every admin on Fortify. Test a fresh login while your current session stays open, so a mistake can’t lock you out. When comparing WordPress 2FA plugins, check their recovery options and enforcement settings.
📝 Note: Application passwords used by connected tools aren’t covered by 2FA. Review them on each user’s profile and revoke any you don’t need.
Check 10: Limit failed login attempts
Lock out anyone who keeps guessing wrong. WordPress allows unlimited attempts by default, which is exactly what brute-force bots count on, and your bank locks you out after a few wrong tries for the same reason.

MalCare’s login protection does this automatically, on your login page and XML-RPC. A real person who gets locked out passes a quick CAPTCHA and they’re back in, while bots stay stuck, and you can whitelist your team’s IP addresses.
Check 11: Use role management to limit user privileges
Give every user the least access their job needs. A writer needs Editor, which covers content without touching plugins or settings, so review roles under Users, then All Users and keep administrators to a bare minimum.

An account that suddenly gains admin access without approval is one of the clearest signs of a hack, so look into it the moment you spot it.
Check 12: Sign out inactive users automatically
Set an inactivity timeout with a session-management plugin. A session left open on a shared or stolen laptop hands over your dashboard with no password needed.
For your own account, Users, then Profile, then Log Out Everywhere Else ends your other sessions. Clear out dormant accounts too, since nobody notices when one gets borrowed.
Check 13: Remove open user registration
Uncheck “Anyone can register” under Settings, then General, unless visitors genuinely need accounts. Every account is a foothold for attacks that need a logged-in user.
If you need sign-ups, keep the New User Default Role at Subscriber, and check WooCommerce or membership plugin settings too, since they can manage registration on their own.
Check 14: Install an activity log
Record who changes what on your site. WordPress doesn’t keep a log, so when a setting changes and nobody knows why, you have nothing to go on.

MalCare’s activity log lives in your MalCare account, off your server, so attackers trying to erase their tracks can’t reach it. It comes with Repair, with 7 days of history, and Fortify, with 60.
Harden your files and services
With accounts locked down, the next layer is the server itself. WordPress hardening limits what an attacker can read, change or run, so even if they get in, there’s far less they can do.
Check 15: Use SSL
Run every page on HTTPS. Without it, anyone on the same public Wi-Fi can read passwords and form submissions as they pass, and browsers label your site “Not secure”.

After the switch, check login, checkout and public pages for mixed content that still loads over HTTP. HTTPS protects the connection only, so the padlock says nothing about whether the site is clean.
Check 16: Use SFTP instead of FTP
Switch every file transfer login to SFTP. Plain FTP sends your password and files unencrypted, while SFTP encrypts them and is just as easy to set up.

Remove old contractor access while you’re at it, and give each person their own login.
Check 17: Secure WordPress file permissions
Use 755 for folders and 644 for files, and lock wp-config.php to 440 or 400. Loose permissions let compromised code rewrite files it should never touch, and wp-config.php holds your database password.

Never use 777. Going too strict breaks updates and uploads, so ask your host to set ownership and permissions together.
Check 18: Use security headers
Add headers built for your own site. A Content Security Policy limits where scripts can load from, and HTTP Strict Transport Security forces browsers to use HTTPS.
Copying a generic set can break payment widgets and embeds, so have your developer test a Content Security Policy in report-only mode first.
Check 19: Disable file editing
Turn off the dashboard’s theme and plugin editor. If an attacker steals an admin login, it’s the fastest way to plant malicious code.
Use MalCare’s Disable File Editors hardening option, or add this line to wp-config.php above “That’s all, stop editing!”:
define( 'DISALLOW_FILE_EDIT', true );
Keep a copy of the file and FTP access handy in case of a typo.
Check 20: Block plugin installations
Stop new plugins and themes from being added on shared sites. Sooner or later, someone installs one nobody vetted, and an attacker with a stolen login will try the same.
MalCare’s Block Plugin/Theme Installation option handles this. Good to know: it blocks updates too, so plan how you’ll patch before you switch it on.
Check 21: Disable directory browsing
Stop your server listing folder contents. A visible file list hands attackers a map of your plugins, versions and sometimes forgotten backups.
Apache uses .htaccess while Nginx ignores it, so ask your host to apply the right rule if you don’t manage the server.
Check 22: Block XML-RPC
Switch off XML-RPC unless a tool you use needs it. Attackers love it because one request can test many passwords at once, though the WordPress mobile app and Jetpack may still rely on it.
If you need it, keep it on and let login protection cap the abuse. Leave the REST API and admin-ajax.php alone, because blocking them breaks the editor, forms and carts.
Check 23: Disable PHP execution in specific folders
Block PHP from running in your uploads folder. Attackers disguise malicious PHP files as uploads, then visit them to take over the site.
MalCare’s Block PHP Execution in Untrusted Folders option covers uploads and similar folders. Check your media still loads afterwards.
Maintain and review
Security isn’t a one-time job, because plugins change, people leave and hosting moves on. These last four checks keep your protection current and your way back ready.
Check 24: Backup your website
Back up daily, or in real time if you run a WooCommerce store, and keep copies off your server. Every other measure can fail, and hosts can delete an infected site without much warning.
We recommend BlogVault, our backup service, for off-site backups you can restore even when your site won’t load. Test a restore on staging now and then, because an untested backup is only a hope.

Check 25: Remove unused plugins, themes and accounts
Review your plugins, themes and users once a month, and delete what you don’t use. Deactivating isn’t enough, because the files stay on your server and can still be reached.
Watch for fake plugins with one or two files, an odd name and no WordPress.org listing. Those signs alone don’t prove anything, so scan before you act.
Check 26: Choose secure hosting
Pick a host that patches its servers and keeps sites isolated. Read reviews, test support and ask what they cover. Avoid cutting costs here, as going for a cheap host might end up being a costly mistake down the road.
Many believe that hosts are responsible for security, but often, malware attacks stem from site vulnerabilities. Your host secures the server, and your plugins, passwords and settings are still yours to protect.
Check 27: Keep your devices malware-free
Keep the computers you manage your site from clean and updated. Strengthening your site won’t help if there’s a keylogger on your computer, since malware on your device can grab passwords and even steal logged-in sessions.
If a site keeps getting reinfected after every password change, check the devices of everyone with access next.
Security myths to skip
Some popular tweaks feel like security but only hide information, so give your time to the checks above first.
- Changing the database prefix may slow some automated attacks, but it doesn’t fix the flaw behind them and can break a live site.
- Changing the login URL cuts bot traffic, but it’s no substitute for login protection and 2FA, and misplacing or forgetting the URL makes recovery maddeningly difficult.
- Password-protecting all of wp-admin can break the AJAX requests behind forms and carts.
- Hiding the WordPress version is another false security trick, because the vulnerable code is still there.
Why WordPress security matters
When someone fills in a form or pays on your site, they’re trusting you with their details. A hack can leak that data, send visitors to scams and stop sales cold, and the fallout includes lost customers, revenue, brand damage and even legal trouble. Small sites aren’t spared either, because bots don’t check your traffic before they attack.
FAQs
What should a WordPress security checklist include?
A firewall, malware scanning, vulnerability alerts, updates, strong and unique passwords, 2FA, sensible roles, file hardening and tested backups, plus someone who acts on the alerts.
Is WordPress insecure?
No. WordPress is a secure platform, but its popularity makes it a big target, and many hacks come through outdated plugins, weak passwords or skipped basics.
Can I secure WordPress without plugins?
Partly, through your host and server settings, but you’d still need scans, log reviews, backups and cleanups done by hand. That’s hard to keep up, which is why we built MalCare to handle them together.
What are the most common WordPress security mistakes?
Ignoring updates, reusing passwords, installing nulled plugins, skipping activity logs and keeping backups nobody has ever tested.
Does following a checklist prevent every hack?
No checklist can promise that, but it lowers your risk a lot and helps you spot and recover from problems much faster.
Conclusion
WordPress security is not a mystery, and so many of the hacks we clean up trace back to a basic on this list. Install MalCare to cover the firewall, scans, vulnerability alerts and login protection in one go, then work through your accounts, files and backups.
Come back to this checklist whenever you add a plugin, change your team or switch hosts, and the bots will move on to an easier target.



