Updated October 2026
WordPress itself is well maintained. The risk is almost everything around it. Patchstack’s State of WordPress Security in 2026 report counted 11,334 new vulnerabilities in the WordPress ecosystem in 2025, up 42% on the year before, and 91% of them were in plugins (most of the rest were in themes). Many had no fix available when they were made public, and attackers often start exploiting popular plugins within hours.
The good news: a handful of habits blocks most attacks. Here are fifteen steps, in order of impact.
Keep everything updated
Table of Contents
- Turn on automatic updates for WordPress core, and for plugins and themes from developers you trust.
- Use a supported PHP version. Your host can tell you which one you’re on.
- Delete what you don’t use. Deactivated plugins and old themes can still be attacked. Remove them.
Fewer, better plugins

- Keep your plugin list short. Every plugin adds risk. Ask whether each one is really needed.
- Only install from trusted sources: the WordPress.org directory or the developer’s own site. Never use "nulled" (pirated) premium plugins; they often contain malware.
- Check before you install: recent updates, active installations and good support.
- Get vulnerability alerts. Security services such as Wordfence and Patchstack warn you when a plugin on your site has a known problem.
Lock down logins
- Use strong, unique passwords with a password manager.
- Turn on two-factor authentication for every administrator.
- Limit administrator accounts. Give staff the lowest role they need, and remove accounts for people who’ve left.
- Limit login attempts, and avoid obvious usernames such as "admin".
Prepare for the worst
- Back up automatically, daily if you change content often, and keep copies somewhere other than your web server.
- Test a restore at least once, so you know your backups work.
Add layers of protection
- Use a web application firewall, from your host, a service such as Cloudflare, or a security plugin, to block attacks before they reach WordPress.
- Harden the basics: use HTTPS everywhere, and turn off the built-in file editor by adding
define( 'DISALLOW_FILE_EDIT', true );to wp-config.php.
If your site is hacked
- Stay calm and take the site offline or into maintenance mode if it’s sending visitors to harmful pages.
- Change every password: WordPress, hosting, database and email.
- Restore a clean backup from before the attack, then update everything immediately.
- Scan for leftover malware, or ask your host or a security service to clean the site.
- Find the cause, usually an outdated plugin, and fix it so it doesn’t happen again.
- Check Google Search Console for security warnings, and request a review once the site is clean.
Is WordPress the right fit for you?
If nobody has time to look after a WordPress site, a simpler platform may be safer. See our guide to WordPress alternatives, or build a fast, static business website with nothing to update using our free website builder.
Related guides
Sources
Last reviewed October 24, 2026. Startup costs are estimates; check local prices, licensing and tax rules before you commit money.



After exploring a number of the articles on your blog, I truly like
your way of blogging. I added it to my bookmark webpage
list and will be checking back in the near future.
Woah! I’m really digging the template/theme of this website. It’s simple, yet effective. A lot of times it’s challenging to get that “perfect balance” between usability and appearance. I must say you’ve done a very good job with this. Additionally, the blog loads very quick for me on Chrome. Superb Blog!
Sweet blog! I found it while browsing on Yahoo News. Do you have any
tips on how to get listed in Yahoo News? I’ve been trying for a while but I never seem to get there!
Many thanks
An impressive share! I have just forwarded this onto a coworker
who was doing a little homework on this topic. Thanks for writing such as wonderful and informative post!
Hi, Thanks for the great article! Keep up the good work. I log on to your blogs on a regular basis.
No doubt very shortly this website will be famous, due
to its quality content and informative posts!
I appreciate you sharing this post on wordpress website security. Really thank you!
Thank you for another fantastic article on securing WordPress websites from hackers. Very useful tips!