Skip to content

Guides · VibeVigil

Can Strangers Sign Up to My "Private" Lovable or Supabase App? How to Check and Close the Door

Hiding the sign-up button does not stop sign-ups. Anyone can create an account in a Supabase or Lovable Cloud app through the API unless sign-ups are turned off. Here's how to test yours in 2 minutes, close it, add CAPTCHA against bots, and fix the RLS policies that trust any logged-in user.

Not sure your app is safe? Run a free scan first.
VibeVigil checks your live web app for exposed keys, Supabase tables a stranger can read, missing security headers, SSL problems and downtime. Every issue comes with a ready-to-paste prompt for your coding agent.
Scan my app for free → (only scan apps you own)

Note: the scan does not create accounts in your app. Use the steps below to test sign-ups yourself.

Can Strangers Sign Up to My "Private" Lovable or Supabase App?

You built an app just for you, your team, or a few paying clients. Maybe it is an admin panel, a CRM, or a tool for one company. So you asked your coding agent to "remove the sign-up page" and keep only the login form.

The page is gone. But the door may still be open.

This guide shows why, how to test it in 2 minutes, and how to close it in Lovable or Supabase. Only test projects you own.

The short answer

  1. Removing the sign-up page does not turn off sign-ups. Your app talks to Supabase with a public key that is in your JavaScript on purpose. Anyone can copy it and call the sign-up API directly.
  2. The real switch is in your project settings. In Supabase it is Allow new users to sign up. In Lovable Cloud it is Disable sign-up. With sign-ups off, "only existing users can sign in" (Supabase: General configuration).
  3. Check your Row Level Security (RLS) policies. A policy that lets "any logged-in user" read a table is only as safe as your sign-up door.
  4. If sign-ups must stay open, slow down bots with CAPTCHA and email confirmation.

Why hiding the button is not enough

Your front end needs two things to talk to Supabase: your project URL and your public key (called the anon key or publishable key). Both ship to every visitor's browser. That is normal. See Is the Supabase anon key a secret?

The sign-up form is just a nice screen in front of an API call. The API itself lives on Supabase's servers, not in your app. If sign-ups are allowed in your settings, anyone who has your URL and public key can send that call with a tool like curl. Your hidden page does not matter.

This turns into a real problem when your database trusts every logged-in user. A common policy looks like this:

-- ❌ Any signed-in user can read every row
create policy "Logged in users can read"
on customers for select
to authenticated
using (true);

You might think, "Only my team can log in, so this is fine." But if a stranger can sign up, they become a "logged-in user" too. Then they can read the whole table.

Test it (2 minutes)

You need your project URL and public key. You can find both in your app's JavaScript (F12 → Network, look for requests to supabase.co) or in your project settings.

Run this with a test email you own:

curl -X POST 'https://YOUR_PROJECT.supabase.co/auth/v1/signup' \
  -H "apikey: YOUR_PUBLIC_KEY" \
  -H "Content-Type: application/json" \
  -d '{"email":"you+signuptest@example.com","password":"a-long-test-password-123"}'

What the answer means:

  • You get back a user, or a "check your email" message: sign-ups are open. A stranger can do the same thing.
  • You get the error code signup_disabled ("Signups not allowed for this instance"): the door is closed. Supabase lists this code as "Sign ups (new account creation) are disabled on the server" (Supabase: Auth error codes).

After the test, delete the test user in your dashboard.

Tip: with the built-in email sender, Supabase only sends a few emails per hour (Supabase: Rate limits). If you test many times, you may hit that limit. That is expected.

Also check these other doors:

  • Google, Apple or other social logins. If they are turned on, anyone with that kind of account may be able to create a new account in your app the first time they sign in.
  • Anonymous sign-ins. Supabase says anonymous users "use the authenticated role," the same as real users (Supabase: Anonymous sign-ins). If this is on, any visitor can become a "logged-in user" with one click and no email.

How to close the door

If your app is private or invite-only

Lovable Cloud: go to More → Users → Settings and turn on Disable sign-up. Lovable says existing users can still sign in, and "you can still add users with Add user" (Lovable: Users and authentication). Check Enable anonymous users on the same screen too.

