The hardening checklist
Hardening means switching off things your site doesn't need, so attackers have fewer ways in. The hardening checklist in your control panel does each step for you with one click, checks your live site afterwards, and lets you undo any step. This page is the full list.
Turn on a step
- Open Account → Hosting → your site → Security.
- Scroll to Hardening checklist and click a site to open its steps.
- Click Turn on next to a step. Or click Turn on all to do every open step on that site.
- Wait a few seconds. We make the change, load your site to check it still works, and show the new state.
If your site doesn't respond as expected after a change, we put the previous settings back straight away and tell you which step didn't take. Your site is left exactly as it was.
Undo a step
- Open the site under Hardening checklist.
- Click Undo next to the step, then Undo again to confirm.
Undoing a step lowers your security score until you turn it back on.
The steps
Every WordPress, PHP, Laravel and static site gets the first two, and WordPress sites get all six. Node and Python apps and redirects have no steps, because they don't serve files through .htaccess.
| Step | What it does | Turn it off if |
|---|---|---|
| Security headers | Tells browsers to refuse common tricks, such as showing your site inside someone else's page | Another site needs to show your pages in a frame |
| Folder listings off | Stops visitors browsing the files in a folder that has no home page | You share files on purpose through a folder listing |
| XML-RPC blocked | Closes an old WordPress interface that bots use to try many passwords at once | You use Jetpack or the WordPress mobile app |
| File editor off | Removes the theme and plugin editor from WordPress admin, so a stolen login can't change code | You edit theme files from inside WordPress |
| No PHP in uploads | Stops scripts running in the uploads folder, where attackers like to hide them | A plugin tells you it runs PHP from uploads (rare, and a warning sign) |
| wp-config.php protected | Blocks web requests for the file that holds your database password | Never needed |
Security headers
We add four headers to every page your site sends. If your site already sends one of them, we leave yours alone and add only the missing ones.
| Header | Value |
|---|---|
X-Content-Type-Options |
nosniff |
X-Frame-Options |
SAMEORIGIN |
Referrer-Policy |
strict-origin-when-cross-origin |
Permissions-Policy |
camera=(), microphone=(), geolocation=() |
After the change we load your home page and confirm the headers arrive. If they don't, we undo the change.
To check them yourself, run this from a terminal on your own computer:
curl -sI https://example.ca/ | grep -i -E 'x-content-type|x-frame|referrer-policy|permissions-policy'
XML-RPC blocked and wp-config.php protected
Both add a rule to your site's .htaccess file that refuses web requests for one file. After the change, the file answers 403 Forbidden and your site keeps working as normal.
<Files "xmlrpc.php">
<IfModule mod_authz_core.c>
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
Order allow,deny
Deny from all
</IfModule>
</Files>
File editor off
We add one line to wp-config.php, above the line that says "That's all, stop editing". A copy of the file goes into file history first.
define( 'DISALLOW_FILE_EDIT', true ); // Added by Barbrick: turns off the theme and plugin file editor
No PHP in uploads
We add a .htaccess file to wp-content/uploads that refuses to run .php, .phtml and .phar files. Images and documents in that folder load as normal.
Where the changes live
Each step except the file editor is a block in a .htaccess file, marked so you can see it's ours. This example is shortened to one header:
#### Barbrick barbrick-headers START ####
<IfModule mod_headers.c>
Header always set X-Content-Type-Options "nosniff"
</IfModule>
#### Barbrick barbrick-headers END ####
Don't edit inside these markers. Use Undo instead, so the checklist stays accurate. Your own rules outside the markers are never touched. See .htaccess basics.
Set elsewhere
A step shows Set elsewhere when your site already has that protection from a plugin or a rule of your own. It counts as done. We don't change it, and there's nothing to undo here.
If something goes wrong
| What you see | What to do |
|---|---|
| "We put the previous settings back" | Your site didn't load as expected after the change. Nothing was left changed. Ask us and we'll look at why |
| "Showing an error right now, so we didn't change anything" | Your site was already failing before the change. Fix that first. See 500 Internal Server Error |
| A plugin stopped working after XML-RPC blocked | Click Undo on that step |
| You need to edit a theme file | Edit it through Files or your own editor, or click Undo on File editor off while you work |
Still stuck? Ask us and we'll walk you through it.
