Worried your site could get hacked? Website security comes down to a few habits you can start today: protect accounts with MFA, force HTTPS, patch fast, back up often and harden your server.
| Item | Value |
|---|---|
| Patch window for critical vulnerabilities | 15 days |
| Patch window for high vulnerabilities | 30 days |
| Web application risks to fix first | OWASP Top 10 |
| Multifactor authentication (MFA) | All internet-accessible accounts |
| UpGuard hardening checklist | 13 steps |
These figures come from CISA’s archived February 2021 guidance and UpGuard’s website security checklist. They can change, so check the sources before you rely on them.
What does website security cover, and why does it matter?
According to CISA, website security is the protection of personal and organizational public-facing websites from cyberattacks. The page was released in February 2021 and is marked as archived content, so treat it as a solid baseline rather than current policy.
CISA lists these possible outcomes of an attack:
- Website defacement
- Loss of availability, or a denial-of-service condition
- Compromise of sensitive customer or organizational data
- An attacker taking control of the site
- Use of your site as a staging point for watering hole attacks
The harm is not only technical. CISA notes that defacement, denial of service or a data breach can erode user trust, which may mean financial loss through fewer visitors.
The sections below follow a sensible order: accounts, encryption, updates and backups, then hardening. Each topic links to a deeper guide where one exists.

Secure your domain and user accounts
Start with your domain, because CISA’s first step is to secure the domain ecosystem. The basics of registrars and DNS are covered in a primer on what is a domain name.
CISA’s domain checklist is short:
- Review the registrar and DNS records for all domains.
- Change every default password supplied by your registrar and DNS provider.
- Enforce multifactor authentication on those accounts.
- Monitor certificate transparency logs.
Changing defaults matters because default credentials are usually readily available on the internet. Swapping them out blocks attacks that depend on them.
Next, tighten user accounts. CISA advises MFA on all internet-accessible accounts, with privileged ones first, plus least privilege and the removal of unnecessary accounts and privileges.
Encrypt traffic with HTTPS and keep certificates healthy
Visitors expect privacy, so CISA says to enforce HTTPS and HTTP Strict Transport Security (HSTS) where possible. It also suggests preloading HSTS for all domains when possible and disabling weak cyphers.
If certificates are new to you, start with what is an ssl certificate. HackerOne says SSL certificates protect data from eavesdropping or tampering, and it names three common types:
- Domain Validation (DV): basic encryption, issued after verifying domain ownership
- Organization Validation (OV): additional validation steps to ensure organizational legitimacy
- Extended Validation (EV): rigorous vetting processes for maximum security
UpGuard adds that every page should only be available over SSL. Anything sent outside an SSL connection passes in plain text and can be intercepted by anyone willing to put in the work.
Certificates also expire. UpGuard recommends a mechanism that warns the relevant people when a certificate nears expiration. If visitors already see a warning in their browser, the guide on how to fix not secure website warning walks through the fix.
Two smaller settings are worth checking too:
- Cookies: MDN lists secure cookie configuration and says to set all cookies as restrictively as possible.
- Server headers: UpGuard warns that advertising your web server’s type and version only helps those seeking to compromise it.

Patch, scan and back up
Old software is a common way in, so CISA sets deadlines. Patch critical vulnerabilities within 15 days and high ones within 30 days on internet-accessible systems.
The same guidance adds three habits:
- Scan for configuration vulnerabilities as well as software ones.
- Enable automatic updates whenever possible.
- Replace unsupported operating systems, applications and hardware.
If your site runs on WordPress, the wordpress security guide covers that platform specifically.
Patching lowers the chance of a break-in, and a backup limits the damage when something still goes wrong. CISA advises a solution that automatically and continuously backs up critical data and system configurations from your site.
It also says to keep backup media in a safe, physically remote environment and to test disaster recovery scenarios. The options are compared in the website backup guide.
Harden the web application and server
For the application itself, CISA says to identify and remediate the OWASP Top 10 risks first, then move on to less critical ones. It pairs that with three controls:
- Enable logging and audit the logs regularly to spot security events or improper access.
- Send the logs to a centralized log server.
- Require MFA for logins to web applications and the underlying website infrastructure.
On the server, CISA recommends security checklists specific to each application, such as Apache or MySQL, and hardening configurations against them. It also suggests application allow listing and disabling modules you do not need.
Network segmentation helps as well. Placing the web server in a properly configured demilitarized zone (DMZ) limits which traffic can pass between it and your internal network.
How much of the server you can configure depends on your plan, so compare the types of web hosting before you decide which tasks are yours.
Treat all user input as untrusted. CISA says to sanitize it at both the client end and the server end, which is especially critical when it reaches scripts or structured query language statements.
Traffic floods are a separate threat. CISA suggests website caching so the site can withstand unexpectedly high amounts of traffic during DoS attacks, and the ddos protection guide covers that threat in depth.
If you want a filtering layer in front of the application, the web application firewall guide explains how that works. And if a scan or a visitor report suggests your site is already compromised, the website malware removal guide covers cleanup.

Which protections should you add first?
MDN lists its implementation guides in the order it recommends, based on each feature’s security impact and how easy it is to implement. Here is how a few of them rate:
| Protection | Impact and difficulty |
|---|---|
| HTTP to HTTPS redirection | Maximum impact, low difficulty |
| HSTS implementation | High impact, low difficulty |
| Clickjacking prevention | High impact, low difficulty |
| Secure cookie configuration | High impact, medium difficulty |
| Content Security Policy (CSP) | High impact, high difficulty |
The ratings come from MDN’s practical security implementation guides. MDN may revise its guidance over time, so confirm the ratings on its page before acting on them.
MDN is candid about the limits. Its guides do not cover every scenario and cannot guarantee complete security, but following them makes a site significantly more secure.
UpGuard’s checklist is a useful second pass, with 13 steps to harden a site. If you are unsure where to begin, work through this order:
- Lock down the registrar, DNS and every admin login with MFA.
- Redirect all traffic to HTTPS and add HSTS.
- Turn on automatic updates and clear out unsupported software.
- Set up automated backups and rehearse a restore.
- Switch on logging, then work down the application risk list.
Frequently asked questions
What is website security in plain terms?
Show answer
It is the everyday work of keeping a public site from being defaced, knocked offline, robbed of data or taken over. Account protection, encryption, updates, backups and server hardening are the main habits.
Does the browser padlock mean my site is safe?
Show answer
No. UpGuard says the lock icon only scratches the surface of protecting a web server, so you still need patching, backups and tight account controls around it.
Who handles security, me or my host?
Show answer
Agree on it in writing. CISA’s guidance says to talk to your hosting provider or managed service provider about roles and responsibilities for each security measure.
Do small sites really get attacked?
Show answer
Yes. CISA describes attacks on public-facing websites as common regardless of size, so a small site is not exempt.



