Table of Contents
Website Security Checklist: How to Check if Your Site Is Secure

To check if a website is secure, look at four things: the SSL certificate and HTTPS setup, the security headers the server sends, files that should never be public (such as .env or .git), and how the site handles cookies and third-party content. Each can be tested from the outside, without logging in.
This website security checklist walks through all of them with what “good” looks like. You can run the same checks on your own site in about 20 seconds with our free security audit.
Table of Contents

Why Small Sites Get Attacked Too
Most attacks are automated. Bots scan millions of sites a day for the same weaknesses: an exposed configuration file, an old plugin, a login page without limits. They do not care whether your business is big or small, only whether the door is open. A basic checklist closes the doors bots try first.
1. HTTPS and the SSL Certificate
- A trusted certificate that covers the exact domain, including
wwwif you use it. - Automatic renewal. Since 15 March 2026 public certificates can be valid for at most 200 days, falling to 100 days in 2027 and 47 days in 2029, so renewing by hand is no longer realistic.
- TLS 1.2 or 1.3 only. TLS 1.0 and 1.1 are outdated and browsers have dropped them.
- Every http:// address redirects to https:// with a permanent 301 redirect.
- No mixed content: scripts, styles and images must load over https too.
2. Security Headers
Security headers are short instructions your server sends with every page. They cost nothing to add and block whole classes of attacks. The OWASP Secure Headers Project keeps a reference list.
| Header | What it prevents | Good value |
|---|---|---|
| Strict-Transport-Security | Downgrade to http and cookie theft | max-age=31536000; includeSubDomains |
| Content-Security-Policy | Injected scripts (XSS) | A policy that lists your script sources |
| X-Frame-Options | Clickjacking in hidden frames | SAMEORIGIN or CSP frame-ancestors |
| X-Content-Type-Options | Browsers guessing file types | nosniff |
| Referrer-Policy | Leaking full URLs to other sites | strict-origin-when-cross-origin |
| Permissions-Policy | Unwanted camera, microphone, location access | camera=(), microphone=(), geolocation=() |
Also hide version numbers. A header like Server: nginx/1.18.0 or X-Powered-By: PHP/7.4 tells attackers which known exploits to try. MDN explains each header in detail, for example Strict-Transport-Security.

3. Files That Should Never Be Public
The most damaging leaks are often simple files left in the wrong place. Each of these should return 404 or 403, never the file itself:
/.env: often contains database passwords and API keys./.git/: lets anyone download your source code and its history./wp-config.php.bakorwp-config.php~: an editor backup with your WordPress database password./phpinfo.php,/debug.log,/server-status: detailed server and error information.- Folder listings such as
/wp-content/uploads/showing every file you ever uploaded.
If any of these is readable, block it in your server or .htaccess configuration right away and change every password or key the file contained.
4. Cookies, CORS and security.txt
- Cookies should carry
Secure,HttpOnlyandSameSiteflags, so they are not sent over http or readable by injected scripts. - CORS should not combine
Access-Control-Allow-Origin: *with credentials. - security.txt at
/.well-known/security.txttells researchers how to report a problem. The format is defined in RFC 9116.
5. What an Outside Scan Cannot See
A scan from the outside cannot check your passwords, your plugins’ versions or your backups. Add these to the checklist and review them monthly: update WordPress core, themes and plugins; delete plugins you do not use; turn on two-factor login for every admin; limit login attempts; and keep daily backups stored somewhere other than the same server.
How to Run the Check
- Open the security audit and enter your domain.
- Fix anything red first: an untrusted certificate or an exposed file is an emergency.
- Add the missing headers in your server, Cloudflare or a security plugin.
- Run the audit again and keep the result link as a record.

Need a Hand?
Headers and redirects take minutes on most hosts, but a Content-Security-Policy that is too strict can break forms or analytics. We set these up safely as part of our web development work. Send us your result and we will tell you what to change first.
How can I check if a website is secure?
Check that it uses HTTPS with a valid certificate, sends security headers such as HSTS and Content-Security-Policy, does not expose files like .env or .git, and sets secure cookie flags. A free security audit tests all of this from the outside in seconds.
What are the most important security headers?
Strict-Transport-Security, Content-Security-Policy, X-Frame-Options (or CSP frame-ancestors) and X-Content-Type-Options. Referrer-Policy and Permissions-Policy are useful additions.
How long is an SSL certificate valid in 2026?
Public TLS certificates issued since 15 March 2026 are valid for at most 200 days. The limit falls to 100 days in March 2027 and 47 days in March 2029, so automatic renewal is essential.
Is HTTPS enough to make a site secure?
No. HTTPS protects data in transit, but the site can still leak files, run outdated plugins or allow script injection. HTTPS is the first item on the checklist, not the whole list.
Will a security scan harm my website?
No. It only reads public responses, the same way a browser does, and does not change anything on the server.