How to Prepare for Your First Penetration Test
A practical checklist for your first penetration test: how to set scope, prepare accounts and environments, pick contacts and keep communication clear.
Free tool
Pick your options and copy ready-made security headers for your server or platform. Start strict, then add only the sources your site actually needs.
Runs entirely in your browser. Nothing you enter is sent to us.
Output for
How to use the result
Headers are one layer of defence. They make some attacks harder but won't fix flaws in your application's logic or access control.
Background
frame-ancestors directive controls which sites may embed your pages.nosniff stops browsers guessing a file's type, so an uploaded file can't be run as script.frame-ancestors.Set headers in one place that every response passes through: your web server, load balancer, CDN or hosting platform. Headers set only in application code tend to miss error pages, static files and redirects.
After deploying, open your browser's developer tools, reload the page and look at the response headers on the Network tab. Check a normal page, an error page and a static file such as an image, since each can be served differently.
FAQ
It can, which is why the builder offers report-only mode. In report-only mode the browser logs what it would block without blocking it, so you can fix the gaps before enforcing the policy.
Modern browsers follow frame-ancestors and ignore X-Frame-Options when both are present. Keeping both protects older browsers, as long as the two agree.
Only when every subdomain, now and in future, will serve HTTPS. Preloading is built into browsers and is slow to undo, so a forgotten HTTP-only subdomain would become unreachable.
No. Headers reduce the impact of some attacks in the browser. They don't fix broken access control, injection or business logic flaws, which need testing to find.
A practical checklist for your first penetration test: how to set scope, prepare accounts and environments, pick contacts and keep communication clear.
Manual testing of your web app's authentication, access control and business logic, the places scanners can't reach.