- Update WordPress, plugins and themes every week (or turn on automatic updates).
- Use a strong, unique password and never use "admin" as the username.
- Install a security plugin like Wordfence and turn on two-factor login.
- Only install plugins from wordpress.org or trusted developers. Never use "nulled" (pirated) themes.
- Delete plugins and themes you don't use.
- Keep backups — see How to restore a backup.