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
| Measure | Why | Frequency |
|---|---|---|
| 1. Updates | Fix known vulnerabilities | Every month (after testing) |
| 2. Automatic backups | Restore the website if something goes wrong | Every day, stored elsewhere |
| 3. Strong passwords + a password manager | Prevent brute-force attacks | Right now |
| 4. Two-factor authentication | Blocks access even if the password leaks | Right now |
| 5. HTTPS everywhere | Encrypts exchanges, reassures visitors | Permanent |
| 6. Security headers | Limit malicious scripts and clickjacking | Once, then checks |
| 7. Up-to-date admin accounts | Remove old unused accounts | Every quarter |
| 8. Official plugins only | Pirated versions often contain backdoors | Permanent |
| 9. Protected forms | Anti-bot protection and rate limiting | Once |
| 10. Monitoring | Be alerted quickly to anomalies | Ongoing |
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.
| Access | Who should have it | Minimum protection |
|---|---|---|
| Website administration | You + your provider (separate accounts) | Unique password + two-factor authentication |
| Hosting | You (owner), provider by delegation | Two-factor authentication mandatory |
| Domain registrar | You only | Two-factor authentication + domain lock |
| Each user | Unique 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.
| Header | What it prevents |
|---|---|
| Content-Security-Policy | Running unauthorised scripts (injections) |
| Strict-Transport-Security | Falling back to unencrypted HTTP |
| X-Frame-Options | Displaying your website in a trap frame (clickjacking) |
| X-Content-Type-Options | Interpreting one type of file as another |
| Referrer-Policy | Leaking page addresses to other websites |
Backups: the 3-2-1 rule
- 3 copies of your data
- on 2 different media
- including 1 away from your host
What to do if your website is hacked?
- Don't panic, don't delete anything
Keep a copy of the current state: it helps you understand where the attack came from.
- Put the website in maintenance mode
To protect your visitors during the clean-up.
- Change all access
Administration, hosting, FTP, database, email.
- Clean up and fix the vulnerability
Otherwise, the attack will happen again. Get help if needed.
- Notify Google if necessary
Via Search Console, if your website has been flagged as dangerous.
15 November 2026 · 5 min read
15 November 2026 · 5 min read
10 June 2025 · 3 min read