Skip to main content

Geo targeting

Geo targeting lets you route traffic through mobile IPs in specific US states.

Benefits

  • Geographic IP diversity: Distribute requests across IPs from different US states to avoid concentration patterns that trigger blocks.
  • Test localized experiences: Verify that your application behaves correctly for users in different states.

Geo target IPs using the Aluvia client

Use updateTargetGeo() to change your target state at runtime:

await client.updateTargetGeo('us_ca');  // Target California
await client.updateTargetGeo('us_ny'); // Switch to New York
await client.updateTargetGeo(null); // Clear geo targeting

Changes take effect immediately—no restart required.

See Manage Connections for examples.

Geo target IPs using the -geo parameter

In instances where you cannot use the SDK or API (e.g., using a third-party proxy client), you can geo target IPs by adding the -geo parameter and a geography to your connection's username.

myusername-geo-ny_ca

This format works with any HTTP client that supports proxy authentication.

Available states

CodeState
us_alAlabama
us_akAlaska
us_azArizona
us_arArkansas
us_caCalifornia
us_coColorado
us_ctConnecticut
us_deDelaware
us_flFlorida
us_gaGeorgia
us_hiHawaii
us_idIdaho
us_ilIllinois
us_inIndiana
us_iaIowa
us_ksKansas
us_kyKentucky
us_laLouisiana
us_meMaine
us_mdMaryland
us_maMassachusetts
us_miMichigan
us_mnMinnesota
us_msMississippi
us_moMissouri
us_mtMontana
us_neNebraska
us_nvNevada
us_nhNew Hampshire
us_njNew Jersey
us_nmNew Mexico
us_nyNew York
us_ncNorth Carolina
us_ndNorth Dakota
us_ohOhio
us_okOklahoma
us_orOregon
us_paPennsylvania
us_riRhode Island
us_scSouth Carolina
us_sdSouth Dakota
us_tnTennessee
us_txTexas
us_utUtah
us_vtVermont
us_vaVirginia
us_waWashington
us_wvWest Virginia
us_wiWisconsin
us_wyWyoming
us_dcDistrict of Columbia

Get available states programmatically

Use the API to get the current list of available states:

import { AluviaApi } from '@aluvia/sdk';

const api = new AluviaApi({ apiKey: process.env.ALUVIA_API_KEY! });
const geos = await api.geos.list();

for (const geo of geos) {
console.log(`${geo.code}: ${geo.label}`);
}
  • Connections — Understand connection attributes including target_geo