Small does not mean safe. Automated bots scan every site, not just the famous ones. The good news is that a short list of habits blocks most of what they try.
Keep secrets out of code
Passwords, API keys and tokens belong in environment variables, never in the repository. If a secret was ever committed, treat it as leaked and replace it.
Protect your forms
- Validate on the server, not just in the browser
- Add rate limits and a bot check
- Encrypt personal data you store
Use secure defaults
Serve everything over HTTPS, set strict security headers, and keep dependencies updated. Most real-world breaches use known problems that already had a fix.
Limit who can do what
Give each person the smallest access that lets them do their job, and turn on two-step sign-in for every admin account.
Plan for a bad day
Automatic backups you have actually restored once are worth more than a policy document. Test the restore before you need it.