Website Security Checklist: 10 Checks Before Launch

10 pre-launch checks to ensure your site enforces HTTPS, secures accounts, validates input, protects secrets, and prevents data leaks.

Website Security Checklist: 10 Checks Before Launch

Before launch, test these 10 security controls - and fix any launch-blocking failures. A working page is not enough: the server must protect accounts, reject unsafe input, and keep private data out of public responses.

  • HTTPS: Check certificates, redirects, and encrypted connections.

  • Login and recovery: Limit failed attempts and require reset links to expire after one use.

  • Permissions: Confirm users cannot access another account’s records or restricted actions.

  • Sessions and cookies: Check cookie flags, session rotation, expiration, logout, and cross-site request controls.

  • Input validation: Keep user input from running as queries or code.

  • Cross-site scripting: Make sure saved and reflected input renders safely.

  • Secrets: Remove exposed credentials and revoke and rotate any that leaked.

  • Dependencies: Fix release-blocking flaws in packages, plugins, and container images.

  • Security headers: Check live responses for script, framing, HTTPS, and cache rules.

  • Sensitive data: Return only needed fields and prevent private records from leaking through APIs, files, or caches.

Test only with permission, using synthetic data and low traffic. Mark unfinished checks as Blocked - not Pass. Record results, assign fixes, and rerun each failed test before closing it. Passing all 10 checks is a launch gate, not a promise of lasting security.

Website Security Checklist: 10 Pre-Launch Checks
Website Security Checklist: 10 Pre-Launch Checks

Checks 1–3: HTTPS and Account Access

1. Check HTTPS Configuration

Check every launch hostname, including the main site, APIs, and admin pages. Use external, read-only checks to verify certificate validity, hostname coverage, certificate chains, supported TLS versions, and HTTP-to-HTTPS redirects[6]. Inspect rendered pages, assets, and API calls for mixed content: HTTPS pages that load HTTP resources[6].

Pass: Certificates are valid, insecure TLS configurations are disabled, and all pages, assets, and API calls load over HTTPS without warnings.

Fix broken certificate chains, incorrect redirects, and HTTP resource references. Any password form served over HTTP blocks launch[6]. Enable HSTS only after HTTPS works reliably. Add includeSubDomains only when every covered subdomain supports HTTPS.

Once HTTPS checks pass, move on to account controls.

2. Test Login and Account Recovery

Check for account enumeration, weak throttling, and reusable recovery tokens. Login and recovery responses must not reveal whether an account exists.

Make a small, agreed-upon number of failed login attempts to test throttling. Stop as soon as the control activates. Check that recovery links expire and cannot be reused[4].

Pass: Login attempts are throttled, and recovery tokens expire and work only once.

Document the password-reset window. Test a link after it expires, and test a used link again. Both attempts must fail[4]. Fix missing throttling, reusable tokens, and account-enumeration leaks before launch.

After authentication passes, test authorization at the endpoint level.

3. Check Server-Side Permissions

Logging in does not grant access to another user’s records or restricted actions. Use multiple test accounts and roles to attempt access through protected endpoints. Cover both requests that read data and requests that change it.

Pass: Users cannot read or change another user’s data or perform restricted actions - even when calling the endpoint directly.

Fix failures with server-side permission checks and user-scoped database queries. Then repeat the request that should have been blocked and confirm the server denies it.

Cybersecurity Checklist for your Website

https://www.youtube.com/embed/evce2mEeNhk

Checks 4–6: Sessions and User Input

After checking access control, test session handling and every path that accepts untrusted input.

4. Secure Sessions and Cookies

Use browser developer tools to inspect test-account authentication cookies for the Secure and HttpOnly flags. Compare session IDs before and after login and privilege changes. They should rotate when the authentication state changes.

Check both idle and absolute expiration. Then replay a saved request after logout to confirm the server rejects it.

Using only test data, attempt a cross-site POST request against a protected action. Confirm that the server rejects missing or invalid CSRF tokens and untrusted origins.

Pass: Sessions rotate and expire as required, revoked sessions fail, and cross-site requests cannot trigger protected actions. Before launch, fix missing cookie flags, sessions that fail to rotate or expire, and missing CSRF controls.

5. Validate Input and Prevent Injection

Send harmless boundary values and non-destructive strings through forms, URL parameters, and APIs. Review server-side validation, then trace input into queries, commands, templates, file paths, and deserialization.

Pass: Invalid input is rejected, and accepted values remain data, not code. Fix failures with parameterized queries, safe APIs, allowlists, and server-side checks. Browser-only validation is not enough.

6. Prevent Cross-Site Scripting

For stored input, check how the app renders content after saving it. Trace harmless markers through reflected responses, stored content, and client-side rendering. Check where each marker lands: HTML, attributes, URLs, or JavaScript.

Keep stored tests isolated from real users and staff. Review unsafe rendering paths, too. A harmless marker does not prove XSS is blocked.

Pass: Input stays text or becomes safely sanitized content wherever it appears. Apply context-specific output encoding, sanitize permitted HTML, and replace unsafe DOM rendering patterns with safe APIs.

