Website basics

Website security basics for business owners

•
3 min read
•
Star V

The security basics that stop most small business website problems: secrets, forms, updates, backups and monitoring.

Most small business sites are not attacked because someone chose them. They are attacked because a setting was left open, a password was reused, or a secret was pasted where anyone could read it. This guide covers the basics that prevent most of those problems.

Secrets must never reach the browser

Every website is made of files that a visitor's browser downloads. Anything in those files is readable by anyone who visits the site.

This matters most for AI-generated and do-it-yourself code. Passwords, database connection strings, and private API keys must stay on the server, never in the page code.

Frameworks such as Next.js make this explicit. In Next.js, only environment variables that begin with NEXT_PUBLIC_ are included in the browser code. The official documentation says these values are inlined into the JavaScript bundle at build time, so they should be treated as public information. You can read the rule in the Next.js environment variables documentation.

Check your own site: Open your site in a browser, right-click, choose View Source, and search for words like key, secret, token, password, and database. If you find a long random string next to one of those words, tell your developer immediately.

Forms: stop spam and make sure messages arrive

Contact forms are a common target for bots. Good forms do three things:

  • They check that required fields are filled in correctly.
  • They protect against automated spam submissions.
  • They deliver each message to a real inbox that someone checks.

Test your form every few months. Send a message from a phone and from a computer. Confirm that it arrives, and check the spam folder too.

Updates and passwords

  • Keep software updated. Out-of-date plugins and packages are a common route in. Ask who installs updates and when.
  • Use a password manager and a unique password for your hosting, domain, and email accounts.
  • Turn on two-factor authentication for your domain registrar, hosting account, and email.
  • Remove access for people who no longer work with you.

Backups

If the site is lost, you need a copy to restore from. Ask your provider three questions:

  1. Are backups made automatically, and how often?
  2. Where are they stored?
  3. How long does a restore take, and who starts it?

If nobody can answer, assume there is no backup.

Monitoring

A site that goes down quietly can cost customers for days. Ask whether someone is alerted when the site is unreachable. Uptime monitoring is a simple way to find out first.

Quick self-check

  • [ ] No passwords or private keys are visible in View Source.
  • [ ] The contact form sends a test message that arrives.
  • [ ] I can log in to my domain and hosting accounts, with two-factor enabled.
  • [ ] I know who installs updates, and when they last ran.
  • [ ] I know whether backups exist, and how to restore one.

This guide covers general practice, not a full security audit. If you handle payments or sensitive customer data, ask a qualified security professional to review your setup.

About Star V

North Star Global specializes in enterprise-grade software development, business technology consulting, and digital transformation. We guide businesses forward with exceptional software solutions and strategic expertise, helping organizations achieve measurable growth and long-term success.

More Help Articles

Browse all articles →