Most hacked WordPress sites are not targeted individually. They are attacked automatically through old plugins and weak passwords. These steps close the common gaps.
- Keep WordPress, themes and plugins updated. Most breaches use known flaws that updates already fix.
- Delete what you do not use. Inactive plugins and themes can still be attacked.
- Use strong, unique passwords and a password manager.
- Turn on two-factor login for every administrator.
- Limit login attempts to block automated guessing.
- Give people the lowest role they need. Not everyone is an administrator.
- Do not use “admin” as a username.
- Install SSL and use HTTPS everywhere.
- Disable the built-in file editor. Add this to wp-config.php:
define( 'DISALLOW_FILE_EDIT', true ); - Set safe file permissions. Folders are usually 755 and files 644. Restrict wp-config.php more strictly, for example 640 or 600, depending on your server.
- Back up regularly and test a restore. A backup is your last line of defence.
- Monitor the site. Uptime monitoring and malware scanning show problems early.
Choose hosting that isolates accounts and keeps its software updated. Our hosting package includes backups, monitoring, emergency recovery and plugin updates.
Leave a Reply