Secure a new website and hosting account

Lock down every login, enforce HTTPS, set permissions, harden WordPress and schedule updates and backups.

TutorialIntermediate45 min to completeLast updated
On this page
  1. What you’ll need
  2. Step 1: Unique passwords everywhere
  3. Step 2: Two-factor authentication
  4. Step 3: Account email
  5. Step 4: HTTPS
  6. Step 5: Permissions
  7. Step 6: Harden WordPress (if used)
  8. Step 7: Security headers
  9. Step 8: Remove leftovers
  10. Step 9: Schedule the routine
  11. Check it worked
  12. If something goes wrong
Level
Intermediate
Time
About 45 min
Steps
9
You’ll finish with
A working result, checked

9 steps

What you’ll need

  • Client area, DirectAdmin and website admin access
  • A password manager
  • An authenticator app

Most compromises exploit a reused password or outdated software. An hour spent now closes the common routes in.

Step 1: Unique passwords everywhere

Generate new passwords for the client area, DirectAdmin, each mailbox and the website admin. Strong passwords and password managers

Step 2: Two-factor authentication

Turn it on at your domain registrar, your personal email and your website admin.

Step 3: Account email

Make sure the client area and registrar use an email address that isn’t on the hosted domain.

Step 4: HTTPS

Confirm the certificate and force HTTPS. Make your site secure with HTTPS

Step 5: Permissions

Check folders are 755 and files 644; nothing 777. File permissions explained (644, 755 and why never 777)

Step 6: Harden WordPress (if used)

Disable file editing, block PHP in uploads, limit logins and remove unused plugins and themes. How to secure a WordPress site

Step 7: Security headers

Add the safe starting set of headers. Adding security headers with .htaccess

Step 8: Remove leftovers

Delete test files, phpinfo pages, old installs, and zip or SQL files in public_html.

Step 9: Schedule the routine

Put a weekly reminder to apply updates and a monthly reminder to download a full backup. Keeping website software updated

Check it worked

Every login is unique and stored in your password manager, HTTPS is enforced, no 777 permissions or stray archives remain, and your update and backup reminders exist.

If something goes wrong

What happensWhat to do
Site breaks after adding headersRemove X-Frame-Options or Permissions-Policy if the site embeds itself or uses those features.
Locked out of WordPress by a login limiterRename the plugin’s folder to disable it. Can’t log in to WordPress: fixes for common login problems

Where this fits: DirectAdmin hosting explains the control panel every Traxio account uses, with a tour and tutorials.

Spotted something out of date or unclear? Tell us and we’ll fix it.

Keep going