Websites & e-commerce

Website security: 10 essential measures for SMBs

Computer code displayed on a screen

Small websites are hacker bots' favourite targets: there are lots of them and they're often poorly maintained. A hacked website means a shop window that redirects to scams, collapsing SEO and customers who lose trust. The good news: most attacks can be prevented with simple measures.

In short

  • Most hacks exploit out-of-date software and weak passwords.
  • A tested backup is your insurance: without it, an attack can wipe everything.
  • Security is ongoing maintenance, not a one-off action.

How websites get hacked

The 10 essential measures

Your security plan
MeasureWhyFrequency
1. UpdatesFix known vulnerabilitiesEvery month (after testing)
2. Automatic backupsRestore the website if something goes wrongEvery day, stored elsewhere
3. Strong passwords + a password managerPrevent brute-force attacksRight now
4. Two-factor authenticationBlocks access even if the password leaksRight now
5. HTTPS everywhereEncrypts exchanges, reassures visitorsPermanent
6. Security headersLimit malicious scripts and clickjackingOnce, then checks
7. Up-to-date admin accountsRemove old unused accountsEvery quarter
8. Official plugins onlyPirated versions often contain backdoorsPermanent
9. Protected formsAnti-bot protection and rate limitingOnce
10. MonitoringBe alerted quickly to anomaliesOngoing

Passwords and access

A short password, or one reused across several services, is the second cause of hacking. Bots constantly test millions of combinations and credentials from data leaks. Three rules are enough to eliminate most of the risk: a long, unique password for each service, a password manager to remember them, and two-factor authentication wherever it's available.

Who has access to what
AccessWho should have itMinimum protection
Website administrationYou + your provider (separate accounts)Unique password + two-factor authentication
HostingYou (owner), provider by delegationTwo-factor authentication mandatory
Domain registrarYou onlyTwo-factor authentication + domain lock
EmailEach userUnique password + two-factor authentication

Security headers, explained simply

Security headers are instructions your server sends to the browser. You can't see them, but they block common attacks. You can check yours for free with a tool such as securityheaders.com.

HeaderWhat it prevents
Content-Security-PolicyRunning unauthorised scripts (injections)
Strict-Transport-SecurityFalling back to unencrypted HTTP
X-Frame-OptionsDisplaying your website in a trap frame (clickjacking)
X-Content-Type-OptionsInterpreting one type of file as another
Referrer-PolicyLeaking page addresses to other websites

Backups: the 3-2-1 rule

A simple, proven rule
  1. 3 copies of your data
  2. on 2 different media
  3. including 1 away from your host

What to do if your website is hacked?

  1. Don't panic, don't delete anything

    Keep a copy of the current state: it helps you understand where the attack came from.

  2. Put the website in maintenance mode

    To protect your visitors during the clean-up.

  3. Change all access

    Administration, hosting, FTP, database, email.

  4. Clean up and fix the vulnerability

    Otherwise, the attack will happen again. Get help if needed.

  5. Notify Google if necessary

    Via Search Console, if your website has been flagged as dangerous.

Planning a website, a platform or an automation?

Let's talk for 20 minutes. You get a detailed quote within 24 hours, with no commitment.