AppInspected

Can a stranger read your Firebase database?

Paste your Firebase project ID and your Firestore collection names. Your browser asks Firebase, as a signed-out visitor with no key, how many documents each collection would hand over, and whether the Realtime Database root is readable. Nothing goes through AppInspected, and only counts come back, never your data.

Only test a project you own. Requests go from your browser straight to Firebase, signed out and without a key.

Free. No sign-up. We only read what your visitors' browsers already read.

Passive and read-only. Works with any public site, including apps built with Lovable, Bolt, v0, Replit, Base44, Cursor, Windsurf and Claude Code.

AppInspected
Site
Waiting for your address
Checked
–
Critical issues
–
Not checked yet
Your result fills in this tag. Nothing is stored.

What this checker does

A Firebase web app talks to Cloud Firestore and the Realtime Database straight from the browser. Your project ID is in your site's JavaScript on purpose, so anyone can find it. The only thing between a stranger and your data is your Security Rules (Firestore test mode rules).

The checker does what a stranger would do, but asks for a number instead of the data:

  • Firestore: for each collection, one count() aggregation query (POST …/documents:runAggregationQuery), sent signed out. Firebase applies your Security Rules to aggregation queries the same way as to normal queries, so if a stranger could list the collection, the count comes back; if not, Firebase refuses. Only the number is returned, never documents.
  • Realtime Database: one GET /.json?shallow=true on the root. shallow=true cuts every value down to true, so at most the top-level key names come back. We show how many there are, not the names.
What each result means
ResultWhat Firebase saidWhat to do
Open: N documents readable by anyoneYour rules let a signed-out query through, and the collection has dataFix now (below)
Open, but empty right nowThe query is allowed; the collection has no documents (or the name is misspelled)Fix the rules anyway: anything written there later is public
BlockedPermission denied: your rules refused the queryNothing to fix for strangers
Realtime Database root readableA signed-out read of / succeeded, so every path under it is readableFix now (below)

Unlike a SQL database, Firestore doesn't tell you whether a collection exists: a query on a collection nobody created returns 0. That's why an allowed query with 0 documents still counts as open. Your rules let it through, whatever is there.

Is it safe to use?

The checker is a small script on this page (read it). It needs only your project ID, which is already public in your site's code. It sends no API key and no sign-in, so its requests are exactly what any stranger could send, and they go from your browser straight to Google. It reads no documents. Each count query costs you at most a document read or two in Firestore billing (one read per batch of up to 1,000 index entries, minimum one).

Never paste a service account JSON file here or anywhere else: it's a private key that skips your rules (private key (service account key) exposed). Only test projects you own or are allowed to test.

Found something open? Fix it in this order

  1. Deny by default

    In the Firebase console, open the Rules tab (Firestore Database, then Realtime Database). Remove allow read, write: if true, any rule that only checks a date (test mode), and for the Realtime Database any ".read": true at the root. With nothing allowed, strangers get nothing. Parts of your app may stop loading until the next step.
  2. Allow each user only their own data

    For user data, compare the signed-in user with an owner field: allow read, update, delete: if request.auth != null && request.auth.uid == resource.data.ownerId; and check request.resource.data.ownerId on create. Only data meant for everyone, like published posts, gets a public read rule.
  3. Don't stop at request.auth != null

    On its own it lets any signed-in user, including someone who just made an account, read everything it covers. This checker can't catch that, because it tests signed out.
  4. Test again here, signed out

    Run the checker again. Every collection should now say Blocked.
  5. Test as a second user

    Sign in with a second account and try to load the first account's documents, use the Rules Playground in the console, or let the $19 report do it.

More detail: Firestore test mode rules and the Firebase security check.

What this checker can't tell you

  • Signed-in access. It tests a stranger. Rules that let any signed-in user read everyone's data pass this test.
  • Writes. It never writes, so it can't tell whether a stranger can change or delete data.
  • Collections you didn't list, subcollections, named (non-default) Firestore databases, paths below the Realtime Database root, and Cloud Storage.
  • Your live site. Secret keys in your JavaScript, .env files or source maps on your domain: the free site check above looks for those.

The $19 website security report covers the first gap: after you prove you own the site, its optional Firebase section reviews your rules files, generates emulator tests you run locally, and runs read-only tests with two test accounts you create, alongside a review of up to 30 pages and 40 scripts. If the report can't be completed or comes out broken, you get a full refund.

Website security report

$19 one time

For any website you own: a read-only review of up to 30 pages and 40 JavaScript files (found through your build manifest, routes and sitemap), app logic in the browser (admin and paid-feature checks, prices sent from the browser, AI APIs called directly), headers, cookies and CORS, domain and email records, libraries with known vulnerabilities, forgotten files and third-party scripts, with fixes written for your host. Optional database tests for Supabase or Firebase. Requires proof you own the site.

Example report header: a score out of 100, findings by severity, Download PDF and Email me this report.See an example reportGet the report

Badge + daily monitoring

$9 per month

We repeat the outside checks every day and email you when something changes: a new key in your JavaScript, a removed header, a new third-party script, a certificate about to expire. Includes a live badge and one full website report every 30 days.

How monitoring works

Sources

Questions

How do I check if my Firestore database is public?

Paste your project ID and collection names into the checker at the top of this page. It sends a signed-out count query for each collection. Any collection that returns a count, even 0, is readable by anyone who knows your project ID, which is in your site's code.

Does this tool see or store my data?

No. Firestore count queries return only a number, and the Realtime Database test uses shallow=true and shows only how many top-level keys exist. Requests go from your browser straight to Firebase; AppInspected receives nothing.

Why does an empty collection count as open?

Firestore checks your rules against the query, not against the data. If a signed-out query on a collection is allowed, anything stored there, now or later, is readable by anyone. Collections you never created also come back as 0, so check the spelling too.

Do I need to paste my Firebase API key?

No. The checker sends no key, so it sees exactly what a stranger without your app would see. The web API key in your Firebase config is public by design anyway; your Security Rules are what protect the data.

Does it cost me anything?

Very little. Firestore bills a count query as one document read per batch of up to 1,000 index entries, with a minimum of one read. The Realtime Database test downloads only key names.

Can it test whether signed-in users see each other's data?

No. That needs real accounts. Test by hand with a second account, use the Rules Playground, or use the optional Firebase tests in the $19 website security report.

Does it check Cloud Storage?

Not yet. Open the Storage rules in the Firebase console and look for allow read: if true or rules that only check a date.

More free checks and guides