Now · Action guide

How to harden your WordPress site after a hack

Cleaning a site fixes the damage. Hardening closes the way in. Without it, the same attack, or another, is likely to follow. These are the changes that make the biggest difference.

Hacked right now? Call us 0191 580 4040 Mon-Fri, 9am-5:30pm
Not urgent? Contact us

What this usually means

Most compromises come through a handful of weaknesses. Fixing those cuts the risk a long way.

  • Outdated or abandoned plugins and themes
  • Weak or reused passwords, and no second factor
  • More administrators than you need
  • Files that can be edited or executed where they shouldn’t be

Step by step

  1. Update and remove

    Update WordPress, plugins and themes, and delete anything you don’t use, including inactive themes.

  2. Tighten logins

    Use strong unique passwords, two-factor authentication, and limit login attempts. Give each person the lowest role they need.

  3. Turn off the file editor

    Add the line below to wp-config.php so nobody can edit code from the dashboard.

  4. Check permissions and uploads

    Folders are typically 755 and files 644, with wp-config.php locked down tighter. Ask your host to block PHP running in the uploads folder.

wp-config.php
define( 'DISALLOW_FILE_EDIT', true );

When to get help

Hardening is easy to get half-right. If you want it done properly, with monitoring afterwards, take a look at our WordPress security service or ask us.

Send us the details

Frequently asked questions

Is a security plugin enough?

No. It helps, but updates, strong logins and good hosting do most of the work.

Will hardening break my site?

Occasionally. Test changes carefully, and keep a backup before you start.

How often should I review this?

Check updates weekly, and review users and plugins every few months.

Call us Get in touch