Originally published as an early WordPress security guide and substantially updated in September 2026. The original community discussion-including readers who shared their own hacking experiences-remains below.
WordPress security is not about making a site impossible to attack. It is about reducing avoidable risk, limiting damage and making recovery easier if something goes wrong.
Keep WordPress, Themes and Plugins Updated
Outdated software is one of the most preventable security risks on a WordPress site. Keep WordPress core, active themes and plugins updated.
Remove plugins and themes you no longer use instead of leaving abandoned code sitting on the server indefinitely.
Use Strong, Unique Passwords
Use a different password for your WordPress account than you use for email, hosting, social media or any other service.
Long, randomly generated passwords stored in a reputable password manager are generally more practical than trying to invent and remember complicated patterns yourself.
If one service is compromised, unique passwords help prevent attackers from reusing the same credentials elsewhere.
Enable Two-Factor Authentication
Two-factor authentication adds another barrier even if someone obtains your password. If your security plugin, hosting provider or login system supports it, enable it for administrator accounts.
Use HTTPS Everywhere
Your site should use HTTPS so information exchanged between a visitor's browser and your website is encrypted in transit.
HTTPS is important, but it does not by itself make a WordPress installation secure. You still need strong credentials, updates, backups and appropriate access controls.
Protect Administrator Accounts
Only give administrator access to people who genuinely need it. Use the lowest WordPress role that allows each person to do their work.
Remove accounts for former contractors, employees or collaborators who no longer need access. Review users periodically for unexpected accounts or role changes.
Back Up the Site
A security plan without recoverable backups is incomplete.
Keep automated backups of both the database and site files. Ideally, at least one backup copy should exist somewhere other than the same server as the live site.
Know how to restore the backup before an emergency happens.
Use a Reputable Security Layer
A security plugin such as Wordfence can add useful features including firewall protection, login controls, scanning and alerts. Your hosting company may also provide security features at the server level.
Do not assume installing a plugin means security is finished. The system still needs to be configured, updated and monitored.
Watch for Signs Something Is Wrong
Potential warning signs can include:
- unexpected administrator accounts;
- password or email changes you did not make;
- new pages, posts or files you do not recognize;
- redirects to unfamiliar websites;
- browser or search-engine malware warnings;
- unusual server resource usage;
- messages from your host about malicious files; or
- a sudden inability to log in.
A traffic spike by itself does not necessarily indicate hacking, so investigate before drawing conclusions.
Be Careful With Plugins, Themes and Downloads
Install software from sources you trust. Avoid pirated or "nulled" premium themes and plugins. They can contain malicious code and do not receive normal support or security updates.
Before installing a plugin, check whether it is actively maintained and whether you genuinely need it.
Secure the Rest of the Account Chain
Your WordPress login is not the only account that matters. Protect the email account tied to WordPress, your domain registrar, hosting account, CDN, backup service and any administrative tools connected to the site.
If an attacker controls your email or domain registrar, a strong WordPress password alone may not save the site.
If You Think the Site Has Been Hacked
Do not simply change one password and assume the problem is solved. Contact your host, identify and remove malicious files, review users, rotate relevant passwords and keys, update software, and restore from a known-clean backup if appropriate.
For serious compromises, professional cleanup may be worth the cost-especially when the site handles customer information or generates business revenue.
Security Is Ongoing Maintenance
The safest WordPress site is usually not the one with the most security plugins. It is the one where updates happen, access is controlled, backups work and someone pays attention when something unusual occurs.
For related guidance, see 5 Types of WordPress Plugins Most Bloggers Actually Need.

Emma Shearer says
Great blog post. It's always important to keep your login details safe! I had once had my full computer hacked as a teenager before I started blogging but that was because I stupidly clicked on a link. Ended up being a girl in my year at school had created a virus to specifically target me. Her and several others had been bullying me at the time so she made and sent the virus to try get more stuff to pick on me for 🙁
Kathleen Bailey says
Oh wow. Bullying sure has changed over the years but it unfortunately never goes away. There are so many people (not just teenagers) who don't know how to keep info safe.
Nayab Khan says
Hey Kathleen,
Its really important to keep our blog secure not only for the sake of ourselves but for the sake of our user privacy. NO doubt SSL and keeping your blog plugins and themes updated are the best ways to prevent. Obviously a good strong password as well as you mentioned above.
There are a few more things one can do to secure their blogs like backing up your site regularly to prevent the data loss an automatic backup can be scheduled with the help of back up plugins.
Fixing the error messages that displays the server path and not having an anti virus on your computer can also make your blog vulnerable to all sort of attack.
A Great post Kathleen.
Diane Hoffmaster says
Hackers drive me nuts! I try hard to do all of these things and keep my backups done. And my fingers crossed!
LauraOinAK says
I haven't tried Wordfence yet, but did have to pay someone to clean up after a hacker got in. It really makes you wonder what they stand to gain by doing it.
Dawn McAlexander says
The one thing that I fear the most about my blog is that it will be hacked. I have taken some strong measures to try and prevent that, but who knows? Maybe it isn't as safe as I thought.