You can check a website's basic security in under an hour with free tools: confirm that HTTPS works, review the security headers, and look for files that should never be public. These checks catch the common configuration mistakes, but they cannot tell you whether one user can read another user's data, which is where many serious problems in web applications sit. A complete answer needs an authorized test that signs in and tries to cross the boundaries your product is supposed to enforce.
This guide walks through the quick checks step by step, shows what each one misses, and explains how to test the part that matters most. If you want the background first, read our explainer on what penetration testing is.
What "Secure" Means for a Website
Security is not one setting. A website can have a valid certificate and still leak customer records through a broken login form or an API that trusts the wrong ID. When people ask whether a website is secure, they usually mean three things: is traffic protected while it travels, is the server configured safely, and can someone use the application to reach things they should not see.
The steps below cover all three. Run them on sites you own or have permission to test, and keep a short record of what you checked and what you found.
Step 1: Check HTTPS and the Certificate
Open the site and confirm that it loads over https:// with no mixed-content warnings, which appear when a secure page loads scripts or images over plain HTTP. Click the padlock in your browser and check that the certificate is valid, issued to the right domain and not expired. Then type the address with http:// and make sure it redirects to the HTTPS version rather than serving a separate copy of the site.
An expired or mismatched certificate is easy to spot. It is also a sign that nobody owns the renewal process, which often means other maintenance is behind as well.
Step 2: Review the Security Headers
Security headers are instructions the server sends with each page. Your browser's developer tools show them in the Network tab, and many free online header checkers display them in a table. Most sites should send the headers below.
| Header | What it does | If it is missing |
|---|---|---|
| Strict-Transport-Security | Tells browsers to use HTTPS only for this site | A first visit over HTTP can be downgraded or intercepted |
| Content-Security-Policy | Limits which scripts and sources the page may load | Injected scripts face no restriction from the browser |
| X-Content-Type-Options | Stops browsers from guessing file types (value nosniff) | Uploaded files can be misread as scripts |
| X-Frame-Options or frame-ancestors | Stops other sites from embedding your pages | Clickjacking attacks become easier |
| Referrer-Policy | Controls how much of the current URL is sent to other sites | Full URLs, which may contain tokens, reach third parties |
Headers are a layer of defense, not a fix for a broken application. A strong Content-Security-Policy does not stop an attacker from reading data that your own code hands them.
Step 3: Look for Exposed Files and Debug Pages
Attackers start with predictable paths. On a site you own, check whether these return content: /.git/config, /.env, backup archives such as backup.zip, and admin or debug pages such as /admin or any page that prints server configuration. A public .git folder can expose your full source code history. An exposed .env file often holds database passwords and API keys, and secrets in client code are a related problem covered in our guide to secrets in frontend code.
Error pages that print stack traces, and directory listings that show every file name, are also worth removing. They give an attacker a map of your stack for free.
Step 4: Check Logins, Forms and Cookies
Open the login, sign-up and password reset pages and watch what the site does. Does it allow unlimited password attempts with no delay or lockout? Is the password sent only over HTTPS? Do reset links expire, and can they be used only once?
For the session cookie, look at the Set-Cookie header or the cookie settings in developer tools. It should carry three attributes: Secure so it only travels over HTTPS, HttpOnly so scripts cannot read it, and SameSite to limit cross-site requests. OWASP's Authentication Cheat Sheet covers these basics in detail, and our authentication security checklist turns them into a longer list.
Step 5: Test Access Control While Logged In
This is the step most quick checks skip, and it is where the most damaging problems usually are. Create two test accounts, A and B, and give each some data. Log in as A and note an ID that belongs to A, in a URL or an API response. Then log in as B and request the same resource using A's ID. If B can see or change A's data, you have found broken access control, the category that sits first in the OWASP Top 10.
Keep the test simple and repeatable. Write down each page you tried, which account you used, what you expected to see and what you actually saw. Try the same steps for every role your product has, including the logged-out visitor. Most access control bugs are found by someone who follows one resource across two accounts, not by someone who only reads the code.
Our explainer on IDOR and broken access control shows how these bugs look in code and how to fix them.
Step 6: Review Third-Party Scripts and Libraries
Every analytics tag, chat widget, payment form and font loaded from another domain runs with access to your page. Open the browser's developer tools, reload the page, and list every domain the site loads scripts from. Ask whether you still use each one, and whether the vendor is one you trust. Old tags that nobody remembers adding are common, and they are a real risk because a compromised third-party script can change what your visitors see.
Check the libraries your site depends on as well. A framework or plugin that is years out of date may still work, but it may also carry known vulnerabilities. Update what you can, remove what you do not use, and make sure the script tags you do keep are served from sources you control or trust.
What a Quick Check Cannot Tell You
Checks like these are useful and fast, but they cannot prove that an application is secure. A header check does not know your business rules, so it cannot tell that a free-plan user can call a paid feature, or that a discount can be applied twice. Quick checks also miss chained problems, where a small weakness in one place opens a path to something much larger.
| Approach | Time | Finds | Misses |
|---|---|---|---|
| The checklist above | About an hour | Configuration mistakes and exposed files | Logic flaws and access control between users |
| Automated scanner | Minutes | Known patterns and outdated software | Business rules and chained attacks |
| Penetration test | Hours if automated, weeks if manual | Proven, exploitable issues across roles | Anything outside the agreed scope |
Each row has a job. The checklist is your hygiene, the scanner is your early warning, and the penetration test is the proof. For a deeper look at the difference, read penetration testing vs vulnerability scanning.
A Short Website Security Checklist
- HTTPS on every page, with a valid and current certificate
- Plain HTTP redirects to HTTPS
- Security headers present, with a restrictive Content-Security-Policy
- No public
.git,.env, backup or debug files - Login rate limits, and reset links that expire and work once
- Session cookies with
Secure,HttpOnlyandSameSite - Two-account test of every page and endpoint that shows personal data
Turning Results Into Fixes
Each failed check should become a ticket with three things: the URL or request where you saw the problem, the exact result you got, and the change that would fix it. A header problem is usually a server or hosting setting. An exposed file is usually a deployment step that copied too much, so add a rule to exclude it. A broken access control issue is a code change, and it needs a test that proves the fix, not just a reading of the code.
After each fix, run the same check again and keep the before and after results. A fix is only real when the attack stops working, and that is the same principle behind a formal retest in a penetration test.
Where Hetz Fits
If you want the access control step done for you, Hetz runs it as part of an automated test. You verify ownership of your domain, add test users, and agents attack the live product the way a real attacker would. Only findings with proof reach the report, each with the exact request and response, a fix for your stack, and a retest once you have changed the code. See the approach in more detail on our web application penetration testing page.
Next steps
Run the five steps above on your most important domain this week, and write down anything that fails. Then schedule a full test with two accounts before your next big release. You can see how a run works on the home page, review pricing, or start a scan.
FAQ