A website security check before launch is a short list of tests you run on a new site while it is still quiet. You look for the gaps that are cheap to close now and painful to close later. This guide walks through each test in plain words.
You do not need to be a security specialist to follow it. Most of the checks take a few minutes. Some need your developer or host to make a change.
Why test before you go live
Before launch, you can change settings, remove test accounts and restart servers without upsetting anyone. After launch, every change has to fit around real visitors and real orders.
New sites also carry leftovers from the build. Think of test pages, sample content, debug settings and admin accounts with easy passwords. These are easy to forget once the site is busy.
A check before launch gives you a clean starting point. You can also keep the results and compare them with later scans.
The certificate and HTTPS
Every page should load over HTTPS with a valid certificate. Check these points:
- The certificate is in date. Note the expiry date and who will renew it.
- It covers every name you use. Test both the www and the bare domain, plus any subdomain you plan to link.
- The chain is complete. A missing intermediate certificate can cause errors on some phones even when the date is fine.
- Plain HTTP redirects to HTTPS. Type the address with http:// and confirm you land on the https:// version.
- No mixed content. Images, scripts and fonts should also load over HTTPS, or the browser may block them.
If a browser shows a warning on launch day, many visitors will simply leave. It is worth testing on a phone as well as a laptop.
Security headers and server settings
Security headers are short instructions your server sends with each page. They tell the browser how to behave, for example whether the page may be framed by another site. Our guide Security Headers Explained covers each one in detail.
Before launch, confirm the main ones are present:
- Strict-Transport-Security, so browsers keep using HTTPS.
- Content-Security-Policy, which limits where scripts and other files can load from.
- X-Content-Type-Options, set to nosniff.
- A frame rule, either frame-ancestors in the policy or X-Frame-Options.
- Referrer-Policy, so full addresses are not passed to other sites.
Also check what the server gives away. Error pages should not show stack traces, file paths or software versions. Directory listings should be off.
Logins, forms and leftovers from the build
This part needs a careful walk through the site, not just a scan. Go through it with your developer if you can.
- Delete test and demo accounts. Keep only the admin accounts you need, each with its own login.
- Use long, unique passwords and turn on two-step login wherever the platform allows it.
- Move or protect the admin login page if your platform supports it, and limit repeated failed logins.
- Remove sample pages, old copies of the site and backup files left in public folders.
- Turn off debug mode and any developer tools that show internal details.
- Test every form. Check it rejects odd input, and that it sends messages only to the address you expect.
- Update the platform, theme and plugins to current versions, and remove the ones you do not use.
If your site runs on WordPress, the WordPress Security Checklist goes through these steps for that platform in order.
For a wider reference on common web risks, the OWASP Top 10 is a free, public list that many developers use as a starting point.
Keeping a record of the checks
You can do much of this by hand. Write down what you checked, the date, and what you found, so you can repeat the same steps after launch.
A short written record is enough: the certificate expiry date, which security headers were present, which test accounts you removed, and who can renew the certificate. Our guide Free Website Security Check walks through a shorter version of this list in about ten minutes.
If you launch many sites, or want a script to repeat the checks, you can test the certificate with a standard tool such as OpenSSL, and you can read security headers with a simple HTTP request. Save the output next to the date.
Sites that will handle logins, payments or customer details deserve a slower walk-through. Ask a second person to try the forms, the admin login and a restore of the backup before you go live.
After launch: keep checking
A check before launch is a snapshot. Sites change. Plugins update, certificates renew and new pages go up.
- Run the same checks again after each big change.
- Write down who owns the certificate, the hosting and the domain.
- Take a backup, then test that you can restore it.
- Read Is My Website Safe? for the signs to watch once the site is busy.
No scan can promise a site has no problems. Scans report evidence and signals, and you decide what to fix.