Dev.to Security πŸ” Cybersecurity πŸ‘ 0 πŸ“– 3 min read

Are your AI-built app's private pages showing up in Google

You search Google for your own app's name and find more than you expected. Your customers' profile pages. A preview copy of your site. A page that says "Invoice for Jane Smith". Search engines index what they can reach.

You search Google for your own app's name and find more than you expected. Your customers' profile pages. A preview copy of your site. A page that says "Invoice for Jane Smith".

Search engines index what they can reach. If your AI-built app serves a page to anyone who asks, a crawler can read it and list it.

Why it happens

AI builders make pages work, and they rarely think about who else will visit them. Three things go wrong:

  • Profile, invoice or dashboard pages are reachable without signing in, so crawlers read them.
  • Preview or staging copies of the site are public, with the same content as production.
  • The sitemap lists every route, including private ones.

A note on robots.txt: it asks well-behaved crawlers to stay away, but it is a public file and it does not protect anything. A page listed there as "disallowed" tells a curious person exactly where to look.

How to check your own app

  1. Search site:yourdomain.com and read every result. Is there anything you would not want a stranger to open?
  2. Open your sitemap at /sitemap.xml. Does it list private or per-user pages?
  3. Open the same private pages in a private browser window. If you are not asked to sign in, the page is public no matter what robots.txt says.
  4. Search for your preview and staging addresses. Hosting platforms often give each branch its own public address.
  5. View the source of a private page and look for a robots meta tag or an X-Robots-Tag header.

What to look for

  • User pages that load without sign-in.
  • Preview deployments with real data and no password.
  • A sitemap that includes account, invoice or admin routes.
  • Private pages relying on robots.txt as their only protection.

How to fix it

  • Require sign-in on the server for every private page. This is the real fix.
  • Add noindex on pages that must be reachable but should not be listed, and on every preview deployment.
  • Put a password or sign-in in front of preview copies, or use test data only.
  • Keep private routes out of the sitemap.
  • To remove a page that is already listed, fix access first, then ask the search engine to drop it.

A prompt you can paste into your AI builder

"List every route in this project that shows user-specific or private data. Make each one require a signed-in session on the server, and return a noindex header on them. Remove private routes from the sitemap. Make preview and staging deployments require a password or add noindex to all of their pages. Do not rely on robots.txt for protection."

What a scanner can and cannot tell you

An outside scan can read your public pages, your robots.txt and your sitemap, and can tell you what a stranger can open. It does not search Google for you, and it does not find preview copies it has not been told about. Search for your own name as above.

I work on ProofForge. The free scan covers what a visitor can see and says plainly what it could not check.

Check your own app from the outside, free. Run the free ProofForge scan on your live URL. No account needed for the first scan. It looks at your public site the way a stranger would and says pass, fail or inconclusive, so you know what is confirmed and what it could not see. One-time reports start at $9: see pricing. Building with an AI agent? There is an MCP server so it can check before it deploys.

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

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