Tutorial

Website security basics

Nobody is targeting your small website specifically. Automated bots are scanning every website on the internet, and yours answered. Security for small sites isn't about fortresses; it's about not being the easiest target in the scan.

How small sites actually get hacked

Forget the movie version. The typical small-site compromise looks like this: a bot tries thousands of known vulnerabilities against thousands of sites per hour. Your site runs an outdated plugin with a published flaw. The bot finds it, installs malware, and moves on. No human ever looked at your site.

The three doors bots check first:

  1. Outdated software. CMS, plugins, themes, server packages. Every update you skip is a known vulnerability with its exploit published.
  2. Weak passwords. A FIDO Alliance study found more than a third of people had an account compromised through weak or stolen passwords in the past year. admin/password123 is still tried first because it still works somewhere.
  3. Abandoned extras. The plugin you installed in 2022 and forgot. The test subdomain nobody removed. Attackers love forgotten doors.

The six things that actually matter

In priority order. Do these and you've closed the doors bots actually knock on:

PriorityActionWhy
1Keep everything updatedOutdated software is the number one way in; updates close published holes
2Strong unique passwords plus two-factor authenticationStops credential stuffing and guessing cold
3HTTPS everywhereEncrypts traffic; free via Let's Encrypt
4Backups you can actually restoreThe difference between a bad day and a dead business
5Remove what you don't useEvery plugin, theme, and subdomain is a door; fewer doors, fewer break-ins
6Least privilege for accountsThe intern's login shouldn't be able to delete the database

Notice what's not on the list: expensive security suites. Hygiene beats products.

The first hour after a hack

If you find malware or defacement, don't panic and don't start deleting things randomly. In order:

  1. Take the site offline or into maintenance mode. Stop serving malware to your visitors.
  2. Change all passwords (hosting, CMS, database, FTP) from a clean device.
  3. Restore from a clean backup made before the infection, then update everything before going live.
  4. Find the entry point. Check access logs for the first suspicious request; if you can't find it, assume the vulnerability is still open.
  5. Ask Google to re-review in Search Console if you were flagged, after you're clean.

What not to buy

No plugin, service, or badge makes a site "100% secure." Security is a practice, not a product. Anyone selling certainty is selling the feeling of security, which is worse than none at all because it stops you doing the six things above.

Worked example: setting up a safer login tonight

An owner with one admin account can improve that account in one sitting. The steps below use a password manager and two factor authentication on the admin login.

  1. Install a password manager on your phone and your computer. Create the main password for the manager from a sentence you can remember and have never used elsewhere. Write it on paper and store the paper somewhere private at home while you learn the tool.
  2. Sign in to your website admin area with your current password. Open the profile or account settings page and choose the option to change the password.
  3. Use the password manager to generate a new password for the site. Let the manager save it under the site name. Use a different generated password for hosting, email, and every other account. Reuse is the habit that turns one leaked password into access to many accounts.
  4. Stay signed in and open the security settings. Turn on two factor authentication for the admin account. Most systems show a QR code. Scan it with an authenticator app on your phone, then enter the six digit code the app shows to confirm setup.
  5. Save the recovery codes the site gives you. Store them in the password manager entry for the site. These codes get you back in if you lose the phone.
  6. Sign out and sign back in. Enter the new password from the manager and the current code from the authenticator app. If both work, delete the old password from your browser saved passwords so the browser stops offering it.
  7. Repeat the same password change for the hosting control panel and the domain registrar account. Those two accounts can reset everything else, so they deserve unique passwords and two factor protection as well.

Common slips to avoid during setup include taking a photo of the QR code and leaving it in a shared photo album, turning on two factor for one admin account while a second old admin account stays unprotected, and skipping the test sign in at the end.

Taking over an existing site: first checks in order

  • Change passwords for hosting, the site admin area, the database user where the host allows it, FTP or SFTP, and the domain registrar. Give each one a unique password stored in a password manager.
  • Update the CMS, themes, and plugins. Remove themes and plugins that are installed and inactive. Note anything that refuses to update, since abandoned software needs a replacement plan.
  • Review the user list. Delete accounts for people who left. Lower roles for accounts that only need to edit content, and turn on two factor authentication for every administrator.
  • Confirm backups. Find where backups are stored, check the date of the most recent one, and run a test restore to a staging area or a local copy. A backup you have never restored is a hope.

Frequently asked questions

Is my small site really a target?

Not specifically, and that's the point. Bots scan everything indiscriminately. Small sites get hit because they're often unpatched, not because they're important.

Are passkeys better than passwords?

Yes. They're cryptographic, phishing-resistant, and tied to the real site so fake login pages can't steal them. Enable them wherever offered.

How often should I update?

Security updates: immediately. Everything else: weekly. Set a recurring reminder; "when I get around to it" is how sites end up three years behind.

Last verified: October 25, 2026, against the OWASP Top 10:2025 and FIDO Alliance research. The OWASP Top 10:2025 (finalized January 2026) is the current edition; threat details evolve, hygiene doesn't.

Want security handled from day one?

Every site we build ships with HTTPS, updates, backups, and hardened logins.

Get a quote →

← All tutorials