A security and compliance checklist for apps built fast
AI tools make it easy to ship in a weekend. These are the holes to close, and the legal traps to avoid, before real users arrive.

AI coding tools have made it possible to go from idea to working app in days. What they have not changed is what attackers look for, or what the law expects. Here is a checklist worth running before anything meets real users. It is a practical guide, not legal advice.
Access: who can see what
- Turn on access rules at the data layer, such as row-level security, so a mistake in the app cannot expose every record.
- Check authentication on every API route. It is easy to protect the pages and forget the endpoints behind them.
- Never trust the frontend. Prices, roles and permissions sent from the browser can be edited.
- Stop insecure direct object references. If changing
/orders/123to/orders/124shows someone else’s order, the server is not checking ownership. - Protect admin pages with a role check on the server, not by hiding links.
Attacks: the common ones
- Rate limiting on login, sign-up, password reset and contact forms.
- Input validation and escaping so text people type cannot become code on your pages.
- Parameterised queries so user input can never change a database command.
- Strict CORS rules so only your own sites can call your APIs from a browser.
- HTTPS everywhere, and CAPTCHA or a honeypot on public forms.
Production: quiet gaps
- Switch off debug mode, which can leak code and keys in error pages.
- Add security headers that stop your pages being framed or files being misread.
- Verify the signature on every incoming webhook, so a fake ‘payment succeeded’ message cannot unlock an order.
- Keep storage buckets private and check the type and size of uploaded files.
- Keep logs and alerts so you notice unusual activity.
Automated tools now exist that probe your own app the way an attacker would and report what they find. They are worth running before launch and after every big change.
Legal traps that apply from day one
Several laws apply from your first visitor, whether or not you have made a sale. Penalties are set per violation, so they add up quickly:
- Fonts and tracking. In 2022 a Munich court ordered a website operator to pay damages for loading Google Fonts from Google’s servers, sharing the visitor’s IP address without consent. Self-hosting fonts avoids the issue; this site does that.
- Session recording. Recording visitors’ sessions without clear consent has led to claims under US wiretapping laws.
- Children. Services that may attract under-13s in the US have duties under COPPA.
- Marketing email. Under CAN-SPAM, commercial emails need an unsubscribe option and a physical address; UK and EU rules add consent requirements.
- Subscriptions. Several US states require clear renewal terms next to the sign-up button.
- User uploads. In the US, registering a DMCA agent gives you safe-harbour protection for content users upload.
Check the rules that apply where your users live, and get proper legal advice before you scale.
Framework
Four layers of protection
- AccessAuthentication on every route, row-level rules, server-side role checks
- AttacksRate limits, input validation, parameterised queries, strict CORS, HTTPS
- ProductionDebug off, security headers, verified webhooks, private storage, safe uploads
- UpkeepLogs, alerts, updates and a repeat audit after big changes
Checklist
Put it to work
Quick quiz
Check what stuck
Changing an ID in a URL to see another user’s data is called…
The best defence against SQL injection is…
A German court fined a website owner for…
Recap cards
Tap a card to check yourself.
Sources and credits
