Skip to content
ShipCheck
Guides

Replit app security check: what to test before you launch a Replit app

Updated 30 October 2026

Replit Agent can build and deploy a full app for you. Before you share it, check what the live app shows to strangers, because the AI chose where your keys and data live.

Check your own app for this, free.

Paste your live URL. ShipCheck looks for leaked API keys in your page and JavaScript, exposed files like /.env and /.git, missing security headers, SSL certificate problems, domain expiry (custom domains only) and what Google sees without running JavaScript. You'll see your score without signing up.

See an example report

1. Secret keys in the code your visitors download

Keep keys in Replit's Secrets and only read them in server code. A key used directly in browser code, or bundled into the frontend build, is visible to every visitor.

How to check: open your live site, open DevTools → Sources, and search the JavaScript for sk_live, sk-, service_role, sb_secret_ and AKIA. If you find one, rotate it (create a new key, update your app, then revoke the old one). Deleting it from the code is not enough, because it may already have been copied. Not sure about a key? Paste its first few characters into the free is this key safe? tool.

2. Your database: Row Level Security

Replit apps can use Replit's own database or an outside one like Supabase. If your app uses Supabase, the URL and anon or publishable key in your frontend are public by design. What protects your data is Row Level Security on every table, for reads and for writes. See how to test RLS properly and RLS for insert, update and delete.

3. Files that should never be public

Check that /.env, /.git/config and .js.map source maps don't download from your live site. Many hosts return the homepage for any path, so look at what actually comes back, not just the status code. More in source maps in production.

4. Security headers and HTTPS

Where you add headers depends on how the app is served. Run curl -I https://your-app.com and look for Strict-Transport-Security, Content-Security-Policy, X-Frame-Options and X-Content-Type-Options, and check that plain http:// redirects to https://.

5. Can Google and AI search see your app?

Run curl https://your-app.com. If your headline, <title> and meta description aren't in the raw HTML, crawlers that don't run JavaScript see an empty page. Also check for a leftover noindex tag. See why a vibe-coded app isn't on Google.

6. Check again after every big prompt

Each AI edit can move a key into the frontend or loosen a policy. ShipCheck's paid plans re-scan weekly (or daily) and email you what's new, what's fixed and what's still open. The full list is in the pre-launch security checklist.

Copy-paste prompt: ask Replit to audit itself

Audit this project for security issues before launch:
1. List every API key or secret and where it is used. Any secret in frontend code
   or in a browser-exposed env variable must move to server-side code.
2. If we use Supabase, list every table, whether RLS is on, and what each policy
   allows for reads and writes. Flag any table without RLS or with "true" policies.
3. Make sure no .env file is publicly served and production source maps are off.
Show me the changes before applying them.

FAQ

Where should I keep API keys in a Replit app?

In Replit's Secrets, read only by your server code. Never put a secret key in frontend code, because everything sent to the browser is public.

Does ShipCheck need access to my code?

No. The free scan only reads your live site from the outside, like a browser: your pages, JavaScript files and a few well-known paths. It never logs in or changes anything.

Run the same checks on your app.

A free scan takes under a minute. No card, and no sign-up to see your score and the list of issues.

See an example report