Dev.to AI πŸ€– Ai πŸ‘ 0 πŸ“– 1 min read

Preview and staging URLs: do they serve your real data to strangers?

You share your live link. But your AI builder or host also made a preview or staging URL for every change. Those links exist too, and strangers can find them if they are shared or guessable. The question is simple: what

You share your live link. But your AI builder or host also made a preview or staging URL for every change. Those links exist too, and strangers can find them if they are shared or guessable.

The question is simple: what does that preview URL serve, and to whom?

The risk

Depending on your settings, a preview or staging deployment may:

  • Be reachable without a login
  • Use the same environment variables as production, including the same database
  • Show debug pages, test routes or verbose errors that production hides

If a preview points at your real data, anyone with that link can read what the app reads.

Check it in five minutes

  1. List your preview and staging URLs from your host's dashboard.
  2. Open each one in a private window, signed out.
  3. Ask: does it ask for a login? If not, does it show real user data?
  4. Check which database and keys it uses. Staging should use a separate project with fake data.
  5. Visit /.env and your main JavaScript file for keys.

Fixes

  • Turn on your host's deployment protection for previews if it offers it.
  • Give previews their own test database and test keys.
  • Remove debug routes before merging.
  • Delete old previews you no longer need.

Check the outside view

I work on ProofForge. The free scan checks the public side of any URL you own, including a preview: browser bundle, public files, headers and supported backend signals. It never signs in, so it cannot see behind a login. A clean result means nothing was found in the public assets checked, not that the app is secure.

Scan a preview URL, free. Run the free ProofForge scan. No account needed. Only scan apps you own or have permission to test. More guides: the index.

πŸ“° Read the original article on Dev.to AI

Originally published by Dev.to AI. Aggregated on AIWithGhost for educational purposes β€” full credit and traffic to the original publisher.