Most hacked WordPress sites were running outdated plugins or used weak passwords. These steps prevent the vast majority of problems.
Keep everything updated
Update WordPress, themes and plugins as soon as updates are available. WP Toolkit can do this automatically.
Remove what you don't use
Delete (not just deactivate) unused themes and plugins. Only install plugins from the official directory or reputable developers — never "nulled" premium plugins.
Strong logins
- Use a unique password and a username other than "admin".
- Turn on two-factor sign-in with a security plugin.
- Limit login attempts.
Use HTTPS
Make sure your free SSL certificate is active and the site address in Settings → General starts with https://.
Keep backups
Take regular backups and keep a copy off the server. See Backing up and restoring your website.