Use a restrictive Content Security Policy (CSP) as defense in depth - not as a fix for unsafe rendering. Repeat the original test after each fix. Mark the issue resolved only when that test no longer succeeds.

sbb-itb-541ccea

Checks 7–8: Secrets and Dependencies

7. Remove Exposed Secrets

Exposed secrets can put production at risk before launch. Scan staging checkout artifacts and deployed assets, including rendered HTML, JavaScript bundles, source maps (*.js.map), logs, and error responses. On approved hosts, check whether /.git/HEAD, /.git/config, .env, .sql, and .bak files are publicly accessible. [6]

Do not use discovered credentials to test them. Identify high-risk secrets with known regex patterns.

Patterns such as Stripe’s sk_live_ prefix likely indicate secrets, but a pattern match alone does not establish validity.

Treat public identifiers separately. Browser keys still need tight restrictions. When redacting tokens, show only the first 6 and last 4 characters. [6]

Pass: No private credentials appear in public files or responses. Revoke and rotate exposed secrets - deleting the file is not enough. Remove exposed build artifacts, investigate the exposure, and add deployment-time scanning before launch. [2][6]

Once secrets are cleared, check dependency risk before launch.

8. Fix Vulnerable Dependencies

Audit the repository and build artifacts for direct and transitive dependencies, plugins, and container images. Assess findings based on what reaches production, not just the top-level package list.

Pass: No launch-blocking vulnerabilities remain, and every remaining risk has an owner and a fix plan. Update, remove, or replace affected components, and document temporary controls where needed. Keep changes small and review them before merging. After each upgrade, retest the affected behavior. A successful install does not prove the fix. [4][5]

Next, verify security headers.

Checks 9–10: Headers and Sensitive Data

9. Check Security Headers

Test live responses - not just config files. Check public pages, APIs, login flows, error pages, and downloads, both with and without a signed-in test account.

9. Check Security Headers
HeaderWhat to verify
Content-Security-PolicyHTML pages restrict script sources without wildcards or unsafe script directives. Test changes with Content-Security-Policy-Report-Only, then enforce them.
Strict-Transport-SecuritySet an appropriate HSTS policy. Use includeSubDomains only when every subdomain supports HTTPS.
X-Content-Type-OptionsResponses include nosniff and the correct Content-Type, including APIs and downloads.
Framing restrictionsUse CSP frame-ancestors to control who can embed pages. Set X-Frame-Options: DENY for pages that must never be embedded, or SAMEORIGIN for same-origin embedding.
Cache-ControlSensitive pages, APIs, and downloads use no-store. Public assets can use a different cache policy.

Pass: Relevant responses restrict scripts, framing, and caching without disrupting login flows or downloads. Fix inconsistent settings, then retest the same responses. Report-only CSP is a test step - it does not enforce the policy.

Next, check what data those responses expose.

10. Protect Sensitive Data

Use synthetic records and dedicated test accounts to inspect API bodies, URLs, error responses, backups, caches, and downloads. Check access-denied responses as well: they must not contain the denied record.

For predictable download URLs, request only a known test file owned by the other account. Do not enumerate real customer files.

Pass: Responses return only needed fields, leave out passwords and tokens, and mask personal data. Access requires permission, and sensitive data is neither public nor improperly cached. Block launch if a response exposes a record without permission. Remove excess API fields, fix server-side access checks and cache rules, then retest until the original request no longer exposes data.

Conclusion: Record Results, Fix Issues, and Retest

Treat all 10 checks as a launch gate. For each check, record the status, endpoint, test role, request/response evidence, owner, remediation status, and deployed commit timestamp. Mark any unfinished test - or one that can’t be completed - as Blocked, never Pass. [2][3]

Pause launch for any confirmed launch-blocking issue. Verify a fix only by rerunning the original attack and confirming it fails. Retest affected checks after major application or dependency changes. [2][3][4]

Use AgentProof for Repeat Testing

AgentProof’s Attack Agent can rerun the original attack after a fix is merged to help confirm the finding is closed. Keep retests within your authorized scope and review findings in one place. [2][3][4]

When a fix lands in a pull request, merge it and retest the affected behavior. Close the issue only after the original attack fails. Keep the evidence trail so developers can see what was tried and what the server returned. [3][4]

FAQs

How do I decide which vulnerabilities should block launch?

Prioritize risks based on the data your application exposes. Block launch for vulnerabilities that let someone access sensitive data without permission, bypass authentication, gain higher privileges, execute code, or act as another user.

Test sensitive paths, including checkout and account management. Review automated findings for request and response evidence that confirms the exploit. Set your risk threshold, then configure your deployment pipeline to block releases when High-risk vulnerabilities are confirmed.

Should I test security in staging or production?

Test security in a staging environment before deployment. Run local audits against a staging or local copy of your application to spot vulnerabilities early [1]. Turn the issues you find into tests, apply fixes, and verify that each issue is resolved before deployment [1]. This controlled testing works alongside security monitoring on your live production site [2][1].

How often should I repeat security checks after launch?

Run security checks after every production deployment and on a regular schedule to help catch changes that reopen fixed vulnerabilities. AgentProof runs recurring checks monthly, weekly, or daily, depending on your plan.