Guides · Website security
How to test website security
You test a website's security from the outside, the same place an attacker starts: list everything your domain exposes, then check five things — open ports, TLS, security headers, exposed files, and forgotten pages or subdomains. A free external scan runs most of that in minutes. This guide walks through each check, what a bad result actually looks like, and the point where a home test stops being enough and you need a proper audit.
By the Ingenious AI team · Published 19 November 2026
Run the test as you read: the website security test at BreachHunter starts with a no-signup mini-scan, and the full free scan covers the five checks below.
Before you start: only test sites you own
One rule before anything else. Test your own site, or a site whose owner gave you written permission. That is the line between maintenance and an offence, and reputable scanners enforce it — BreachHunter asks you to confirm ownership before a full scan runs. If you manage sites for clients, get the permission in writing once and keep it with the contract. It takes an email.
Step 1: List what the internet can see
Most owners test the homepage and stop. Attackers don't. Start with your DNS records and list every hostname that resolves: the main site, the shop, the staging copy from two redesigns ago, the mail host, the "temporary" landing page nobody took down. Certificate Transparency logs — the public record of every TLS certificate issued — will show you subdomains you have forgotten ever existed. Each hostname is a separate door, and the neglected ones are the ones that get opened. Write the list down; it is also the scope for every future test.
Step 2: Check the doors — ports and services
A port is a numbered door into your server, and each open one runs a service that answers strangers. A normal website needs very few: web traffic, and not much else. What you are hunting for is the doors that should never face the internet — remote desktop, database ports, old file-transfer services. A database port answering the public internet is not a minor finding; it means anyone can knock on the door your customer records sit behind. If you don't recognise a service on an open port, that is the finding.
Step 3: Check TLS and security headers
TLS is the encryption behind the padlock. Check that the certificate is valid, current, and matches the hostname, and that old, broken encryption versions are switched off. Then check the security headers — the short instructions your server sends with every page. A missing content-security policy or clickjacking protection rarely breaks in by itself, but each gap removes a safety net your visitors were counting on. These checks take seconds and are the part of the test most free tools do well.
Step 4: Hunt for exposed files and forgotten pages
This is where small sites actually get hurt. Configuration files holding passwords. The .git folder that hands over your entire source code. Backup archives — a zip of the whole site, database included — sitting in a public folder because someone exported it there "for a minute" in March. Installer scripts from the original setup, still live. Admin login pages on subdomains nobody monitors. None of this needs a clever attacker; it needs a search. A good external test probes the common paths for exactly these files and tells you which ones answer.
Step 5: Read the results like an owner, not a scoreboard
One exposed database backup outweighs forty notices about cookie flags. Read findings in the order a scanner that ranks by severity puts them: what can a stranger reach, what can they do with it, what does it lead to. Fix the critical items first, then re-run the same test and confirm each one now comes back closed. That re-scan is not a formality — it is the only proof the fix worked, and it is the artefact you can show a client or an insurer. For the deeper version of what each phase examines, see what a website security assessment tests.
What a free external test proves — and what it doesn't
A free external scan proves your outside surface: the ports, certificates, headers, files and pages a stranger can reach today. That is genuinely most of the risk for a small site, because most small-site incidents start with exactly that surface. What it cannot prove is anything behind a login it doesn't have: whether your staff accounts use weak passwords, whether your code handles input safely, whether your permissions make sense. It also cannot judge your backups or your update habits. Treat a clean external test as "the street-facing doors are locked", not "the building is safe". The wider routine — access, updates, backups, ownership — lives in our website security checklist, which this test feeds as its first layer.
When a test becomes an audit
Three signals say you have outgrown the home test. A third party asks for evidence: an insurer's questionnaire, an enterprise client's vendor review, a payment processor after an incident. Your site holds data whose loss would hurt — customer accounts, orders, health or financial details. Or the test keeps finding things you don't understand well enough to fix. An audit adds authenticated checks, configuration and account review, and a human-written report with a fix order. It costs real money, which is why the order matters: free test first, fix what it finds, then buy audit depth only for what remains.
Mistakes that make home tests meaningless
Scanning only the homepage and calling the estate tested. Trusting a single score with no findings listed behind it — a grade you cannot inspect is marketing. Testing once, at launch, and never again, while the site changes every month. Fixing findings without re-scanning, so "fixed" means "we edited something and hoped". And the quiet one: testing a staging copy that is locked down while production — the one with the real data — runs a different, older configuration. Test the thing the internet can actually reach.
Sources
- OWASP — Web Security Testing Guide — the method behind steps 2–4: enumerate the surface, then test what it exposes.
- MDN Web Docs — Web security — the header and TLS practice step 3 grades your site against.
All sources accessed November 2026.
Frequently asked questions
How do I test my website security myself?
Start from the outside, the way an attacker does. List every hostname your domain resolves to, then run an external scan that checks open ports, TLS, security headers, exposed files and discoverable directories. Fix anything marked critical, then re-scan to prove the fix. That loop — scan, fix, re-scan — is a real test. A single score with no findings behind it is not.
Is it legal to scan my own website?
Yes — testing a site you own, or one you have written permission to test, is normal maintenance. Scanning sites you do not own or have no permission for is a different matter and can be unlawful. Every BreachHunter scan starts with an ownership confirmation for exactly this reason.
What is the difference between a security test and a security audit?
A test checks what is reachable and weak right now, usually from the outside. An audit goes wider and deeper: accounts and permissions, configuration, sometimes code, plus a human-written report you can hand to an insurer or a client. Most small sites need the test monthly and the audit only when a third party asks for one.
How often should I test my website?
Monthly, and after every change that touches the public site: a deploy, a new plugin, a hosting move, a new subdomain. Most dangerous exposures are introduced by a change somebody made on a Tuesday, not by the passage of time.
Related guides and tools
- Website security checklist for small businesses — the pillar this guide belongs to
- What a website security assessment tests — the five phases in depth
- How much does a website security audit cost?
- BreachHunter — run the website security test
- All Ingenious AI guides