Harden WordPress security
Every Barbrick plan includes a firewall and malware scanning (Imunify360 and ModSecurity). Hardening adds protections inside WordPress itself. The WordPress section of your account lets you apply many of them in one place.
Run the security check
- Open Account → Hosting → your site → WordPress.
- Click Manage next to your site, then open the Security tab.
- Review each measure. Click Apply on the ones marked Recommended, or tick several and click Apply selected. You can undo each one.
Measures you'll see include:
| Measure | What it does |
|---|---|
| Turn off file editing in WordPress Dashboard | Blocks the theme and plugin editor in wp-admin |
| Block access to sensitive files | Hides wp-config.php, logs, readme.html |
| Block directory browsing | Hides folder lists |
| Block access to xmlrpc.php | Stops a common brute-force route |
| Block author scans | Stops bots listing your usernames |
| Forbid execution of PHP scripts in the wp-content/uploads directory | Blocks planted scripts |
| Configure security keys | Signs everyone out and invalidates old logins |
If a plugin or app depends on XML-RPC (some mobile apps and Jetpack), skip that one.
Do these yourself
- Use unique, long passwords. Don't use
adminas a username. - Turn on two-factor sign-in with a plugin such as WP 2FA, or Wordfence Login Security.
- Give each person their own account with the lowest role they need.
- Delete plugins and themes you don't use.
- Keep everything updated. See Keep WordPress updated.
- Limit login attempts with a plugin, and consider blocking
wp-login.phpexcept for your IP. See Block visitors by IP. - Turn on two-factor authentication for your Barbrick account login.
Config lines worth adding
Add these to wp-config.php, above the "That's all, stop editing" line:
// Stop file editing in the dashboard
define( 'DISALLOW_FILE_EDIT', true );
// Force admin over HTTPS
define( 'FORCE_SSL_ADMIN', true );
If your site is hacked
- Don't delete anything yet. Contact support at
[email protected]. - Restore from a clean backup. See Back up and restore WordPress.
- Change every password, including your Barbrick account, database, and FTP.
- Update everything, remove the plugin that was the way in, and rotate security keys.
If something goes wrong
- Locked out after a change: switch the plugin off in the Plugins list in your account, or see Can't reach wp-admin.
- A plugin stopped working: it may need XML-RPC or file editing. Reverse that single measure.
Still stuck? Ask us and we'll walk you through it.
