Broken access control is still number one in the OWASP Top 10:2025, and logs that nobody is alerted about do little to spot attacks. Good recovery habits then make sure a mistake or a breach can be rolled back quickly.
0 of 6 habits in place
Your progress is saved only in this browser. Nothing is sent to us.
Essential
Do this first. It stops the most common attacks.
Recommended
Worth doing once the essentials are in place.
Advanced
Extra protection for people facing higher risk.
Check access on the server for every request
Essential
Verify permissions on the server for every endpoint, so that users can only see and change their own records.
Why it matters
Broken access control, such as changing an ID in a URL to see someone else's data, is the most common serious flaw in web applications.
How to do it
Check permissions on the server, never only in the user interface.
Deny access by default and allow only what each role needs.
Test by changing IDs in requests to see whether other users' data appears.
Add automated tests for your access rules.
Add HTTPS and security headers carefully
Recommended
Use HTTPS, X-Content-Type-Options: nosniff, CSP frame-ancestors and a Referrer-Policy, and start HSTS with a short max-age.
Why it matters
Security headers block common browser-based attacks. HSTS is powerful, but a long max-age combined with an expired certificate locks visitors out.
How to do it
Redirect all traffic to HTTPS.
Add X-Content-Type-Options: nosniff and a Referrer-Policy.
Use CSP frame-ancestors to control who may embed your pages.
Start HSTS with a short max-age, then raise it and consider preloading once everything works.
Watch out: A long HSTS max-age combined with an expired or broken certificate makes your site unreachable for returning visitors.
Set alerts, not just logs
Essential
Get notified about failed admin logins, new admin accounts and unexpected spending.
Why it matters
OWASP renamed its logging category to stress alerting: logs that nobody watches rarely stop an attack.
How to do it
Choose a few critical events to alert on.
Send alerts to an email address or chat where someone will see them.
Test each alert once.
Tune noisy alerts so that real ones are not ignored.
Fail closed on errors
Recommended
When a check fails or throws an error, deny access instead of allowing it.
Why it matters
Mishandling of exceptional conditions became a new OWASP Top 10 category in 2025. Code that 'fails open' turns an error into a security hole.
How to do it
Review how your code handles errors in login and permission checks.
Make errors deny access by default.
Do not show internal error details to users.
Test the error paths, not just the normal ones.
Take a snapshot before configuration changes
Recommended
Take a provider snapshot and back up the original configuration before you change a server.
Why it matters
If a change locks you out or breaks the site, a snapshot lets you roll back in minutes instead of hours.
How to do it
Take a snapshot in your hosting dashboard before risky changes.
Copy the original configuration file before editing it.
Consider tracking /etc with a tool such as etckeeper.
Delete old snapshots you no longer need.
Keep tested off-site backups of files and database
Essential
Keep versioned, encrypted backups of site files and the database away from the server, and test restoring them.
Why it matters
Breaches are often noticed days later. Only versioned, tested backups guarantee that you can return to a clean point from before the attack.
How to do it
Back up files and the database automatically to another location.
Keep several versions, not just the latest copy.
Encrypt the backups and protect access to them.
Regularly test a full restore on a separate server.