Table of Contents

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

    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.

    Eight security checks: SSL certificate, TLS version, HTTPS redirect, security headers, exposed files, directory listing, secure cookies and security.txt
    02

    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.

    03

    1. HTTPS and the SSL Certificate

    • A trusted certificate that covers the exact domain, including www if 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.
    04

    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.

    HeaderWhat it preventsGood value
    Strict-Transport-SecurityDowngrade to http and cookie theftmax-age=31536000; includeSubDomains
    Content-Security-PolicyInjected scripts (XSS)A policy that lists your script sources
    X-Frame-OptionsClickjacking in hidden framesSAMEORIGIN or CSP frame-ancestors
    X-Content-Type-OptionsBrowsers guessing file typesnosniff
    Referrer-PolicyLeaking full URLs to other sitesstrict-origin-when-cross-origin
    Permissions-PolicyUnwanted camera, microphone, location accesscamera=(), 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.

    Good, weak and bad settings for certificate expiry, TLS version, HSTS and Content-Security-Policy shown as green, yellow and red bars
    05

    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.bak or wp-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.

    06

    4. Cookies, CORS and security.txt

    • Cookies should carry Secure, HttpOnly and SameSite flags, 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.txt tells researchers how to report a problem. The format is defined in RFC 9116.
    07

    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.

    08

    How to Run the Check

    1. Open the security audit and enter your domain.
    2. Fix anything red first: an untrusted certificate or an exposed file is an emergency.
    3. Add the missing headers in your server, Cloudflare or a security plugin.
    4. Run the audit again and keep the result link as a record.
    Order for fixing website security: certificate and HTTPS, exposed files, HSTS, other headers, cookies and CORS, then a monthly review
    09

    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.

    Website Security Checklist: FAQ
    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.