Cloud & app security

How to Secure a Website: A Practical Checklist for Owners

Most website hacks use the same few weaknesses: unpatched software, weak admin logins, missing HTTPS and no backups. This checklist closes them in order of impact.

Cysoro Security TeamPublished · 9 min read
CLOUD & APP SECURITY How to secure a website HTTPS, headers, MFA, patching, backups — in order of impact. https://example.com HSTS ✓ cysoro.com
Quick answer

To secure a website, serve every page over HTTPS with HSTS, require multi-factor authentication on all admin accounts, keep the CMS, plugins and server software patched, send security headers, put a web application firewall in front of the site, keep tested backups off the server, and monitor logs and certificates.

Key takeaways

  • HTTPS, MFA on admin accounts and prompt patching close most website hacks before they start.
  • Security headers such as HSTS and CSP block whole classes of attacks and cost nothing to add.
  • Tested backups stored away from the live site are what turn a hack into a bad afternoon instead of a disaster.

Most hacked websites were not beaten by a genius attacker. They fell to the same few weaknesses: software that had not been updated, an admin login with no second factor, pages served over plain HTTP, and no backup to restore from. Securing a website means closing those gaps in order of impact — and most of the fixes are free.

What does it mean to secure a website?

Securing a website means protecting three things: your visitors, your data, and your ability to recover. Visitors need their connection encrypted and their data handled safely; your data needs to be safe from theft and tampering; and when something goes wrong, you need a tested backup and a plan.

The standard map for what can go wrong is the OWASP Top 10, the most widely used list of web application risks. The current edition, OWASP Top 10:2025, ranks broken access control first, security misconfiguration second, and software supply chain failures third.

It was built from data on more than 2.8 million applications and 589 individual weakness types.

This guide follows that map, but it is written for the person who runs the site — a small business owner, a freelancer, or a small team — rather than a developer. Code-level fixes such as input validation matter too, but the steps below close the most risk first.

Five layers of website defense 1. Encryption — HTTPS everywhere, HSTS, TLS 1.2 or 1.3 only 2. Access — MFA on admin accounts, least privilege, no shared logins 3. Hardening — security headers, patched CMS and plugins, WAF 4. Data — tested backups off the server, encrypted where stored 5. Watch — logs, certificate monitoring, uptime and file-change alerts An attacker has to beat every layer. A visitor only notices the first one.
Defense in depth for a website: each layer catches what the one above misses. Illustration by Cysoro.

Serve every page over HTTPS, then turn on HSTS

HTTPS encrypts traffic between the browser and your server and proves the visitor reached your real domain. Every page needs it — not only login and checkout pages — because anyone who can alter one unencrypted page can redirect the visitor anywhere.

Start with a certificate from a trusted authority. Free certificates from Let's Encrypt work for almost every small site and renew automatically. Then do three things:

  1. Redirect all HTTP to HTTPS with a permanent (301) redirect on the same host name.
  2. Fix mixed content: images, scripts or form targets still loaded over HTTP from an HTTPS page. Browsers block or warn on these, and they break the protection.
  3. Send the Strict-Transport-Security (HSTS) header on HTTPS responses, for example Strict-Transport-Security: max-age=63072000; includeSubDomains. HSTS tells the browser to use HTTPS for your domain from then on, upgrades any later HTTP link before sending it, and stops visitors clicking through a certificate error.

CISA's website security guidance says the same thing in plainer terms: disable plain HTTP entirely, enforce HTTPS and HSTS, and preload HSTS where possible.

Start with a short max-age such as five minutes, then a week, then a month, checking for broken pages at each stage before settling on a long value. Only submit your domain to the HSTS preload list once every subdomain is HTTPS-only, because preloading cannot be undone quickly.

Also allow only TLS 1.2 and 1.3, and disable old protocols such as SSLv2, SSLv3, 3DES and RC4. You can check your own setup in seconds with our free SSL checker, which tests your certificate, protocol versions and chain.

How do I lock down admin access?

Admin accounts are the most valuable target on a website, because they can change content, install plugins and read customer data. Lock them down before anything else.

  • Require multi-factor authentication (MFA) on every admin account. CISA advises enforcing MFA for privileged accounts and anything reachable from the internet, and phishing-resistant MFA such as passkeys or a security key is the standard to aim for. An authenticator app is the next best option.
  • Give every person their own account. Shared logins mean you cannot tell who did what, and you cannot revoke one person's access without changing the password for everyone.
  • Use least privilege. Give each account only the access it needs. An editor does not need administrator rights, and a contractor's account should expire when the work ends. Remove accounts the day someone leaves.
  • Change the defaults. Rename the default admin username, delete unused accounts, and never leave a default password in place. Use a password manager and a long, unique password of at least 12 characters for every account.
  • Limit login attempts and hide the login page. Rate-limit sign-ins so automated password guessing fails, and consider moving the admin login to a non-standard URL on a CMS such as WordPress.

