Terms & acceptable use
⚡ Free Replit app check

Paste your live Replit link (like my-app.replit.app or your own domain). We check it from the outside for leaked keys, open data and more. Free.

FreeJust your email to see results10 seconds

The free scan shows your problems. The $9 fix report gives you a copy‑paste fix prompt for each one.

Guide · Replit Agent · Updated

Is My Replit App Secure? How to Check Your Live Replit App Before You Launch

Replit Agent can turn a prompt into a working app and publish it to a .replit.app URL. Before real people use it, check three things on the live link: where your keys live, who can open the app, and how your database is exposed. Here is what Replit's own docs say, and how to check your live app yourself for free.

1. The short answer

A Replit app is only as safe as where its keys live and what its live URL exposes. The big risks are:

  • Secret keys hard-coded in the project, or passed into frontend / browser code (including any VITE_ env var).
  • A published app left Public when you thought only your team could open it.
  • DATABASE_URL or other connection strings ending up in client JavaScript.
  • Publishing development test data into the production database by mistake.

Replit gives you Secrets, access controls, separate databases and a Security Center. You still need to check the live app from the outside, because that is what a stranger sees.

2. How Replit handles secrets and publishing

A few facts from Replit's own docs (linked at the bottom of each section):

  • Secrets store API keys, tokens and database connection strings. Replit encrypts them and exposes them as environment variables to your project's code. Use Configurations only for non-sensitive settings like log levels.
  • Hard-coding secrets risks exposure when you share a public project, copy-paste code, commit to a public repo, or screen-share.
  • Secrets work for deployment types except Static Deployments.
  • When you add Replit's Database, the editor creates a DATABASE_URL secret. Legacy Neon setups may also have PGHOST, PGUSER, PGPASSWORD and similar.
  • Publishing suggests a .replit.app domain. You choose who can access the app: Public, Password protected, Workspace only, or Invite only.
  • You get a development database while you build and a separate production database when you publish. Agent can change the development database; Agent cannot modify production.

Sources: Replit: Secrets · Replit: Publishing · Replit: Development and production databases · Replit: Who can access your app

3. 5-minute check on your live Replit app

Do this on the published URL (your .replit.app or custom domain), not only the editor preview.

Step 1: Confirm who can open it

Open Publishing → Sharing. If it says Public, anyone with the link can use the app. Open a private window and visit the URL with no Replit login. If it loads fully, treat it as public production.

Step 2: Search the live JavaScript for secrets

Open the live app → DevTools → Network → reload → open the JS files your page loads. Search for patterns like sk-, sk_live, sk_test, service_role, sb_secret_, AKIA, postgresql://, and DATABASE_URL. If a real secret shows up, move the call to the server, put the key in Secrets, and make a new key at the provider.

Step 3: Check for VITE_ (or NEXT_PUBLIC_) secrets

If your frontend is Vite-based, Vite docs say any env var starting with VITE_ is inlined into the client bundle. Next.js does the same with NEXT_PUBLIC_. Those prefixes are for public values only, never for OpenAI, Stripe secret keys or database passwords.

Step 4: Try /.env and print no secrets in the browser

