#Website Strategy
A security checklist for AI-built websites

Conceptual illustration
AI can help you build a website quickly. But a site that looks finished still needs a careful look behind the scenes, especially if it handles customer accounts or sensitive information.
Security isn’t a single setting or a promise that a website can never be compromised. It’s a collection of decisions about access, data, updates, and what happens when something goes wrong. Here are the areas I’d review before launch and as the site grows.
Keep credentials out of public code
API keys, database passwords, and other secrets need to stay on trusted systems. Review the code sent to a visitor’s browser, configuration files, logs, and the site’s source-control history for accidental exposure. Environment variables can help organize configuration, but they are not automatically private: a value placed in browser code is visible to visitors.
If a secret has been exposed, revoke or rotate it promptly, replace it safely, and investigate where it was used. Deleting the visible copy alone doesn’t make the old credential safe.
Protect accounts and administrative access
Use established authentication tools, strong unique credentials, and multifactor authentication where available, particularly for administrator accounts. Protect administrative pages and the underlying actions on the server. Hiding a menu item doesn’t prevent someone from requesting a restricted page or action directly.
Regularly review who has access, remove accounts that are no longer needed, and give each person only the permissions their role requires.
Make sure people can access only their own data
Signing in and having permission are different checks. Every request for a private record or action needs a server-side authorization check. Review account roles and record ownership across pages, downloads, APIs, and administrative tools so one customer cannot reach another customer’s information.
Handle forms and uploads carefully
Validate submitted information on the server, use safe database queries, and encode information when displaying it to help prevent injection and cross-site scripting. Where uploads are allowed, restrict file types and sizes, store files safely, and check access to them.
Rate limits can reduce automated abuse on login, forms, and APIs. They should be set thoughtfully so legitimate visitors can still use the site. A form should also collect only the information the business actually needs.
Review browser and server settings
Review cross-origin resource sharing (CORS) settings so browser access is limited to the origins and operations the application needs. CORS is not a replacement for authentication or server-side permission checks.
Use appropriate security headers and HTTPS, disable production debug mode and detailed public error messages, and check that backups, configuration files, and repository metadata aren’t publicly accessible.
Protect the database and passwords
Limit database access to the systems and people that need it, use encrypted connections where supported, and maintain protected backups. Test whether those backups can actually be restored.
If the application manages passwords itself, they should be stored using a modern password-hashing algorithm such as Argon2id, with appropriate settings, rather than as readable text or reversible encryption. A reputable managed authentication service can handle much of this work when configured correctly.
Keep the software current
Review dependencies, plugins, themes, and services for security updates. Remove components that are no longer needed, and check updates in a safe environment before releasing them when possible. Fewer unused components mean fewer things to monitor and maintain.
Test, monitor, and make a response plan
Before launch, review the architecture, configuration, and access controls, then test the application’s important workflows. Automated scans can help surface issues, but they have limits. Depending on the site and its risks, an independent security review or penetration test may also be appropriate.
After launch, keep useful security logs and alerts without recording passwords or sensitive data unnecessarily. Know who will respond to a suspected incident, how credentials can be revoked, and how the site can be restored.
Where AI fits in
AI can help identify questions to investigate and assist with implementation, but asking it to “make the site secure” is not a substitute for review and testing. The right safeguards depend on what the website does, what it stores, and how it is hosted.
If you’re planning or improving a website and want to understand what needs attention, let’s talk about the project.
Further reading
For a deeper technical foundation, see the OWASP Top 10, its guidance on secrets management, authorization, and password storage. This article was inspired by a short reel by Pierre.