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:
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.
Providing the email address
Section titled “Providing the email address”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.
Maximum dots in local part
Section titled “Maximum dots in local part”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.
Default patterns
Section titled “Default patterns”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.comwhere a random alphanumeric suffix is appended via a plus tag.
Enable with the Apply curated default patterns toggle.
Gmail address normalisation
Section titled “Gmail address normalisation”When enabled, Gmail and Googlemail addresses are normalised before evaluating custom regex patterns:
- Dots are stripped from the local part (
a.l.i.c.ebecomesalice) - Plus-tag suffixes are removed (
alice+tagbecomesalice) @googlemail.comis rewritten to@gmail.com
This means a single custom regex pattern like ^alice@gmail\.com$ will match all of the following:
alice@gmail.coma.l.i.c.e@gmail.comalice+spam123@gmail.coma.l.i.c.e+tag@googlemail.com
Normalisation only affects Gmail/Googlemail addresses. Other domains are evaluated as-is.
Custom regex blocklist
Section titled “Custom regex blocklist”Add your own JavaScript regular expressions to block specific email patterns. Patterns are evaluated case-insensitively against the (optionally normalised) email address.
Examples:
| Pattern | What 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
Spam email domain list
Section titled “Spam email domain list”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.
Standalone endpoint
Section titled “Standalone endpoint”You can also check an address without running a full CAPTCHA verification:
POST /v1/prosopo/provider/client/spam/emailContent-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.
Evaluation order
Section titled “Evaluation order”When an email is provided, the verification endpoint evaluates it in this order:
- 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.
- Email validity — if the email pattern rules are on, malformed addresses are rejected.
- Maximum dots — if configured.
- Default patterns — if enabled.
- Custom regex blocklist — each pattern is tested in order; first match wins.
- 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.
Configuration via portal
Section titled “Configuration via portal”Email filter rules are configured in the Prosopo Portal under Site Settings > Email Filter:
- Enable Spam Filter — master toggle for all email rules
- Email pattern rules — sub-toggle to activate pattern matching
- Maximum dots in the local part — numeric input
- Apply curated default patterns — toggle
- Normalise Gmail addresses before matching — toggle
- Custom regex blocklist — add/remove patterns with validation
- Maximum submissions per email address — numeric input; leave blank to disable. It only counts submissions stored with
storeMetadataon.
All changes are saved together via the Save All Changes button.
Verification response
Section titled “Verification response”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:
| Reason | Meaning |
|---|---|
API.SPAM_EMAIL_RULE | Email is invalid, has too many dots, or matched a default or custom pattern |
API.SPAM_EMAIL_DOMAIN | Email domain is on the known-spam list |
API.SPAM_EMAIL_COUNT_EXCEEDED | Email has reached the Maximum submissions per email address |
Stopping Gmail dot/plus-tag abuse
Section titled “Stopping Gmail dot/plus-tag abuse”A single Gmail account can generate thousands of apparent email addresses using dots and plus tags. To block this:
- Enable Email pattern rules
- Enable Apply curated default patterns (catches random plus-tags and excessive dots automatically)
- Set Maximum dots to
2 - Enable Normalise Gmail addresses if you also use custom patterns
Blocking disposable email domains
Section titled “Blocking disposable email domains”To block known throwaway email services:
- Turn on Spam email domain check (uses the maintained domain list)
- Optionally add custom patterns for domains not yet on the list:
@(tempmail|throwaway|guerrillamail)\.
Organisation-specific patterns
Section titled “Organisation-specific patterns”If you see abuse from specific patterns unique to your service:
- Add targeted custom regex patterns
- Monitor the
API.SPAM_EMAIL_RULEreason in your verification responses - Adjust patterns based on what you observe
| Tier | Email Filter |
|---|---|
| Free | Not available |
| Professional | Full access |
| Enterprise | Full access |