In a private window, visit yourapp.replit.app/.env and similar paths. You should get not-found or your normal app page, not a list of keys. Also confirm your app does not write secrets into localStorage or sessionStorage (Replit's checklist calls this out).

Step 5: If you use Supabase from the browser

The publishable/anon key can be public. Your table rules still protect the data. For a free logged-out table test and how to read the results, use our Supabase RLS check guide. We are not repeating that deep dive here.

Step 6: Check title, description and a few links

View page source. If the title is empty or still says something like "Replit" or a template default, fix it before you share. Click the main nav and footer links on the live site.

4. Secrets vs client / frontend code

Replit's Secrets page and security checklist agree on the split:

  • Secrets: API keys, auth tokens, database connection strings. Encrypted. Read from server code as environment variables.
  • Configurations: Non-sensitive settings only (feature flags, public URLs, log levels). Do not put passwords or API keys here.
  • Never put secrets in client-side JavaScript, local storage, session storage, or cookies without proper security attributes.
  • Confirm Production app secrets under Publishing → Adjust settings when the live app needs different credentials than the editor.
  • If a key was ever public, rotate it. Removing it from the project is not enough.

Sources: Replit: Secrets · Replit: Security checklist · Vite: Env variables

5. Public repls and published app access

Two different things get mixed up:

  • Sharing / remixing the project (cover page, remix, multiplayer) can expose secret names to remixers even when values stay hidden, per Replit's Secrets visibility table. Collaborators with the right access can see values.
  • Published app Sharing controls who can open the live URL: Public, Password protected, Workspace only, or Invite only. Personal workspaces default to Public.

If you pasted a Public .replit.app link in a Discord or tweet, assume anyone can use whatever that app exposes, including test data and any keys that leaked into the frontend.

Sources: Replit: Who can access your app · Replit: Secrets (visibility) · Replit: Publishing

6. Development vs production database

Replit keeps two databases so live user data stays safer while you keep building:

  • Development: where you and Agent experiment. Agent can create and modify tables.
  • Production: created when you publish (on current infrastructure, when the development database has data). Agent cannot modify it. Schema changes from development are applied at publish time.

Only copy development data into production if that data is safe for a live app. If a production connection string was exposed, regenerate production database credentials. Keep DATABASE_URL in Secrets and only use it on the server.

If your app also talks to Supabase from the browser, table rules (RLS) still matter. See the Supabase RLS check.

Source: Replit: Development and production databases

7. Replit Security Center (and what it does not cover)

Replit's Project Security Center can scan while you build and before you publish:

  • Level 1 (free): dependency and package checks.
  • Level 2 (paid): adds Security Agent source-code review (static analysis + model review).
  • Level 3: adds an external black-box test of the live Preview.

Publish checks (including "Block publishing of critical vulnerabilities") are separate from on-demand Security Center scans. Replit's docs say a passing publish check is not a guarantee that your application code has no vulnerabilities. Use Security Center, fix findings, republish, then still check the live public URL from the outside.

Sources: Replit: Project Security Center · Replit: Security scan levels · Replit: Agent security scans

8. Security headers, title and broken links

These do not stop a leaked key, but they catch easy launch mistakes. Replit's checklist recommends headers like X-Frame-Options, X-Content-Type-Options and a Content-Security-Policy. Also set a real title and description, and fix broken nav links on the live site.

Source: Replit: Security checklist

9. Copy-paste fix prompts for Replit Agent

Paste one into the Agent chat. After each fix, publish again and repeat the live check.

Replit: move secret keys into Secrets (server only)
Find every secret API key in my project, like OpenAI, Anthropic, Stripe secret keys (sk_ or rk_), database passwords, and any service_role or secret key. Move each call that uses one into server-side code (not client/frontend). Store each key in Replit Secrets, not hard-coded and not as a Configuration. Make sure no secret is in a variable that starts with VITE_ or NEXT_PUBLIC_, and that secrets are not sent to localStorage, sessionStorage or client JavaScript. Then list every key you moved so I can make a new one.
Replit: confirm production secrets and access
Review my Publishing settings. Confirm Production app secrets include every key the live app needs, separate from development if needed. Confirm Sharing is set the way I want (Public, Password protected, Workspace only, or Invite only). If this app should not be open to the whole internet, change it before I share the link. Summarize what you found.
Replit: keep DATABASE_URL off the client
Find every place my app reads DATABASE_URL, PGHOST, PGPASSWORD, or any Postgres connection string. Those must only run on the server. Remove any use from frontend code. Confirm development and production databases stay separate, and that I am not shipping development test data into production unless I mean to. Show me what you changed.
Replit: add basic security headers
Add security headers for my app: Content-Security-Policy with frame-ancestors none, X-Frame-Options DENY, X-Content-Type-Options nosniff, Referrer-Policy strict-origin-when-cross-origin, and Strict-Transport-Security where HTTPS is used. Keep the CSP compatible with my app. Show the change.
Replit: fix title, description and broken links
Set a clear page title and meta description on my home page (not a default template title). Add an Open Graph title and description. Crawl the home page for broken internal links and fix or remove them. List every change.

10. Check it for me

Don't want to do this by hand after every publish? VibeCheck checks your live app from the outside, the way a stranger would. It searches the JavaScript your homepage loads for secret keys. If your app talks to Supabase from the browser, it checks common table names to see if they are open. It also checks security headers, Google basics like your title and sitemap, and broken links.

It works with any public link: your replit.app address, your own domain, or another public URL. It only looks. It never logs in, fills in forms or tries to break in. If it finds an open table, it notes the table name and never stores the rows.

It is a good partner to Replit's own checks: Security Center looks at your project (and optionally the Preview), and VibeCheck looks at the live published site from the outside.

Pricing: the problems list is free (just add your email). A fix report with a copy-paste prompt for every problem is $9. Or get 10 fix reports for $29. No subscription.

No tool can promise your app is safe. VibeCheck catches common, costly mistakes so you can fix them first.

11. FAQ

Is my Replit app secure?

It can be, but you have to check the live app. Replit Agent can build and publish quickly. The common problems are secret keys put in frontend code (or in a VITE_ variable), a published app left Public when you meant it to be private, and database connection strings or private data that end up in what visitors download.

Where should API keys live in a Replit app?

In Replit Secrets (Tools → Secrets), then used only on the server. Replit's Secrets docs say the tool encrypts values and makes them environment variables so you do not hard-code them. The security checklist says never put API keys in frontend code, local storage or session storage. If you use Vite, any variable that starts with VITE_ is built into the browser bundle, so do not put a secret there.

Are development and production secrets the same?

They can differ. Replit's help and Secrets docs say development Secrets and production (published app) secrets are separate by design. When you publish or republish, secrets can sync, but you should confirm Production app secrets under Publishing → Adjust settings. Secrets are not available for Static Deployments.

Who can open my published Replit app?

You choose under Sharing in the Publishing tool: Public, Password protected, Workspace only, or Invite only. Replit docs say apps in a personal workspace default to Public, and organization apps default to a private option. Anyone with a Public URL can use the app, so treat that URL like production.

Can Agent change my production database?

No. Replit's development and production databases docs say Agent can create and change tables in the development database, but Agent cannot touch the production database. Schema changes you made in development are applied to production when you publish. Keep DATABASE_URL and any Postgres passwords in Secrets, never in client code.

My app passed Replit's security scan. Do I still need to check?

Yes. Check the live published URL too. Security Center Level 1 is free dependency checks. Level 2 (paid) adds an Agent source-code review. Level 3 adds a black-box test of the live Preview. Publish checks are separate and do not replace a full scan. Strangers only see what is live on your .replit.app or custom domain.

More questions? See the VibeCheck FAQ. Also useful: Is my Bolt app secure? · Is my v0 app secure? · Supabase RLS check · Is my Lovable app safe? · Is my API key exposed?. Before you launch, run the vibe coding security checklist (12 checks for any AI-built app).