Hosting & WordPressOctober 22, 2026

Learning how to secure WordPress website from hackers is less about buying a magic plugin and more about closing the small gaps that bots probe every single day. WordPress powers a huge share of the web, which is exactly why automated scanners test WordPress sites around the clock, hunting for one outdated plugin or one weak password. The encouraging truth is that hackers overwhelmingly succeed against neglected sites, not well-maintained ones — and most of the protection you need costs nothing but a little attention.

This guide walks you through the process in the order an experienced site owner would actually do it. You will learn what matters, what you can safely ignore, and which mistakes turn a small problem into a lost weekend. Work through the steps in order, test as you go, and by the end your site will be a much harder target than the thousands of sites bots compromise every month.

Start With Updates: The Highest-Leverage Habit

The single most effective security habit is updating. Most real-world WordPress compromises exploit plugins and themes with known vulnerabilities that were fixed months earlier. An unpatched site is an open invitation that bots find automatically, often within hours of a vulnerability becoming public.

Enable automatic updates for WordPress core, plugins, and themes wherever your setup allows. In your dashboard, go to Dashboard > Updates and turn on automatic updates for everything you trust, then check the same screen once a week anyway. Automatic updates cover the routine patches; your weekly glance catches the plugin that failed to update or the theme your host held back.

Then delete, not just deactivate, every plugin and theme you do not use. Unused code sitting on your server can still be exploited even when it is switched off, because the files are still reachable. The same goes for pirated premium plugins and themes, which often ship with backdoors already baked in — a free copy of a £60 plugin is the most expensive bargain in WordPress.

Secure WordPress website login screen with two-factor authentication on a phone

  • Enable automatic updates for core, plugins, and themes
  • Delete unused plugins and themes entirely, not just deactivate them
  • Never use pirated premium plugins or themes
  • Check for updates weekly even with auto-updates switched on

Lock Down the Login Page

Your login page is the front door, and bots rattle it day and night. A typical small site can see hundreds of failed login attempts in a single week, almost all of them automated. The goal is simple: make sure a stolen password alone is never enough to get in.

Start with the username. If your admin account is still called “admin”, change it today — it is the first guess every bot tries. Create a new administrator account with an unusual username, move your content across, and delete the old one. Then use long, unique passwords stored in a password manager. A 16-character random password that you never reuse is worth more than any clever trick you try to memorise.

Turn on two-factor authentication for every admin

Two-factor authentication (2FA) is the single change that stops most account takeovers cold. Even if a password leaks in a breach somewhere else, the attacker still needs the six-digit code from your phone. Most security plugins include 2FA, or you can use a dedicated authenticator app such as Google Authenticator or Authy. Set it up for every administrator account, not just your own — one unprotected admin undoes the whole thing.

Add a plugin or host feature that limits login attempts and blocks repeated failures. After five failed tries from one address, that address should be locked out for an hour or more. Some owners also move the login address to a custom URL, which cuts bot noise dramatically, though this is a tidy-up measure rather than real protection on its own.

  • Banish the username admin everywhere on the site
  • Use long unique passwords kept in a password manager
  • Turn on two-factor authentication for all admins
  • Limit login attempts and block repeat offenders

Choose Plugins and Themes Like a Security Decision

Every plugin is code you invite onto your server, so vet it like a hire. Install only from the official WordPress directory or reputable sellers, check that it is actively maintained and recently updated, and look at ratings and the size of its user base. A plugin with 100,000 installs and an update last month is a safer bet than a clever tool nobody has touched in two years.

Remove plugins that duplicate features, and prefer one well-maintained security plugin over a pile of overlapping tools. Fewer, better-maintained components means fewer vulnerabilities and fewer surprise conflicts during updates. Before installing anything new, ask one question: does this plugin earn its place by doing something nothing else on the site already does?

Installing security updates on a WordPress dashboard to secure your website

  • Install only from official or reputable sources
  • Check last-updated dates before installing anything
  • Prefer actively maintained plugins with many users
  • Remove duplicate and abandoned tools

Backups: The Safety Net That Makes You Brave

Backups do not prevent hacks, but they decide whether a hack is a bad afternoon or the end of your site. Set up automatic backups stored off your server — with your host or a cloud service such as Google Drive or Dropbox — and keep at least a few weeks of history. A backup sitting on the same server as your site is no backup at all when that server is the thing that gets compromised.

