[{"data":1,"prerenderedAt":74},["ShallowReactive",2],{"content:en:blog\u002Fvpn-detection":3},{"path":4,"locale":5,"section":6,"title":7,"description":8,"html":9,"headings":10,"faq":48,"updated":70,"order":71,"words":72,"meta":73},"blog\u002Fvpn-detection","en","blog","VPN detection: spotting VPNs, proxies, Tor and data center traffic at signup","How VPN, proxy, Tor and data center detection works from an IP address, what it misses, and how to add friction at signup without turning real users away.","\u003Cp>VPN detection checks whether an IP address belongs to a network known to run VPN servers, proxies or Tor exits, or to a hosting network where servers rather than people sit. It is best effort: the Tor Project's exit list is reliable, data center classification casts a wide net, and VPN and proxy lists only catch services that have been identified, while residential proxies are generally invisible. At signup, use the flags to add friction, such as an email or phone confirmation, rather than to block.\u003C\u002Fp>\n\u003Ch2 id=\"four-signals-four-kinds-of-evidence\">Four signals, four kinds of evidence\u003C\u002Fh2>\n\u003Cp>The word &quot;VPN detection&quot; covers four different checks. They come from different sources and deserve different responses.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Signal\u003C\u002Fth>\n\u003Cth>How it is detected\u003C\u002Fth>\n\u003Cth>What it catches\u003C\u002Fth>\n\u003Cth>What it misses\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Tor exit node\u003C\u002Ftd>\n\u003Ctd>Exact match on the list the Tor Project publishes\u003C\u002Ftd>\n\u003Ctd>Every exit relay on the published list\u003C\u002Ftd>\n\u003Ctd>Relays added since the last refresh\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Data center\u003C\u002Ftd>\n\u003Ctd>The address's network is classified as hosting\u003C\u002Ftd>\n\u003Ctd>Any server in a hosting or cloud network: VPN servers, proxies, scrapers, cloud desktops\u003C\u002Ftd>\n\u003Ctd>Servers in networks not classified as hosting\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>VPN\u003C\u002Ftd>\n\u003Ctd>The address belongs to a network known to be run by a VPN service\u003C\u002Ftd>\n\u003Ctd>Identified VPN services, including outside data centers\u003C\u002Ftd>\n\u003Ctd>New ranges, small or private services\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Proxy\u003C\u002Ftd>\n\u003Ctd>The address belongs to a network known to be run by a proxy service\u003C\u002Ftd>\n\u003Ctd>Identified proxy services\u003C\u002Ftd>\n\u003Ctd>Residential proxies\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>The data center flag is the widest net. It does not need to know which service runs on a server, only that the address is a server's. That is also why it catches legitimate traffic, from company gateways to your own monitoring.\u003C\u002Fp>\n\u003Ch2 id=\"how-each-signal-is-built\">How each signal is built\u003C\u002Fh2>\n\u003Cp>\u003Cstrong>Tor.\u003C\u002Fstrong> Tor routes traffic through three relays and releases it from an exit node. The Tor Project publishes the addresses of current exit nodes, so a match is close to certain. The Qelka API refreshes its copy of the bulk exit list on a schedule; a relay that joined in the last hours may not be on it yet.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Data center.\u003C\u002Fstrong> Every public address is announced by an autonomous system (ASN). Networks are classified from their registered names and a curated list of hosting networks. If the ASN is hosting, \u003Ccode>flags.datacenter\u003C\u002Fcode> is \u003Ccode>true\u003C\u002Fcode> and \u003Ccode>asn.type\u003C\u002Fcode> is \u003Ccode>hosting\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>VPN and proxy.\u003C\u002Fstrong> Commercial VPN and proxy services run servers in ranges that can be identified, either their own networks or blocks inside hosting providers. A list of those ranges sets the flags. It only knows services someone has identified, which is why both flags are documented as best effort.\u003C\u002Fp>\n\u003Cp>\u003Cstrong>Risk score.\u003C\u002Fstrong> The API combines the flags into \u003Ccode>risk.score\u003C\u002Fcode>, from 0 to 100, and \u003Ccode>risk.level\u003C\u002Fcode>: \u003Ccode>low\u003C\u002Fcode> under 30, \u003Ccode>medium\u003C\u002Fcode> from 30 to 69, \u003Ccode>high\u003C\u002Fcode> from 70.\u003C\u002Fp>\n\u003Ch2 id=\"what-an-ip-address-cannot-reveal\">What an IP address cannot reveal\u003C\u002Fh2>\n\u003Cul>\n\u003Cli>\u003Cstrong>Residential proxies.\u003C\u002Fstrong> Traffic relayed through ordinary home connections arrives from an ordinary provider's address, with no flag.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>A VPN on a home or office line.\u003C\u002Fstrong> Someone who runs their own VPN server exits through a normal provider or business network.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>New services.\u003C\u002Fstrong> A VPN range is flagged only after it is identified.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>The person.\u003C\u002Fstrong> An anonymizer hides the user's own address from every site. Detection says how they connect, not who they are.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>A \u003Ccode>false\u003C\u002Fcode> flag therefore means &quot;not detected&quot;, never &quot;clean&quot;.\u003C\u002Fp>\n\u003Ch2 id=\"how-common-setups-show-up-in-a-lookup\">How common setups show up in a lookup\u003C\u002Fh2>\n\u003Cp>The same flags read differently depending on what the user actually runs. This table helps you read a result in context.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>What the user runs\u003C\u002Fth>\n\u003Cth>What the lookup shows\u003C\u002Fth>\n\u003Cth>Detectable from the address?\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>A commercial VPN app\u003C\u002Ftd>\n\u003Ctd>The VPN server's address: data center when the server is in a hosting network, VPN when the network is a known VPN service\u003C\u002Ftd>\n\u003Ctd>Often, not always\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>A VPN on a rented cloud server\u003C\u002Ftd>\n\u003Ctd>The cloud provider's network: data center, \u003Ccode>asn.type\u003C\u002Fcode> of \u003Ccode>hosting\u003C\u002Fcode>, no VPN flag unless the range is known\u003C\u002Ftd>\n\u003Ctd>As a server, yes; as a VPN, no\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>A company VPN\u003C\u002Ftd>\n\u003Ctd>The company's network (\u003Ccode>business\u003C\u002Fcode>) or its cloud provider (\u003Ccode>hosting\u003C\u002Fcode>)\u003C\u002Ftd>\n\u003Ctd>As corporate traffic, yes\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Tor Browser\u003C\u002Ftd>\n\u003Ctd>A Tor exit address\u003C\u002Ftd>\n\u003Ctd>Yes, from the published list\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>An open or paid proxy\u003C\u002Ftd>\n\u003Ctd>The proxy server's address: data center in a hosting network, proxy for a known proxy network\u003C\u002Ftd>\n\u003Ctd>Often, not always\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>A residential proxy network\u003C\u002Ftd>\n\u003Ctd>An ordinary internet provider's address, no flags\u003C\u002Ftd>\n\u003Ctd>No\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>A phone on mobile data\u003C\u002Ftd>\n\u003Ctd>A mobile carrier's address, \u003Ccode>asn.type\u003C\u002Fcode> of \u003Ccode>mobile\u003C\u002Fcode>, shared by many subscribers\u003C\u002Ftd>\n\u003Ctd>Not an anonymizer at all\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>&quot;Often, not always&quot; is the honest answer for every commercial service: detection depends on the network being identified before the user shows up. When the VPN flag and the network type disagree, for example a VPN flag on an \u003Ccode>isp\u003C\u002Fcode> network, trust the flag. It comes from a list of known VPN networks, while the network type describes the autonomous system as a whole.\u003C\u002Fp>\n\u003Ch2 id=\"signals-you-can-add-on-your-side\">Signals you can add on your side\u003C\u002Fh2>\n\u003Cp>The IP address is not the only evidence available at signup. A few checks of your own fill some of the gaps:\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Time zone against country.\u003C\u002Fstrong> In the browser, \u003Ccode>Intl.DateTimeFormat().resolvedOptions().timeZone\u003C\u002Fcode> returns the device's time zone, such as \u003Ccode>Europe\u002FParis\u003C\u002Fcode>. A device set to one continent behind an IP address on another is worth a second look, though travelers produce it too.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Velocity per network.\u003C\u002Fstrong> Count signups per ASN and per address in a sliding window. Ten accounts from one hosting network in an hour say more than any single lookup.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Repeated devices.\u003C\u002Fstrong> The same browser or device behind several new accounts is a stronger signal than any network.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Speed.\u003C\u002Fstrong> Forms completed faster than a person can type point to a script, whatever its address.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>These are your heuristics, run on your own data. Combine them with the flags rather than replacing one with the other.\u003C\u002Fp>\n\u003Ch2 id=\"read-the-right-client-address\">Read the right client address\u003C\u002Fh2>\n\u003Cp>A lookup is only as good as the address you send. Get this wrong and every check is meaningless.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>\u003Cstrong>Behind Cloudflare\u003C\u002Fstrong>, read the \u003Ccode>CF-Connecting-IP\u003C\u002Fcode> header.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Behind a load balancer or reverse proxy\u003C\u002Fstrong>, read the address it appends to \u003Ccode>X-Forwarded-For\u003C\u002Fcode>, and trust that proxy only. In Express, \u003Ccode>app.set('trust proxy', 1)\u003C\u002Fcode> trusts one hop and makes \u003Ccode>req.ip\u003C\u002Fcode> the client address.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>Never trust \u003Ccode>X-Forwarded-For\u003C\u002Fcode> blindly\u003C\u002Fstrong> on a server reachable directly: anyone can send that header with any value.\u003C\u002Fli>\n\u003Cli>\u003Cstrong>In local development\u003C\u002Fstrong>, the client address is \u003Ccode>127.0.0.1\u003C\u002Fcode> or \u003Ccode>::1\u003C\u002Fcode>. The API answers \u003Ccode>422 unprocessable_input\u003C\u002Fcode> for such addresses and does not bill the call. Treat it as &quot;no signal&quot;.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Ch2 id=\"check-an-address-with-the-api\">Check an address with the API\u003C\u002Fh2>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-bash\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">curl\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> https:\u002F\u002Fapi.qelka.com\u002Fv1\u002Fip\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -H\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"Authorization: Bearer \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">$API_KEY\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -H\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> \"Content-Type: application\u002Fjson\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> \\\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  -d\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> '{\"ip\": \"8.8.8.8\"}'\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-json\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">{\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"id\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"lkp_01M84BQ42CYKZT70N43DNMM29E\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"object\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"ip\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"input\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"8.8.8.8\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"version\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">4\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"country\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"code\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"US\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"name\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"United States\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"region\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">null\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"city\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">null\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"asn\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"number\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">15169\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"org\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"Google LLC\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"type\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"hosting\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"flags\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"tor\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"vpn\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"proxy\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"datacenter\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">true\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"risk\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: { \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"score\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">35\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">\"level\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">\"medium\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"credits_used\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">1\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">  \"cached\"\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">false\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Values are illustrative. The address belongs to a hosting network, so \u003Ccode>flags.datacenter\u003C\u002Fcode> is \u003Ccode>true\u003C\u002Fcode> and the risk is \u003Ccode>medium\u003C\u002Fcode>, with no VPN or proxy flag. In JavaScript, a function that turns the result into a level of friction, failing open:\u003C\u002Fp>\n\u003Cpre class=\"shiki shiki-themes github-light github-dark\" style=\"--shiki-light:#24292e;--shiki-dark:#e1e4e8;--shiki-light-bg:#fff;--shiki-dark-bg:#24292e\" tabindex=\"0\">\u003Ccode class=\"language-javascript\">\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">export\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> async\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> function\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> signupFriction\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">ip\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> response\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> await\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\"> fetch\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'https:\u002F\u002Fapi.qelka.com\u002Fv1\u002Fip'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    method: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'POST'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    headers: {\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">      Authorization: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">`Bearer ${\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">process\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">env\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">API_KEY\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">}`\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">      'Content-Type'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'application\u002Fjson'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">,\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    },\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    body: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">JSON\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">stringify\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">({ ip }),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    signal: AbortSignal.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">timeout\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\">3000\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">),\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">  }).\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">catch\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(() \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=>\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> null\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">!\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">response?.ok) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> { friction: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'none'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, flags: [] }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> result\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> await\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> response.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">json\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">()\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  const\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#005CC5;--shiki-dark:#79B8FF\"> flags\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\"> =\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> Object.\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">entries\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(result.flags)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">filter\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(([, \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">isSet\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">]) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=>\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> isSet)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">    .\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#6F42C1;--shiki-dark:#B392F0\">map\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">(([\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#E36209;--shiki-dark:#FFAB70\">name\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">]) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">=>\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> name)\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (result.flags.tor \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">||\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> result.risk.level \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">===\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> 'high'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> { friction: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'verify_before_active'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, flags }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  if\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> (result.risk.level \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">===\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\"> 'medium'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">) \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> { friction: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'verify_before_rewards'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, flags }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#D73A49;--shiki-dark:#F97583\">  return\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\"> { friction: \u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#032F62;--shiki-dark:#9ECBFF\">'none'\u003C\u002Fspan>\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">, flags }\u003C\u002Fspan>\u003C\u002Fspan>\n\u003Cspan class=\"line\">\u003Cspan style=\"--shiki-light:#24292E;--shiki-dark:#E1E4E8\">}\u003C\u002Fspan>\u003C\u002Fspan>\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>Store the returned flags with the account. A pattern across accounts, such as several signups from one data center network, says more than one lookup, and the flags are what you will want when you investigate abuse later. Each lookup costs 1 credit, cached or not, so look an address up at signup, login or checkout, not on every page view.\u003C\u002Fp>\n\u003Ch2 id=\"what-to-do-with-each-signal-at-signup\">What to do with each signal at signup\u003C\u002Fh2>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Signal\u003C\u002Fth>\n\u003Cth>Consumer product\u003C\u002Fth>\n\u003Cth>Developer or B2B product\u003C\u002Fth>\n\u003Cth>Payment or promotion\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>Tor exit node\u003C\u002Ftd>\n\u003Ctd>Verify email or phone before the account becomes active\u003C\u002Ftd>\n\u003Ctd>Same, or allow if your policy welcomes Tor\u003C\u002Ftd>\n\u003Ctd>Review or decline: the payer's location is hidden\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>VPN\u003C\u002Ftd>\n\u003Ctd>Allow; verify the email or phone\u003C\u002Ftd>\n\u003Ctd>Allow\u003C\u002Ftd>\n\u003Ctd>Compare billing country with other signals\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Proxy\u003C\u002Ftd>\n\u003Ctd>Verify before the account becomes active\u003C\u002Ftd>\n\u003Ctd>Verify\u003C\u002Ftd>\n\u003Ctd>Review\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Data center, no VPN or proxy flag\u003C\u002Ftd>\n\u003Ctd>Verify\u003C\u002Ftd>\n\u003Ctd>Normal: servers are your users' tools\u003C\u002Ftd>\n\u003Ctd>Review if the account is new\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>No flag\u003C\u002Ftd>\n\u003Ctd>Normal flow\u003C\u002Ftd>\n\u003Ctd>Normal flow\u003C\u002Ftd>\n\u003Ctd>Normal checks\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Cp>Tor deserves its own decision. Some services welcome Tor users on purpose, others see mostly abuse from it. The flag lets you apply your policy without guessing.\u003C\u002Fp>\n\u003Cp>Whatever you choose, prefer friction over walls. A real user asked to confirm an email loses a few seconds. A real user you block may never come back.\u003C\u002Fp>\n\u003Ch2 id=\"legitimate-traffic-that-trips-the-flags\">Legitimate traffic that trips the flags\u003C\u002Fh2>\n\u003Cp>Every flag has false positives that are not errors in the data: the address really is a server or a relay, but the person behind it is a normal customer.\u003C\u002Fp>\n\u003Ctable>\n\u003Cthead>\n\u003Ctr>\n\u003Cth>Source\u003C\u002Fth>\n\u003Cth>Flag it can raise\u003C\u002Fth>\n\u003Cth>How to recognize it\u003C\u002Fth>\n\u003C\u002Ftr>\n\u003C\u002Fthead>\n\u003Ctbody>\n\u003Ctr>\n\u003Ctd>A company's cloud security gateway\u003C\u002Ftd>\n\u003Ctd>Data center, sometimes proxy\u003C\u002Ftd>\n\u003Ctd>Many staff of one company arrive from a few addresses in the same network\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Virtual desktops and remote browsers\u003C\u002Ftd>\n\u003Ctd>Data center\u003C\u002Ftd>\n\u003Ctd>The network is a cloud platform; the user behaves like an office worker\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Privacy relays built into browsers or operating systems\u003C\u002Ftd>\n\u003Ctd>Data center or proxy\u003C\u002Ftd>\n\u003Ctd>The user did nothing unusual\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Your own monitoring, tests and CI\u003C\u002Ftd>\n\u003Ctd>Data center\u003C\u002Ftd>\n\u003Ctd>Your hosting providers' addresses; allowlist them\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003Ctr>\n\u003Ctd>Partners calling your API\u003C\u002Ftd>\n\u003Ctd>Data center\u003C\u002Ftd>\n\u003Ctd>Expected: authenticate them with keys instead\u003C\u002Ftd>\n\u003C\u002Ftr>\n\u003C\u002Ftbody>\n\u003C\u002Ftable>\n\u003Ch2 id=\"run-in-shadow-mode-first\">Run in shadow mode first\u003C\u002Fh2>\n\u003Cp>Before any flag changes what a user sees, log the decision your code would have made next to each new account, and do nothing else for a few weeks. Then compare with the accounts you later confirmed as abusive or legitimate. You learn how many real users each rule would have slowed down, and you set thresholds on your own traffic instead of assumptions.\u003C\u002Fp>\n\u003Cp>Results also change over time. Cloud providers reassign addresses, VPN services add and retire ranges, Tor relays come and go. Store the flags you saw at signup with the date, rather than expecting a lookup months later to give the same answer.\u003C\u002Fp>\n\u003Ch2 id=\"test-it-without-real-traffic\">Test it without real traffic\u003C\u002Fh2>\n\u003Cp>With a test key, the documentation ranges return fixed profiles: \u003Ccode>192.0.2.10\u003C\u002Fcode> is a residential address with a \u003Ccode>low\u003C\u002Fcode> risk, \u003Ccode>203.0.113.10\u003C\u002Fcode> a data center with \u003Ccode>medium\u003C\u002Fcode>, \u003Ccode>198.51.100.10\u003C\u002Fcode> a VPN and \u003Ccode>198.51.100.200\u003C\u002Fcode> a Tor exit node, both \u003Ccode>high\u003C\u002Fcode>. That covers every branch of the code above. See \u003Ca href=\"\u002Fdocs\u002Ftest-mode\">test mode\u003C\u002Fa>.\u003C\u002Fp>\n\u003Ch2 id=\"where-to-go-next\">Where to go next\u003C\u002Fh2>\n\u003Cp>The free \u003Ca href=\"\u002Ftools\u002Fvpn-proxy-detection\">VPN and proxy detection\u003C\u002Fa> tool checks any address by hand, and the \u003Ca href=\"\u002Ftools\u002Fasn-lookup\">ASN lookup\u003C\u002Fa> shows the network behind it. \u003Ca href=\"\u002Fdocs\u002Fguides\u002Fflag-vpn-and-datacenter-traffic\">Flag VPN and data center traffic\u003C\u002Fa> has the integration in Express and Python, and the \u003Ca href=\"\u002Fdocs\u002Fapi-reference\u002Fip\">IP API reference\u003C\u002Fa> lists every field. Location is a separate question, covered in \u003Ca href=\"\u002Fblog\u002Fip-geolocation-accuracy\">IP geolocation accuracy\u003C\u002Fa>, and \u003Ca href=\"\u002Fblog\u002Fprevent-fake-signups\">stopping fake signups\u003C\u002Fa> combines these flags with email and phone checks.\u003C\u002Fp>\n",[11,15,18,21,24,27,30,33,36,39,42,45],{"id":12,"text":13,"depth":14},"four-signals-four-kinds-of-evidence","Four signals, four kinds of evidence",2,{"id":16,"text":17,"depth":14},"how-each-signal-is-built","How each signal is built",{"id":19,"text":20,"depth":14},"what-an-ip-address-cannot-reveal","What an IP address cannot reveal",{"id":22,"text":23,"depth":14},"how-common-setups-show-up-in-a-lookup","How common setups show up in a lookup",{"id":25,"text":26,"depth":14},"signals-you-can-add-on-your-side","Signals you can add on your side",{"id":28,"text":29,"depth":14},"read-the-right-client-address","Read the right client address",{"id":31,"text":32,"depth":14},"check-an-address-with-the-api","Check an address with the API",{"id":34,"text":35,"depth":14},"what-to-do-with-each-signal-at-signup","What to do with each signal at signup",{"id":37,"text":38,"depth":14},"legitimate-traffic-that-trips-the-flags","Legitimate traffic that trips the flags",{"id":40,"text":41,"depth":14},"run-in-shadow-mode-first","Run in shadow mode first",{"id":43,"text":44,"depth":14},"test-it-without-real-traffic","Test it without real traffic",{"id":46,"text":47,"depth":14},"where-to-go-next","Where to go next",[49,52,55,58,61,64,67],{"q":50,"a":51},"How do websites detect VPNs?","Mostly from the IP address. The address is compared with lists of networks known to be run by VPN and proxy services, with the Tor Project's published list of exit nodes, and with a classification of networks as hosting, internet provider or mobile. A VPN server in a data center shows up as hosting even when its service is unknown. Some sites add signals from the browser, such as a time zone that does not match the IP country.",{"q":53,"a":54},"Can a VPN always be detected?","No. Detection depends on the VPN's network being identified before the user arrives. A new range, a small service, a VPN run on a home connection or a rented server inside an ordinary provider's network carries no VPN flag. Residential proxies, which route traffic through real home connections, are generally not detectable from the address at all. Treat a VPN flag as strong evidence and its absence as no evidence.",{"q":56,"a":57},"Should I block VPN users at signup?","Usually not. VPNs are everyday privacy and work tools: employees on corporate VPNs, travelers, people on public Wi-Fi. Blocking them turns away real customers, and a determined attacker switches to a residential proxy anyway. Use the flag to add friction instead, such as confirming the email or phone number before the account becomes active, and keep outright blocks for patterns you have confirmed on your own traffic.",{"q":59,"a":60},"What is a data center IP address?","An address that belongs to a hosting or cloud network, where servers run rather than people at home or on phones. Traffic from one comes from software: a script, a crawler, a VPN or proxy server, a cloud desktop or an integration calling your API. That is suspicious for a consumer signup and normal for a developer tool. In the Qelka API, it is flags.datacenter, set when the network type is hosting.",{"q":62,"a":63},"Can you detect residential proxies?","Generally not from the IP address. A residential proxy network routes traffic through ordinary home connections, so each request arrives from a normal internet provider's address with no flag. Detection has to come from behavior instead: many signups in a short time, devices or browsers that repeat across accounts, or form submissions faster than a person can type. Rate limits and rewards held until confirmation help most.",{"q":65,"a":66},"How do I detect Tor users?","Compare the visitor's IP address with the list of Tor exit nodes that the Tor Project publishes. Traffic from Tor leaves the network through an exit node, so the address a site sees is on that list. The check is reliable for exits on the list, though relays join and leave all the time. In the Qelka API, the result is flags.tor, refreshed from the Tor Project's bulk exit list on a schedule.",{"q":68,"a":69},"Why is my IP flagged as a VPN when I am not using one?","Usually because your traffic leaves through a server rather than your own connection. Company security gateways, cloud desktops, privacy relays built into some browsers and operating systems, and some mobile carriers route traffic through networks classified as hosting. Addresses also change hands: a range used by a VPN service last year may have been reassigned. If a site blocks you, contact its support with the address shown by a what-is-my-IP tool.","2026-11-23",10,1961,{},1795474029025]