Sign-up defences (operator)

Free surveys attract automated sign-ups: one person, many addresses. These defences keep such accounts from pushing genuine people down the waitlist. None of them refuses an account; the worst that happens to a person wrongly caught is that they are told why and how to get in.

What each one does

Defence What it does Needs
One person, one account Every address gets an "email key": lower case, the +tag removed, and for Gmail the dots removed. A second account with a key that already exists is held with the reason duplicate Migration 0007
Throwaway mail An address on a domain in blocked_email_domains is held with the reason throwaway Migration 0007 (20 domains to start)
Waitlist order Within one day's sign-ups: Google accounts first, then accounts that have written a study, then the rest. An earlier day always goes before a later day Migration 0007
Continue with Google A Google account costs effort to make in bulk, and needs no email round trip Owner steps below
"I am human" check Cloudflare Turnstile on the email sign-in form; Supabase verifies it before sending any email Owner steps below
Paying Buying a panel admits an account at once, held or not. A card is the strongest human check Payments setup

A held account can sign in, write and save studies. It is never admitted by the daily admissions, not even when the waitlist is switched off. It cannot run a free survey until released.

Getting started (owner)

  1. Database: apply 0007_signup_defences.sql after 0006, then run the three verification queries in its header.
  2. Google sign-in:
    1. Google Cloud console: create an OAuth client of type "Web application". Authorised redirect address: the callback shown in the Supabase dashboard under Authentication, Providers, Google.
    2. Supabase dashboard, same page: switch Google on and paste the client id and client secret there (they are stored by Supabase, not in this repository).
    3. Web app: set NEXT_PUBLIC_GOOGLE_SIGN_IN=1 and rebuild. The button "Continue with Google" appears above the email box.
  3. "I am human" check:
    1. Cloudflare dashboard, Turnstile: add a widget for the site's hostname, mode "Managed".
    2. Supabase dashboard, Authentication, Attack Protection: enable CAPTCHA, provider Turnstile, and paste the widget's secret key there.
    3. Web app: set NEXT_PUBLIC_TURNSTILE_SITE_KEY to the widget's site key (a public value) and rebuild. Do steps 2 and 3 together: with the check enabled in Supabase and no key in the web app, nobody can ask for a sign-in email.
  4. Check: sign up with yourname+test@gmail.com when yourname@gmail.com already has an account. The studies page shows "This account is not on the waitlist yet".

Running it

  • Release a held account: POST /admin/users/<user id>/hold with {"hold": false}. The hold is removed and the account is admitted.
  • Hold an account: the same address with {"hold": true}. It leaves the admitted accounts and shows "This account is on hold while we check it." An operator account cannot be held.
  • Add a throwaway domain: insert into blocked_email_domains (domain, note) values ('example.org', 'seen 2026-12'); It applies to sign-ups from then on.
  • Remove one: delete its row, then release the accounts it caught.
  • See who is held: select email_key, hold_reason, held_at from profiles where hold_reason is not null order by held_at desc;

Limits

  • Dot and plus handling is exact for Gmail only. Other providers' aliases are not recognised.
  • A custom domain with a catch-all mailbox makes unlimited distinct addresses. The daily admissions number is the cap on what that can cost: at 50 a day, about one US dollar of model spend a day at most.
  • The throwaway list is short and never complete.
  • Supabase applies its own limits on sign-in emails per address and per hour as well.

What the user sees, and the fix

Message Cause Fix
"This address belongs to an account that already exists (for example the same Gmail address written with dots or a +tag), so this one is not on the waitlist. Sign in with your first address instead." A second account for the same mailbox Sign in with the first address. Operator: release it if two people really share the mailbox
"This address is from a temporary-mail service, so this account is not on the waitlist. Sign in with Google or with an address you keep, and you join the list at once." The domain is on the throwaway list Use another address or Google. Operator: remove the domain if it is a real provider
"This account is on hold while we check it. Write to us and we will sort it out." An operator held it Operator releases it
"If we have this wrong, reply to any email from us and we will release the account. Buying a panel also lets an account in." Shown under each of the three above -
"Google sign-in could not be started. Try again, or use your email address below." Google is not switched on in Supabase, or the redirect address is wrong Owner: step 2 above
"Wait for the "I am human" check above the button to finish, then try again." The button was pressed before the check completed Wait a second or two
"The "I am human" check did not pass. Reload the page and try again. If it keeps failing, try another browser or switch off a content blocker for this page." Turnstile refused or was blocked; or the site key and the secret are from different widgets User: reload. Owner: check both keys belong to one widget