
- Most small sites are hacked through easy doors, not clever attacks: outdated plugins, reused passwords, forgotten admin accounts and unprotected forms. HTTPS, regular updates, unique passwords with two-factor and least-privilege users close most of them.
- Keep the accounts that matter (registrar, DNS, hosting, email) in your own name with two-factor, run automatic off-site backups and test a restore, let a payment provider handle card data, and set up uptime and expiry alerts.
- If it happens: take the site offline, keep evidence, change credentials from a clean device, restore a clean backup and update before relaunch. Then repeat a 30-minute check every quarter.
You do not need a security team. You need a short list done properly and then checked now and then. This post is that list, in the order we would tackle it, with a quick way to confirm each item. It is written for any business with a website, whatever the platform.
The ten basics
1. HTTPS on every page
Every page, image and script should load over HTTPS, and the plain http:// address should redirect to it. Browsers warn visitors about sites that do not, and anything typed into a form travels in the clear without it. Check: open your site in a private window and look for the padlock on the home page, the contact page and a few inner pages. Make sure the certificate renews automatically and set a reminder in case it does not.
2. Keep everything updated
This means the CMS, every plugin and theme, the framework and libraries your developer used, and the server itself (PHP, Node, the operating system). Attackers go after known flaws that already have a fix. Check: you can say who is responsible for updates and how often. Delete plugins and themes you do not use, since an inactive one can still be exploited. For anything important, update on a staging copy first.
3. Strong, unique passwords, and two-factor on admin
A password manager removes the excuse for reusing passwords. Every admin login, and every account listed in point 4, needs two-factor authentication, ideally with an authenticator app or a hardware key rather than SMS where you have the choice. Check: try logging into your admin area from a new browser. If it only asks for a password, you are not done.
4. Hosting, registrar, email and DNS accounts in your name
The domain registrar, the DNS provider, the hosting account and the business email admin are the keys to everything. They should belong to you or your company, use an address you control, and have two-factor on. Whoever built the site can be added as a user. If one of these is registered to an agency or an ex-employee, that is both a security risk and an ownership problem; our post on keeping ownership of your software goes through it. Check: can you log into all four today without asking anyone?
5. Least privilege, and clear out old accounts
Each person gets the lowest role that lets them do their job: an editor does not need to be an administrator. Every few months, list the users on the CMS, hosting panel, analytics, email and code repository, and remove people who have left and agencies whose work ended. Shared logins are a problem because you cannot tell who did what or revoke just one person. Check: every account on the list maps to a person you can name who still needs it.
6. Automatic off-site backups, and a tested restore
A backup that sits on the same server as the site disappears with it when the server fails or is encrypted by ransomware. You want automatic backups of files and database, kept somewhere separate, with several versions so that a problem noticed a week late can still be undone. The part most people skip is the test: restore a backup to a spare location at least once and confirm the site really comes back. Check: you know when the last backup ran, where it is, and when you last restored from it.
7. Protect your forms
Contact, booking and login forms get hit by bots. Layer a few cheap defences: validate every input on the server, not only in the browser; add a honeypot field or a bot-detection check (several providers offer ones that rarely bother real visitors); limit how many attempts one address can make per minute, especially on login and password-reset; and send form mail through a proper mail service so that a spam run does not get your domain blocked. Check: submit a form 20 times quickly. Something should push back.
8. Security headers, the short version
These are instructions your server sends to the browser. A reasonable starting set is: Strict-Transport-Security (always use HTTPS), X-Content-Type-Options: nosniff, a Referrer-Policy, a Content-Security-Policy that limits where scripts can load from, and framing limits (frame-ancestors or X-Frame-Options) so your pages cannot be embedded in someone else's. A strict Content-Security-Policy can break third-party widgets if applied blindly, so introduce it in report-only mode first. Check: run your address through a free header scanner and read what it flags, ignoring the letter grade.
9. Do not handle card data yourself
Use a payment provider's hosted checkout or embedded fields so card numbers go straight to them and never touch your server or database. That keeps the most dangerous data off your site and shrinks your compliance burden considerably. Never store full card numbers or security codes, never email them and never log them. Check: search your database and inboxes for anything that looks like a card number. The answer should be nothing.
10. Monitoring and alerts
You want to hear about a problem before a customer tells you. At minimum set up an uptime monitor that messages you when the site is down, alerts for certificate and domain expiry, and a notice from your host or a security plugin when files change or an admin user is created. Send the alerts to more than one person. Check: turn on a test alert and make sure it arrives somewhere that you actually read.
Where the site collects personal data, security is part of the legal picture too, and our data-protection checklist covers the paperwork side. Your local rules may differ from the ones it discusses.
If you think you have been hacked: the first hour
Speed matters, but so does not making it worse. In order:
- Stay calm and note the time. Write down what you saw and when. Take screenshots.
- Contain it. Put the site into maintenance mode or take it offline if it is serving spam, malware or a defaced page. Customers seeing a maintenance notice is better than customers being attacked.
- Keep evidence. Ask your host to preserve the server logs, and take a copy of the affected files and database before you clean anything.
- Change credentials from a clean device. Start with email, then hosting, registrar and DNS, then the CMS admin, database, FTP or SSH and any API keys. Sign out all other sessions. Enable two-factor wherever it is missing.
- Call your host and your developer. Hosts can often see how the attacker got in and may help with isolation.
- Check what else changed. Look for unknown admin users, email forwarding rules, altered DNS records, new scheduled tasks and unfamiliar files. Attackers often leave a way back in.
- Restore from a known-clean backup, then update everything before the site goes back online. Restoring without updating just reopens the same hole.
- Tell the right people. If customer data may be exposed, many countries require notifying the regulator or the people affected within a deadline. Check the rules where you operate, and tell your payment provider if payments could be involved.
- Afterwards, find out how it happened and fix that, not just the symptom.
A 30-minute routine, every quarter
Put it in the calendar as a recurring slot. It does not need to be technical:
- 5 min, updates: apply pending CMS, plugin and theme updates, and remove anything unused.
- 5 min, people: review user lists on the CMS, hosting, email and analytics. Remove leavers and ended agency access.
- 5 min, backups: confirm the latest backups ran and are off-site. Once a year, do a full test restore.
- 5 min, accounts: check two-factor is on for registrar, DNS, hosting and email, and that recovery email and phone numbers are current.
- 5 min, expiry: check domain and certificate renewal dates and the card on file for hosting.
- 5 min, alerts and forms: confirm the uptime alert still reaches someone, and send a test through your forms.
A note on trust
For some businesses, a site that looks safe is part of the product. On Lahoucine Legal, a legal office website where visitors book a consultation, the design had to read as quiet and serious, and the engineering behind it has to match. Whatever your field, visitors judge you partly by whether the site feels trustworthy.
If you would like someone to look over your setup against this list and tell you what is missing, send us a short description of the site and where it is hosted.
Free toolPage Speed Test (Core Web Vitals)Paste a page address and see its mobile speed score, Core Web Vitals and the top fixes.Open the tool →Related reading
See a related case study: Lahoucine Legal. A bilingual, Arabic-first website for a legal office in Morocco, where visitors book a consultation directly and privacy and credibility have to show from the first page.
Service page: Web development.
Want a second pair of eyes on your site's security basics?
Tell us what platform it runs on and where it is hosted. We will reply with what looks fine and what to fix first. Send a brief · WhatsApp us. You get a first reply within one business day.