Check whether your own passwords have already appeared in a breach with our free pwned password checker. If a password you use for your site shows up, change it everywhere you reused it.

What are the most important security headers?

Security headers are instructions your server sends with every page, telling the browser what the site is allowed to do. They cost nothing, take minutes to configure, and block whole classes of attacks — which is why missing headers are explicitly listed under security misconfiguration, now the number two risk in the OWASP Top 10:2025.

HeaderWhat it doesRecommended value
Strict-Transport-SecurityForces HTTPS, blocks downgrade attacksmax-age=63072000; includeSubDomains
Content-Security-PolicyLimits which scripts and resources can load, reducing XSSdefault-src 'self' as a starting point
X-Content-Type-OptionsStops browsers guessing file typesnosniff
X-Frame-OptionsPrevents clickjacking by blocking embeddingDENY or SAMEORIGIN
Referrer-PolicyLimits referrer data sent to other sitesstrict-origin-when-cross-origin
Permissions-PolicyTurns off camera, microphone, geolocationDisable features you do not use

Content-Security-Policy (CSP) is the most powerful and the most likely to break things, so start strict on a staging copy and loosen it only where the site needs it.

Avoid 'unsafe-inline' and 'unsafe-eval' in script sources, and set frame-ancestors 'none' so your pages cannot be framed at all. Remove headers that reveal your server software and version, and never send Access-Control-Allow-Origin: * unless other sites truly need to read your content.

Run our free security headers checker against your domain to see which headers you send today and which are missing. Fix the missing ones, re-run it, and keep the report as your baseline.

How do I keep the site patched and its plugins safe?

Unpatched software is how most small sites are hacked. Attackers scan the internet for known vulnerabilities and exploit them automatically, often within days of a fix being published. CISA's guidance is to fix critical vulnerabilities within 15 days and high-severity ones within 30 days on internet-facing systems.

  • Turn on automatic updates for your CMS core, themes and plugins where you can, and subscribe to security notices for the platforms you use.
  • Remove what you do not use. Every plugin, theme and package is a possible entry point. Delete inactive plugins and themes rather than leaving them installed.
  • Keep the server software supported. An old PHP or database version that no longer receives security fixes is a vulnerability by itself, even if your CMS is current.
  • Check third-party scripts. Every script tag on your pages is a supply-chain risk. Load scripts from your own domain where possible, and use Subresource Integrity (SRI) for third-party scripts so a tampered file is rejected.
  • Scan continuously. CISA recommends continuous vulnerability scanning of internet-facing systems, prioritized using the OWASP Top 10.

If your site runs WordPress, most hacks trace to a vulnerable plugin or theme rather than WordPress core. Check plugin update dates and install counts before installing anything new, and replace plugins that have not been updated in over a year.

Do I need a web application firewall?

A web application firewall (WAF) sits in front of your site and blocks malicious requests — SQL injection, cross-site scripting, bots probing for known vulnerabilities — before they reach your server. For most small sites, the answer is yes, because a WAF is usually free or cheap and it protects you during the gap between a vulnerability being published and your patch going in.

Cloudflare's free plan includes a basic WAF, and most managed hosts bundle one. A WAF does not replace patching, headers or MFA — it buys you time and blocks the automated scans that make up most attacks. Pair it with rate limiting on login and form pages, which stops credential stuffing: automated sign-in attempts using passwords leaked from other sites.

Also protect the domain itself. Lock the domain at your registrar so it cannot be transferred without approval, turn on two-factor authentication for the registrar account, and monitor certificate transparency logs so you learn if someone issues a certificate for your domain. Our website security platform covers certificate and domain monitoring alongside the checks in this guide.

How should I back up a website?

Backups are what turn a hack into a bad afternoon instead of a lost business. Follow CISA's 3-2-1 rule: three copies of your data, on two different types of storage, with one copy off site — and disconnected from the live server so ransomware cannot reach it.

  • Back up automatically, at least daily for a site that changes often. Include the database and the uploaded files, not just the code.
  • Store a copy away from the hosting account. A backup on the same server as the site dies with the server. Use a separate storage service or download copies regularly.
  • Test the restore. A backup you have never restored from is a hope, not a plan. Restore to a staging copy at least every few months and time how long it takes.
  • Keep old copies. A hack can sit unnoticed for weeks, so keep several weeks of backups — restoring yesterday's copy of an already-compromised site just restores the compromise.

Write down the recovery steps before you need them: who restores the backup, who tells customers, and who contacts the host. For the wider business picture, our small business cybersecurity checklist covers backups alongside email security, devices and incident response.

What should I do when my website is hacked?

