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
Update and remove
Update WordPress, plugins and themes, and delete anything you don’t use, including inactive themes.
Tighten logins
Use strong unique passwords, two-factor authentication, and limit login attempts. Give each person the lowest role they need.
Turn off the file editor
Add the line below to wp-config.php so nobody can edit code from the dashboard.
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.
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.