Andy Jones. Freelance Web Developer

Website Security Basics for Small Businesses

By Andy Jones · · 3 min read · Security & compliance

Short answer: Most small-business compromises come from out-of-date software, weak or shared passwords and no working backups. Keep everything updated, use unique logins with two-step verification, and test that you can restore a backup.

“Nobody would bother attacking a small business website” is the most common and most mistaken belief I hear. Attacks are mostly automated: software scans huge numbers of sites for known weaknesses, and a small site with an unpatched plugin is as good a target as a large one. The good news is that a handful of habits stops most of them.

1. Keep everything updated

Out-of-date software is the main route in. That means the content management system or framework, every plugin and package, and the version of PHP your hosting runs. Updates often contain security fixes, and once a fix is public, attackers know exactly what to look for on sites that haven’t installed it. For what this involves on a Laravel site, see Laravel maintenance.

2. Use strong, unique logins, and two-step verification

  • A different password for every account, kept in a password manager.
  • Two-step verification on your hosting, domain registrar, email and site admin wherever it’s offered.
  • A separate login for each person, so you can remove one without affecting the rest.
  • No shared “admin” login passed around by email.

3. Give people only the access they need

An editor doesn’t need to be an administrator. A developer who has finished a project shouldn’t keep access indefinitely. Review who has access a couple of times a year, and remove anyone who no longer needs it.

4. Back up, and test the backup

Backups are your recovery plan for hacks, bad updates and mistakes. Three rules:

  1. Back up the files and the database, automatically.
  2. Store copies somewhere other than the web server itself.
  3. Occasionally restore one to a test site to prove it works. An untested backup is a hope, not a plan.

5. Use HTTPS everywhere

The padlock means the connection between the visitor and your site is encrypted. It’s expected, it’s usually free, and browsers warn people away from sites without it. Make sure the plain-http address redirects to the secure one and the certificate renews automatically.

6. Be careful with plugins and add-ons

Every plugin is code written by someone else, running on your site. Install only what you need, from reputable sources, and delete the ones you’ve stopped using. Abandoned plugins are a frequent weak point (a point in the WordPress and Laravel comparison).

7. Protect forms and logins

  • Limit login attempts so passwords can’t be guessed endlessly.
  • Validate and clean everything users type before it’s used.
  • Keep spam and bots away from forms without puzzling customers. See a contact form that gets enquiries, not spam.

A framework such as Laravel includes protections against the commonest attacks, but they only work if used properly, which is part of why choosing a good framework is worth it.

8. Never take card details yourself

Use a payment provider so card numbers are entered on their secure pages and never touch your server. See taking payments with Stripe.

9. Know what to do if something goes wrong

Write down, now, who to call, where the latest backup is, how to take the site offline and who has the hosting login. If personal data may have been exposed, you may have legal duties to report it, so check the ICO’s guidance quickly rather than hoping nobody notices.

Warning signs

  • Unexpected pages, links or redirects, especially to other sites.
  • A browser or Google warning when people visit.
  • New admin users you didn’t create.
  • Email from your domain landing in spam.

Get a second pair of eyes

If you’re not sure where your site stands, I can review it and tell you what to fix first. Get in touch, or read how I approach custom web app development where security matters from day one.

More guides

How I can help