Skip to content
Hire me on Fiverr

How to Secure a WordPress Site: 14 Steps for 2027

A 14-step checklist to secure a WordPress site in 2027, from updates and two-factor logins to file settings, backups and a firewall.

By , freelance web developer

Updated 6 min read

On this page8 sections
  1. Why WordPress sites get hacked
  2. WordPress security basics: steps 1 to 5
  3. Secure your WordPress settings: steps 6 to 10
  4. WordPress security for the worst case: steps 11 to 14
  5. How to secure a WordPress site in Australia
  6. Common questions about how to secure a WordPress site
  7. How I can help
  8. Sources

Short answer: To secure a WordPress site, keep WordPress, plugins and themes updated, use strong passwords with two-factor login, delete what you don’t use, lock down a few settings and keep off-site backups. The 14 steps below close the gaps attackers use most. I’m Jay, a freelance web developer in Melbourne and a Fiverr Pro with 8+ years of experience, and I clean and secure hacked WordPress sites for small businesses.

Most steps to secure a WordPress site take minutes in your dashboard. A few need access to your hosting or files, so I’ve marked those. That way, you know when to ask your host or developer.

Why WordPress sites get hacked

WordPress itself is well maintained. Most hacked sites I clean got in through the same few gaps: an old plugin, a weak or reused password, or an admin account nobody uses any more. Bots scan the web for these gaps all day. So a small local site is just as likely to be hit as a big brand.

The good news is that it’s simple to secure a WordPress site. The official Hardening WordPress guide covers the technical side, and the steps below put it in order for a business owner.

WordPress security basics: steps 1 to 5

1. Update WordPress, plugins and themes

Updates fix known security holes. Turn on automatic updates for minor WordPress releases and for plugins you trust. Then check the Updates screen once a week. If your site takes bookings or sells online, test big updates on a staging copy first.

2. Delete plugins and themes you don’t use

A deactivated plugin still leaves its files on your server. So delete anything you don’t use, and keep only one spare default theme. Also, avoid plugins that haven’t been updated in a long time.

3. Use strong, unique passwords

Give every account a long password that isn’t used anywhere else. A password manager makes this easy. Don’t forget your hosting, database and email accounts, because an attacker can use any of them to reach your site.

4. Turn on two-factor login

Two-factor login asks for a code from your phone as well as your password. Even if a password leaks, the attacker still can’t get in. Most security plugins add it for free.

5. Get rid of the “admin” username

Bots try “admin” first. So create a new administrator with a unique username, log in with it, then delete the old account and give its posts to the new one.

Secure your WordPress settings: steps 6 to 10

6. Use HTTPS everywhere

Your whole site, including the login page and dashboard, should load over HTTPS. Most hosts include a free SSL certificate. After that, set your WordPress and site address to https in Settings.

7. Turn off the built-in file editor

WordPress lets admins edit theme and plugin code from the dashboard. If an attacker gets in, that editor lets them add harmful code in seconds. Add this line to wp-config.php to turn it off (needs file access):

define( 'DISALLOW_FILE_EDIT', true );

8. Set safe file permissions

Folders should normally be set to 755 and files to 644. The wp-config.php file holds your database password, so the official guide suggests making it readable only by you and the web server. Your host can check this for you (needs hosting access).

9. Give each user the lowest role they need

Not everyone needs to be an Administrator. A staff member who writes blog posts only needs the Author or Editor role. Fewer admins means fewer accounts that can break everything.

10. Limit login attempts

Bots guess passwords thousands of times. A security plugin or your host’s firewall can block an address after a few failed logins. For extra safety, you can also put a second password in front of the login page (needs hosting access).

WordPress security for the worst case: steps 11 to 14

11. Keep off-site backups you have tested

Back up your files and database every day, and store copies away from your hosting account. Keep a few older copies as well, because a hack can sit unnoticed for weeks. Most importantly, restore a backup once to prove it works.

12. Add a firewall

A web application firewall blocks bad traffic before it reaches WordPress. You can use a security plugin, your host’s firewall or a service in front of your site such as Cloudflare.

13. Choose hosting that keeps your server updated

Cheap hosting often runs old PHP versions and puts many sites on one shared server. Pick a host that updates PHP and isolates each site. My guide to the WordPress PHP upgrade explains what to check.

14. Scan for malware and watch for changes

Run a malware scan every week, and set up Google Search Console, which emails you if Google finds a security issue. If anything looks wrong, follow my steps for what to do if your WordPress website is hacked.

How to secure a WordPress site in Australia

The Australian Signals Directorate’s small business cyber security page starts with the same three basics as this guide: turn on multi-factor authentication, update your software and back up your information. It also has free guides and a place to report a cyber incident through ReportCyber.

If most of your customers are in Australia, hosting in Sydney or Melbourne also keeps your site fast for them. As a result, you get speed and security from the same move to better hosting.

Common questions about how to secure a WordPress site

Are WordPress sites secure?

Yes, when they’re looked after. WordPress gets regular security releases, but you still need to install them. Most problems come from old plugins, weak passwords and cheap hosting, not from WordPress itself.

Which WordPress security plugin should I use?

Wordfence, Solid Security and Sucuri are popular choices, and each covers firewall rules, login limits and scans. However, pick one, not several, because two security plugins can clash and slow your site down.

How often should I check my WordPress security?

Check updates weekly and backups monthly. Then do a full review, like the checklist above, at least twice a year or after any big change to your site.

Is my small business website really a target?

Yes. Attacks are automated, so bots don’t care how big you are. They look for known gaps and use any site they can get into to send spam or spread malware.

How I can help

If you’d rather have someone secure your WordPress site for you, my website security audit checks every step above and sends you a report ranked by risk. On Fiverr, the audit with a malware scan is $120 USD, and a package with every issue fixed plus 30 days of care is $600. If your site is already hacked, I offer malware removal, and my website maintenance keeps it safe each month.

For a wider view beyond WordPress, read how to keep your website secure after launch.

Sources

Last updated: 2 December 2026.

Keep reading

All articles

Website Security

How to Keep Your Website Secure After Launch

Launching your website is just the beginning. As a web developer with over 8 years of experience, here is my practical guide to keeping your website secure, preventing hacks, and protecting your business data.

6 min read

Hire me on Fiverr★ 4.9