are you looking for a new website for your business?

discover how we help you!

WordPress runs over 40% of the web. That’s a big reason to choose it, and it’s also why attackers love it. Most attacks aren’t personal. Automated bots scan millions of sites every day, looking for an out-of-date plugin, a weak password or a forgotten admin account.

This week we cleaned malware off a client’s site after a routine scan by their host picked it up. The owner had no idea anything was wrong. The site looked normal, but hidden code was running in the background. Problems like this can get your site blacklisted by Google, flagged by browsers as unsafe, or used to steal your customers’ details.

The good news is that most attacks can be prevented. Here are the steps every WordPress site owner should take.

12 steps to protect your WordPress site

  • 1
    Keep everything updated Out-of-date plugins are the most common way in. Update WordPress core, your theme and every plugin as soon as updates are released. Many updates fix security holes that attackers already know about. Check at least once a week, or switch on automatic updates for minor releases.
  • 2
    Delete plugins and themes you don’t use A deactivated plugin can still be exploited if its files are on the server. If you’re not using it, delete it. Keep one default WordPress theme as a fallback and remove the rest.
  • 3
    Only install from trusted sources Never use “nulled” (pirated) premium plugins or themes. They often come with malware built in. Download from WordPress.org or straight from the developer, and check that a plugin is actively maintained before you install it.
  • 4
    Use strong passwords and two-factor authentication Every account needs a long, unique password. A password manager makes this easy. Add two-factor authentication (2FA) so that a stolen password alone isn’t enough to log in.
  • 5

    Don’t use “admin” as a username Bots try “admin” first. If your main account uses it, create a new administrator with a different name, move your content to it, and delete the old one.

  • 6
    Limit login attempts Brute-force attacks try thousands of passwords in a row. A security plugin can lock out an IP address after a few failed attempts, which stops this dead.
  • 7
    Give people only the access they need Not everyone needs to be an Administrator. Use Editor, Author or Shop Manager roles where they fit. Remove accounts for staff, freelancers or developers who no longer work on the site.
  • 8
    Install a security plugin and firewall A good security plugin such as Wordfence, Solid Security or Sucuri adds a firewall, scans for malware and alerts you to suspicious activity. Set it up properly and act on its warnings.
  • 9
    Take regular backups and store them off-site Backups are your safety net. Run them automatically, daily if your site changes often. Keep copies away from your web server, for example in cloud storage. Test a restore now and then, because a backup you can’t restore is no use.
  • 10
    Choose good hosting A quality host keeps servers patched, isolates sites from each other, runs malware scans and offers easy backups. Cheap hosting often cuts corners on exactly these things.
  • 11
    Use HTTPS everywhere An SSL certificate encrypts data between your site and its visitors, including login details and payment information. Most hosts now include one free. Make sure every page loads over https://.
  • 12
    Lock down the dashboard Turn off the built-in theme and plugin file editor. If someone gets into your dashboard, this stops them editing your site’s code from there. Add this line to wp-config.php: define( ‘DISALLOW_FILE_EDIT’, true ); You can also change the default login address (/wp-admin) to cut down on bot traffic.

Signs your site may have been hacked

Malware is often designed to stay hidden, so watch for these warning signs:

  • Visitors are redirected to spam, gambling or adult sites, sometimes only on mobile or only when they arrive from Google
  • Google shows “This site may be hacked” in search results, or Chrome displays a red warning page
  • Strange pages, links or foreign-language text appear in Google results for your site
  • Admin users you don’t recognise appear in your dashboard
  • The site suddenly becomes slow, or your host warns you about high resource use
  • Your host or security plugin reports malware or suspicious files
  • Emails from your domain start landing in spam, or customers say they’ve received odd messages

What to do if you think you’ve been hacked

Act quickly, but don’t panic. Work through these steps:

  • Contact your web host. Many can scan the site and help identify infected files.
  • Change every password: WordPress users, hosting control panel, FTP/SFTP and database.
  • Run a full malware scan with a security plugin or a service such as Sucuri.
  • Remove the infection, or restore a clean backup taken before the problem started.
  • Update everything and remove any plugin or theme that may have let the attacker in.
  • Check for admin accounts you didn’t create and delete them.
  • If Google has flagged your site, request a review in Google Search Console once it’s clean.

If this feels out of your depth, get professional help. A partial clean-up often leaves a hidden backdoor, and the hackers simply come back.

Security is ongoing, not one-off

Keeping a WordPress site safe isn’t something you do once and forget. It takes regular updates, backups and checks. For busy business owners, that’s easy to let slip.

At Samphire Web Agency, we look after WordPress sites so you don’t have to: updates, backups, security monitoring and fast help if something goes wrong. If you’d like your site checked or want to talk about ongoing care, call us on 0774 869 0019 or email at hello@samphire.agency

post tags :

Leave A Comment