Test your restore process once, on a staging copy, before you ever need it for real. A backup you have never restored is a hope rather than a plan, and the time to discover a corrupt backup file is not during an emergency at midnight. This is also why you should always back up your WordPress site before updating — a clean restore point turns a bad update into a five-minute rollback.

  • Automate backups stored off the server
  • Keep several weeks of backup history
  • Test restoring a backup at least once
  • Back up before every major update or change

Add a Security Plugin, SSL, and the Right Hosting

A reputable security plugin adds a firewall, malware scanning, and login protection in one package, and alerts you when something changes unexpectedly. Install one, run the first full scan, and work through its hardening checklist rather than enabling every option blindly. Wordfence and Solid Security are the two names most site owners start with; either one is fine, and running both at once is not better — pick one and learn it properly.

Next, the foundations: an SSL certificate so logins and form data travel encrypted, and a host that patches its servers and isolates accounts from each other. If your browser still flags your site, our guide to fix the WordPress Not Secure warning walks through the certificate and redirect steps in detail. Cheap hosts that neglect their own security undermine everything you build on top of them, so when renewal time comes, treat your host’s security record as a feature worth paying for.

Automatic cloud backups protecting a secure WordPress website

  • Install one trusted security plugin and run a full scan
  • Work through its hardening checklist step by step
  • Use SSL so all traffic is encrypted
  • Pick a host with a real security track record

What to Do If Your Site Is Already Hacked

Finding out your site is hacked feels awful, but it is fixable, and panicking makes it worse. First, stay calm and change every password connected to the site — WordPress admin, hosting panel, FTP, and database — from a clean device. Then put the site into maintenance mode so visitors stop landing on compromised pages while you work.

Run a full scan with your security plugin and check three places by hand: the Users list for accounts you did not create, the Posts and Pages lists for content you did not write, and the Plugins list for anything unfamiliar. Hackers often create a quiet second admin account so they can walk back in after you clean up. If the scan finds infected files and you are not confident removing them by hand, restore from your last clean backup instead of picking through files one by one — that is exactly what backups are for.

If the infection keeps coming back after a restore, the entry point is probably still open: an outdated plugin you forgot, a theme file with a hole, or a password that leaked. Update everything, reset every password again, and if you are stuck, ask your host’s support team. They deal with compromised sites every day and can often spot the entry point in minutes.

A 15-Minute Monthly Security Routine

Security is not a one-time project; it is a habit that takes about fifteen minutes a month. Put a recurring reminder in your calendar and run through the same short list: check Dashboard > Updates and apply anything pending, glance at the Users list for strangers, review your security plugin’s recent alerts, and confirm your latest backup actually ran.

Once a quarter, go one step further: delete any plugin you have not used in three months, review which user accounts still need admin rights, and test a backup restore on staging. Sites that get this light, regular attention almost never become the horror stories you read about. The owners who get hacked are rarely careless people — they are busy people who meant to update “next week” for six months.

Frequently Asked Questions

What is the most common way WordPress sites get hacked?

Through outdated plugins and themes with known vulnerabilities, followed by weak or reused passwords. Bots scan for both automatically, which is why updates and strong logins stop the majority of attacks.

Do I really need a security plugin?

A security plugin is not strictly required, but it makes good practice easy: firewall rules, scans, login limits, and alerts in one place. For most site owners it is the simplest way to stay protected consistently.

Can good hosting replace security plugins?

No, they cover different layers. Your host secures the server, while updates, passwords, and plugin choices are yours. Strong sites combine a reputable host with disciplined maintenance and at least basic security tooling.

How do I know if my site is already hacked?

Warning signs include unknown admin users, strange posts or redirects, Google warnings, and sudden traffic drops. Run a full scan with a security plugin and check your user list if anything feels off.

How often should I update WordPress?

Apply core, plugin, and theme updates as soon as they appear, or let automatic updates handle them. At minimum, check Dashboard > Updates once a week — security patches should never wait for a convenient month.

You now have a clear, practical path to secure your WordPress website from hackers, from updates and logins through backups and hosting. None of the steps require advanced technical skills; they require patience, a good backup habit, and the willingness to test your work before declaring it done. Work through the steps in order, check your site the way a real visitor would, and keep the monthly routine going afterwards. That steady, careful approach is what separates websites that quietly grow from websites that lurch from one emergency to the next.

Sarah Mitchell
Written by Sarah Mitchell

Sarah is a web hosting specialist with 8 years of experience running WordPress sites. She writes practical hosting and WordPress guides.

Similar Posts