Before You Self-Host: A Practical Checklist for Isolation, Backups, and Recovery
Moving your sites off shared hosting and onto your own server or a VPS is one of the best moves you can make for control, cost, and performance. But it also flips a switch: security, backups, and recovery are now your jo
Moving your sites off shared hosting and onto your own server or a VPS is one of the best moves you can make for control, cost, and performance. But it also flips a switch: security, backups, and recovery are now your job. Here is a practical checklist worth running through before your first self-hosted site goes live.
1. Isolate everything
The biggest mistake is treating the server as one flat space where every site runs as the same user with the same permissions. If one site is compromised, the attacker inherits all of them.
- Run each site under its own user or container boundary.
- Do not share database credentials across sites.
- Put a firewall in front and expose only what is needed (80/443, and SSH with keys only).
The goal is to keep the blast radius of any single compromise small.
2. Make backups boring -- and test them
A backup you have never restored is a hypothesis, not a plan.
- Follow 3-2-1: three copies, two media, one off-site.
- Automate it; nightly is a fine floor for most sites.
- Actually test a restore into a staging box every quarter. This is where you find the stale snapshots, the permission drift, and the key that rotated without the backup job noticing.
- Keep one encrypted copy in a second region, so a regional outage does not take your server and your backups down together.
3. Control access and keep logs
- Fine-grained permissions: who can deploy, who can edit, who can only view.
- Turn on audit logs so you can answer "who changed this, and when."
- Rotate SSH keys and review them on a schedule.
4. Do not rebuild the wheel by hand
You can hand-roll all of this -- isolation, a WAF, backups, monitoring -- with a pile of scripts and cron jobs. Or you can use a panel that bundles the basics so you are not maintaining glue code forever. Tools like NodeKeeper (https://www.host.mw/) are aimed exactly at this: per-site isolation, a WAF, fine-grained permissions, audit logs, plus automated backups, snapshots, and central server management in one place. Worth a look if you would rather spend your time on the actual site than on plumbing.
The short version
- Isolate every site.
- Back up automatically, and test restores.
- Control access and keep audit logs.
- Use a panel that handles the boring safety net so you can focus on building.
Run through that checklist before go-live and self-hosting stays fun instead of turning into an incident report.
Originally published by Dev.to Security. Aggregated on AIWithGhost for educational purposes — full credit and traffic to the original publisher.