---
title: "vpn / proxy check from ip · RUAL Documentation"
description: "Checks with MaxMind whether an IPv4/IPv6 address is a VPN, proxy, Tor exit or hosting network. Needs the maxmind_account_id and maxmind_account_license_…"
canonical: https://docs.rual.nl/block-types/value/value_ip_anonymity
language: en
---

# vpn / proxy check from ip

This block is part of the [`value`](https://docs.rual.nl/block-types/value) group and was last modified in core [`v15.0.1`](https://docs.rual.nl/core-versions/150001).

Checks with MaxMind whether an IPv4/IPv6 address is a VPN, proxy, Tor exit or hosting network. Needs the maxmind_account_id and maxmind_account_license_key cluster settings and a MaxMind account with GeoIP Insights access; answers are cached for a day per address

- value `value` required The IPv4 or IPv6 address to check

- success `condition` Indicates if MaxMind answered

- is anonymous `condition` True for any kind of anonymizer

- is vpn `condition` True when the address belongs to an anonymous VPN provider

- is proxy `condition` True for a public proxy

- is residential proxy `condition` True for a residential proxy network

- is tor `condition` True for a Tor exit node

- is hosting `condition` True for a hosting or VPN-provider network; also true for many legitimate cloud and corporate gateways

- confidence `number` MaxMind's 1-99 confidence that the network is an active anonymizer

- provider `value` Name of the anonymizer, when MaxMind knows it

- error `value` Shown error if the check failed

Asks the MaxMind GeoIP2 Insights web service (credentials from the maxmind_account_id / maxmind_account_license_key cluster settings) whether ip is an anonymizer, caching each answer per entity for 24h. On success: success=true and is_anonymous / is_vpn (anonymous VPN) / is_proxy (public proxy) / is_residential_proxy / is_tor (Tor exit) / is_hosting (hosting or VPN-provider network) are booleans, confidence is MaxMind's 1-99 score (0 when absent) and provider the anonymizer's name ("" when unknown). Private, loopback, link-local and CGNAT addresses answer success=true with every flag false and no MaxMind call. On any failure success=false, every answer pin is nil (never false) and error is INVALID_IP (empty or unparseable ip), NOT_CONFIGURED (no MaxMind credentials), ANONYMITY_NOT_AVAILABLE (checker not wired), LOOKUP_FAILED (MaxMind refused or timed out, e.g. no Insights access or no funds) or NOT_FOUND. Runs in simulation (it is a read).

| `vpn` |
| --- |
| `proxy` |
| `tor` |
| `anonymizer` |
| `anonymous ip` |
| `maxmind` |
| `ip reputation` |

[remote ip](https://docs.rual.nl/block-types/http%20connection/httpconnection_get_ip) reads the visitor's address from the page's connection, and [VPN / proxy check from IP](https://docs.rual.nl/block-types/value/value_ip_anonymity) asks MaxMind whether it belongs to a VPN, proxy, Tor exit or hosting network. When is anonymous is on, the [branch](https://docs.rual.nl/block-types/flow/branch) sends the visitor away with [web redirect](https://docs.rual.nl/block-types/web/web_redirect); otherwise [web render](https://docs.rual.nl/block-types/web/web_render) answers. A failed check leaves every answer pin empty rather than off and puts the reason on error, so read success when a failed lookup must not count as a clean address. is hosting is also on for many legitimate cloud and corporate gateways. The block needs the `maxmind_account_id` and `maxmind_account_license_key` cluster settings and a MaxMind account with GeoIP Insights access, and each answer is cached for a day per address.

[![Studio canvas example for the VPN / proxy check from IP block: turning away a visitor behind a VPN.](https://docs.rual.nl/canvas-examples/value_ip_anonymity.png)](https://docs.rual.nl/canvas-examples/value_ip_anonymity.png?v=3)

## Version history

Introduced in [`v15.0.1`](https://docs.rual.nl/core-versions/150001).

- [`v15.0.1`](https://docs.rual.nl/core-versions/150001): block added in this release.

- [Back to `value`](https://docs.rual.nl/block-types/value): Return to the main group to view all sub-groups

- [Back to `custom`](https://docs.rual.nl/block-types/value?group=custom): Return to the group to view all blocks within this group
