Skip to content

Email filter

The Email Filter (configured under the Spam Filter in site settings) lets you reject CAPTCHA verifications whose associated email address matches suspicious patterns. It is designed to catch common signup-spam evasion techniques — particularly the Gmail dot and plus-tag tricks — while keeping false positives low.

Email filtering is available to Professional and Enterprise tier customers.

The card is on the Email Filter tab of Site Settings:

prosopo email filter settings

When a dapp calls the Prosopo verification endpoint with an optional email field, the email address is evaluated against the configured rules before the CAPTCHA solution is checked. If any rule matches, verification is rejected immediately.

Pass the email in the email field when calling the server-side verification endpoint:

{
"secret": "your_secret_key",
"token": "PROCAPTCHA-RESPONSE",
"email": "USER_EMAIL_ADDRESS"
}

If no email is provided, email filter rules are skipped.

Limits the number of dots allowed in the part of the email address before the @ symbol. For example, with a limit of 2:

  • alice@example.com — allowed (0 dots)
  • a.lice@example.com — allowed (1 dot)
  • a.l.ice@example.com — allowed (2 dots)
  • a.l.i.ce@example.com — blocked (3 dots)

This is effective against the Gmail dot trick, where a.l.i.c.e@gmail.com and alice@gmail.com are the same Gmail inbox but appear as different addresses to most systems.

Leave blank to disable the dot limit.

A curated set of regex patterns targeting common evasion techniques:

  • Many-dots local part: Catches addresses with excessive dots in the local part (more than 3), which are almost always evasion attempts.
  • Gmail random plus-tag: Catches addresses like user+vkd38uoukd5@gmail.com where a random alphanumeric suffix is appended via a plus tag.

Enable with the Apply curated default patterns toggle.

When enabled, Gmail and Googlemail addresses are normalised before evaluating custom regex patterns:

  1. Dots are stripped from the local part (a.l.i.c.e becomes alice)
  2. Plus-tag suffixes are removed (alice+tag becomes alice)
  3. @googlemail.com is rewritten to @gmail.com

This means a single custom regex pattern like ^alice@gmail\.com$ will match all of the following:

  • alice@gmail.com
  • a.l.i.c.e@gmail.com
  • alice+spam123@gmail.com
  • a.l.i.c.e+tag@googlemail.com

Normalisation only affects Gmail/Googlemail addresses. Other domains are evaluated as-is.

Add your own JavaScript regular expressions to block specific email patterns. Patterns are evaluated case-insensitively against the (optionally normalised) email address.

Examples:

PatternWhat it catches
@disposable\.tld$Any address at disposable.tld
^spam@Any address starting with spam@
@(tempmail|throwaway)\.Addresses at tempmail.* or throwaway.* domains
^test[0-9]+@Addresses like test123@..., test99@...

Patterns are validated when saved:

  • Maximum 256 characters per pattern
  • Maximum 50 patterns per site
  • Lookahead, lookbehind, and large quantifiers are rejected to prevent regex-based denial of service
  • Invalid regex syntax is rejected at save time

Turn on the Spam email domain check card (spamEmailDomainCheckEnabled) to block signups from known disposable and throwaway email providers — tempmail.*, guerrillamail.*, mailinator.* and the thousands of recycled variants spammers cycle through.

The check goes beyond matching the address’s domain directly: Prosopo also follows the domain through any HTTP redirect, CNAME alias and MX record, so newly-registered throwaway domains can’t bypass the list by simply pointing at a known disposable backend.

The blocklist is maintained and refreshed for you. The only setting is the card’s own toggle, which works whether or not Enable Spam Filter is on. Rejected requests come back with reason API.SPAM_EMAIL_DOMAIN.

You can also check an address without running a full CAPTCHA verification:

POST /v1/prosopo/provider/client/spam/email
Content-Type: application/json
{
"email": "user@example.com",
"dapp": "YOUR_SITE_KEY"
}
{
"isSpam": true,
"emailDomain": "example.com"
}

Available to sites with the domain check enabled, and rate-limited per site key.

When an email is provided, the verification endpoint evaluates it in this order:

  1. Spam-email-domain list — if Spam email domain check is on, the domain (and any redirect, CNAME or MX it points at) is checked against the maintained blocklist.
  2. Email validity — if the email pattern rules are on, malformed addresses are rejected.
  3. Maximum dots — if configured.
  4. Default patterns — if enabled.
  5. Custom regex blocklist — each pattern is tested in order; first match wins.
  6. Maximum submissions per email address — if configured, the address is rejected once it has already been used for that many stored, server-checked CAPTCHA submissions on the site.

Evaluation stops at the first match. The rejection reason is recorded for audit purposes.

Email filter rules are configured in the Prosopo Portal under Site Settings > Email Filter:

  1. Enable Spam Filter — master toggle for all email rules
  2. Email pattern rules — sub-toggle to activate pattern matching
  3. Maximum dots in the local part — numeric input
  4. Apply curated default patterns — toggle
  5. Normalise Gmail addresses before matching — toggle
  6. Custom regex blocklist — add/remove patterns with validation
  7. Maximum submissions per email address — numeric input; leave blank to disable. It only counts submissions stored with storeMetadata on.

All changes are saved together via the Save All Changes button.

When an email rule blocks a request, the verification endpoint returns:

{
"status": "ok",
"verified": false,
"reason": "API.SPAM_EMAIL_RULE"
}

The block code is in reason, which is not returned on the Free tier. Possible values:

ReasonMeaning
API.SPAM_EMAIL_RULEEmail is invalid, has too many dots, or matched a default or custom pattern
API.SPAM_EMAIL_DOMAINEmail domain is on the known-spam list
API.SPAM_EMAIL_COUNT_EXCEEDEDEmail has reached the Maximum submissions per email address

A single Gmail account can generate thousands of apparent email addresses using dots and plus tags. To block this:

  1. Enable Email pattern rules
  2. Enable Apply curated default patterns (catches random plus-tags and excessive dots automatically)
  3. Set Maximum dots to 2
  4. Enable Normalise Gmail addresses if you also use custom patterns

To block known throwaway email services:

  1. Turn on Spam email domain check (uses the maintained domain list)
  2. Optionally add custom patterns for domains not yet on the list:
    @(tempmail|throwaway|guerrillamail)\.

If you see abuse from specific patterns unique to your service:

  1. Add targeted custom regex patterns
  2. Monitor the API.SPAM_EMAIL_RULE reason in your verification responses
  3. Adjust patterns based on what you observe
TierEmail Filter
FreeNot available
ProfessionalFull access
EnterpriseFull access