Traffic filter
The Traffic Filter lets you decide what happens to CAPTCHA traffic based on the type of network connection the user is on. Each type of traffic has its own policy, so you can block one type, challenge another and leave the rest alone.
New sites start with Poor IP reputation set to Block. Free accounts can change the action for Poor IP reputation; every other type of traffic needs a paid plan.
Available filters
Section titled “Available filters”| Filter (portal label) | Setting | Status Code |
|---|---|---|
| VPN traffic | vpn | API.VPN_BLOCKED |
| Proxy traffic | proxy | API.PROXY_BLOCKED |
| Tor traffic | tor | API.TOR_BLOCKED |
| Poor IP reputation | abuser | API.ABUSER_BLOCKED |
| Datacenter traffic | datacenter | API.DATACENTER_BLOCKED |
| Mobile network traffic | mobile | API.MOBILE_BLOCKED |
| Satellite traffic | satellite | API.SATELLITE_BLOCKED |
| Crawler traffic | crawler | API.CRAWLER_BLOCKED |
Each type of traffic has one of these actions:
- Off or No action — the traffic gets the site’s usual CAPTCHA.
- Block — verification fails with the status code in the table.
- Challenge — the visitor is served a different CAPTCHA. You can pick the CAPTCHA type and its difficulty; leave them unset and the site’s own settings apply.
The policies are on the Traffic Filter tab of Site Settings:
Your application can use the status code to show the user a tailored message (for example, asking a VPN user to disconnect and retry).
- When the widget starts a session, the provider looks up the user’s IP metadata (geolocation, ASN, threat classification) using a local IP information service.
- If the IP falls in a type of traffic set to Challenge, the user is served that challenge instead of the site’s usual one.
- When your server calls the verification endpoint, the provider checks the IP again. If it falls in a type of traffic set to Block, verification is rejected with that type’s status code.
- Otherwise, verification proceeds normally.
At verification, the traffic filter runs after the token timestamp, session, access control rule and email filter checks, and before IP validation. The first check that fails decides the status code.
When an IP has more than one flag
Section titled “When an IP has more than one flag”An IP can be flagged as more than one type of traffic, for example both VPN and proxy. Only the highest-ranked flag is acted on, in this order: Tor, VPN, proxy, datacenter, poor IP reputation, crawler, satellite, mobile. If that type has no policy, or is set to No action, the lower flags are not checked.
iCloud Private Relay addresses are skipped by every type except Tor.
Providing the IP address
Section titled “Providing the IP address”Traffic filters always run. By default they evaluate the IP recorded when the user initiated the captcha session (the browser’s IP at session-start time, captured by the provider when the widget first contacted it).
If the end user’s IP may have changed between solving the captcha and your server calling /verify (e.g. they moved networks), pass the current IP in the optional ip field. The provider then re-resolves IP info against that “now” IP and runs the filters on the fresh result:
{ "secret": "your_secret_key", "token": "PROCAPTCHA-RESPONSE", "ip": "USER_IP_ADDRESS"}See the Server-side Verification docs for details.
Connections identified as VPN services. This is one of the most common signals of automated abuse, but keep in mind that some legitimate users rely on VPNs for privacy.
Connections routed through known proxy servers, including HTTP, HTTPS, and SOCKS proxies.
Connections originating from Tor exit nodes. Tor traffic is strongly associated with anonymity and is frequently used by bots.
Poor IP reputation
Section titled “Poor IP reputation”IP addresses whose Prosopo reputation score is at or above the Reputation score threshold. The score runs from 0 (clean) to 1, and the threshold defaults to 0.98. Addresses with no score never count. New sites block this traffic by default because it has a very high correlation with bot traffic and a low false-positive rate for legitimate users.
Datacenter traffic
Section titled “Datacenter traffic”IP addresses belonging to hosting providers and cloud datacenters. Most real users browse from residential or mobile connections, so datacenter traffic is often automated. However, some corporate networks route through datacenter IPs, so consider your audience before blocking this traffic.
Mobile network traffic
Section titled “Mobile network traffic”Connections from cellular/mobile networks. This filter is situational — it’s useful when you want to restrict submissions to fixed-line connections, but blocking it will block legitimate mobile users.
Satellite traffic
Section titled “Satellite traffic”Connections from satellite internet providers. This is a niche filter for cases where satellite traffic is not expected.
Known web crawlers and automated bots. This includes search engine bots and other well-known crawlers.
Configuration via portal
Section titled “Configuration via portal”Traffic filters are configured in the Prosopo Portal under Site Settings > Traffic Filter. Each type of traffic has its own row where you pick Off, No action, Block or Challenge. Once a type is not Off, you can also set:
- Challenge — shown with the Challenge action: the CAPTCHA type and difficulty to serve.
- Allowlist — network names this type skips, for example
VPN by Google. The IP’s other flags are still checked. - Denylist — network names this type always applies to, even where it would otherwise let them through.
- Exceptions — a different action for part of the traffic. An exception can match on countries, on being inside or outside your market (the countries set on your account), on a minimum reputation score, or on being a mobile network. An exception applies when all of its conditions match. If several apply, the strictest wins: Block beats Challenge, and a harder CAPTCHA beats an easier one. Traffic matching no exception gets the row’s action. No action differs from Off only in that its exceptions still apply.
- Reputation score threshold — on Poor IP reputation only.
Free accounts can change the Poor IP reputation action. Changing any other type of traffic, or the challenge settings and exceptions, needs a paid plan.
Fail-open behavior
Section titled “Fail-open behavior”If the IP information lookup fails (network timeout, service unavailable, etc.), the traffic filter allows the request through rather than blocking it. This prevents an outage in the IP intelligence service from blocking all legitimate traffic.
Verification response
Section titled “Verification response”When a traffic filter blocks a request, the verification endpoint returns:
{ "status": "ok", "verified": false, "reason": "API.VPN_BLOCKED"}The reason field names the filter that triggered the block. It is not returned on the Free tier. Your application can use it to show a user-friendly message:
if (result.reason === 'API.VPN_BLOCKED') { showMessage('Please disconnect your VPN and try again.');} else if (result.reason === 'API.TOR_BLOCKED') { showMessage('Tor connections are not supported. Please use a standard browser.');}E-commerce (moderate security)
Section titled “E-commerce (moderate security)”Block the highest-risk traffic while allowing most legitimate users:
- Poor IP reputation: Block (default)
- Tor traffic: Block
- Crawler traffic: Block
- Everything else: Off
Financial services (high security)
Section titled “Financial services (high security)”Strict filtering to minimize automated fraud:
- Poor IP reputation: Block (default)
- VPN traffic: Block
- Proxy traffic: Block
- Tor traffic: Block
- Datacenter traffic: Block
- Crawler traffic: Block
Consumer app (permissive)
Section titled “Consumer app (permissive)”Rely on the default poor-reputation blocking only:
- Poor IP reputation: Block (default)
- Everything else: Off
| Tier | Poor IP reputation action | Everything else |
|---|---|---|
| Free | Configurable | Not available |
| Paid plans | Configurable | Configurable |