Act in this order: contain, clean, restore, then strengthen. Do not just delete the suspicious files and hope — hacked sites are usually re-infected within days if the entry point is not closed.

  1. Take the site offline or put it in maintenance mode so visitors are not served malware or a phishing page while you work.
  2. Change every password: hosting, CMS admin, database, FTP and email accounts. Assume the attacker has them all.
  3. Find the entry point. Check server logs for the first suspicious request, look for recently modified files, and review installed plugins and accounts for anything new.
  4. Clean or restore. If you have a clean backup from before the hack, restore it. Otherwise remove the malicious files and any backdoor accounts, then update everything before going live.
  5. Scan again and monitor. Re-run the SSL and security headers checks, watch file changes for a few weeks, and check whether your domain or email ended up on a blocklist.
  6. Report it. In the US, report the incident to the FBI's Internet Crime Complaint Center at ic3.gov, and tell your hosting provider — they may have seen the same attack on other sites.

Publish a security.txt file at /.well-known/security.txt (RFC 9116) with a security contact and an expiry date, so researchers who find a vulnerability in your site can reach you before an attacker does. It takes five minutes and it is the professional way to receive reports.

OWASP Top 10:2025 — the risks to design against A01 Broken Access Control#1, unchanged A02 Security Misconfiguration#2, up from #5 A03 Software Supply Chain Failures#3, new name A04 Cryptographic Failures#4, down from #2 A05 Injection#5, down from #3 A06 Insecure Design A07 Authentication Failures A08 Software or Data Integrity Failures A09 Security Logging and Alerting Failures A10 Mishandling of Exceptional Conditions Built from data on more than 2.8 million applications and 589 weakness types. Source: OWASP Top 10:2025. SSRF moved into A01; A10 is a new category.
The OWASP Top 10:2025 — the current ranking of web application risks. Illustration by Cysoro.

The bottom line

Securing a website is mostly unglamorous maintenance: HTTPS everywhere, MFA on admin accounts, updates within days rather than months, a handful of security headers, a firewall in front, and backups you have actually restored from. None of it needs a security team or a big budget.

Start with the check that takes two minutes: run your domain through our free SSL checker and fix what it flags.

Then repeat the scan with our security headers checker, and set a monthly reminder to run both again. A site that is checked regularly is a site that gets fixed before an attacker finds it first.

Frequently asked questions

How do I secure my website for free?

Use a free Let's Encrypt certificate for HTTPS, turn on HSTS and security headers, require multi-factor authentication on admin accounts, enable automatic updates, and use a free web application firewall such as Cloudflare's free plan. Back up the site regularly and test a restore.

What is the first step to secure a website?

Serve every page over HTTPS with a valid certificate, redirect all HTTP traffic to HTTPS, and add HSTS. Then require multi-factor authentication on every admin account. Those two steps close the most common attack routes.

Do I need a web application firewall for a small website?

It helps, and it is often free. A WAF blocks automated scans, SQL injection and cross-site scripting attempts before they reach your server, and it protects you during the gap between a vulnerability being published and your patch going in.

How often should I update my website?

Apply security updates as soon as they appear. CISA advises fixing critical vulnerabilities within 15 days and high-severity ones within 30 days on internet-facing systems. Turn on automatic updates for the CMS core, themes and plugins where you can.

What are security headers and do I need them?

Security headers are instructions your server sends with every page, telling the browser what the site may do. HSTS forces HTTPS, Content-Security-Policy limits which scripts can run, and X-Frame-Options blocks clickjacking. They are free and take minutes to add.

What should I do if my website is hacked?

Take the site offline or into maintenance mode, change every password, find the entry point in your logs, and restore from a clean backup made before the hack. Then update everything, re-scan, and report the incident to the FBI's Internet Crime Complaint Center at ic3.gov.

How do I know if my website is secure?

Run free scanners: an SSL checker for your certificate and TLS settings, a security headers checker for your response headers, and a vulnerability scan for known issues. Repeat the checks monthly, and after every major change to the site.

Sources

  1. OWASP — Top 10: 2025
  2. OWASP Developer Guide — OWASP Top 10
  3. CISA — Website Security
Written & fact-checked byCysoro Security Team

The engineers and analysts who build Cysoro's domain scanner, email-authentication checks and free security tools. We test what we write about every day — SPF, DKIM, DMARC, certificates, look-alike domains and phishing — and check each guide against the relevant standards, government guidance and vendor documentation.

  • Email authentication
  • Phishing & BEC
  • Domain & DNS security
  • Small-business security

Checked against the OWASP Top 10:2025, the OWASP Developer Guide and CISA website security guidance on patching, MFA, HTTPS and backups.

How we write and fact-check →

Free tools for this topic

No account needed.

See where your domain stands

Free for up to 3 domains. No card, no installs.

Start free