Your own Supabase project: open the Authentication settings and turn off Allow new users to sign up. Then check that Allow anonymous sign-ins is off, unless you use it on purpose. Add new people yourself from the dashboard (invite or add user).

Run the curl test again. You should now get signup_disabled.

If only people from one company should join

Supabase has a Before User Created hook. It runs before a new user is saved and can say no. Supabase says you can use it for things like "requiring that users belong to a specific email domain" or "blocking disposable email domains" (Supabase: Before User Created hook).

If anyone is allowed to sign up, but bots are a problem

  • Turn on CAPTCHA. Supabase supports hCaptcha and Cloudflare Turnstile on sign-up, sign-in and password reset forms. Turn it on under Authentication → Bot and Abuse Protection, then add the widget to your forms (Supabase: Enable CAPTCHA protection). Once it is on, a sign-up call without a valid CAPTCHA token fails, even from curl.
  • Keep "Confirm email" on. On hosted Supabase projects it is on by default (Supabase: Password-based Auth). If it is off, people can sign in with an email they don't own.
  • Look at your rate limits under Authentication → Rate Limits. Supabase limits sign-ups per IP address, and you can change the numbers (Supabase: Rate limits).

Fix the policies too

Closing sign-ups is step one. Your data should also be safe if a stranger ever gets an account (for example, if someone turns sign-ups back on later).

Run this in the Supabase SQL editor to find policies that let any logged-in user see or change everything:

select schemaname, tablename, policyname, cmd, roles, qual, with_check
from pg_policies
where schemaname = 'public'
  and (qual = 'true' or with_check = 'true');

For each one, ask: "Should every person with an account really see this?" If not, change it so it checks who owns the row (for example (select auth.uid()) = user_id), or checks a team or role you control. See Can One User See Another User's Data? and How to Protect Admin Routes and Roles.

If you use anonymous sign-ins on purpose, Supabase says your policies "need to check the is_anonymous field" of the user's login token to tell them apart from real users (Supabase: Anonymous sign-ins).

Prompt for your coding agent

Copy this into Lovable, Bolt, Cursor or Claude Code:

This app should be [private / invite-only / open to anyone]. Please check and fix who can create an account.

1. Tell me if public sign-ups are allowed in the backend auth settings (Supabase "Allow new users to sign up" or Lovable Cloud "Disable sign-up"), not just whether the sign-up page exists. If the app is private, turn sign-ups off. Also tell me if anonymous sign-ins and any social logins (Google, Apple, etc.) are on.
2. Give me a curl command to test the /auth/v1/signup endpoint with my public key, and tell me what answer means "closed" (error code signup_disabled).
3. List every RLS policy in the public schema that uses USING (true) or WITH CHECK (true), or that only checks that a user is logged in. For each one, explain in plain words who can read or change what. Rewrite them so users only reach rows they own or rows for their team, unless the data is meant to be public.
4. If sign-ups must stay open: add Cloudflare Turnstile or hCaptcha to the sign-up, login and password reset forms following the Supabase CAPTCHA docs, and pass captchaToken to supabase.auth calls. Remind me to turn on CAPTCHA protection in the Supabase dashboard.
5. If only one email domain should join, set up a Supabase "Before User Created" auth hook that rejects other domains.

Do not turn off Row Level Security and do not put the service role key in the browser.

Quick checklist

  • [ ] The curl sign-up test returns signup_disabled (if the app is private)
  • [ ] Anonymous sign-ins are off, or your policies check is_anonymous
  • [ ] Social logins you don't need are off
  • [ ] No policy gives every logged-in user access to private data (using (true))
  • [ ] If sign-ups are open: CAPTCHA is on and "Confirm email" is on
  • [ ] Test users from your checks are deleted

Related guides


Want a check on the public side of your app? VibeVigil looks for exposed keys, open Supabase tables, headers, SSL and uptime, and gives you a fix prompt for each issue. Run a free scan → (only scan apps you own)

Scan your app free. It checks the public page of a site you own. No account.

Can Strangers Sign Up to My "Private" Lovable or Supabase App? How to Check and Close the Door · VibeVigil