Exclude targeting

Exclude country

Exclude specific countries when assigning a proxy IP. This is a username flag on the proxy connection (proxy.geonode.io), not a separate HTTP management API.

Auth

Use your Geonode proxy username and password with the proxy URL.

Username syntax

Append exclusion flags to your username:

FormExample username suffix
Single country-not.country-US
Multiple countries-not.country-US,CA,MX

Full proxy user string shape:

<geonode_username>-not.country-<CODE>[,<CODE>...]:<geonode_password>

Country codes are ISO 3166-1 alpha-2 (for example US, DE, GB).

Rules

  • Use only one exclusion type per request (not.country or not.state or not.city or not.asn).
  • Do not combine -not.country- with -not.state-, -not.city-, or -not.asn- in the same username.

Parameters

NameInRequiredDescription
geonode_usernameproxy useryesDashboard proxy username (before flags)
geonode_passwordproxy useryesDashboard proxy password
not.countryusername flagyesComma-separated country codes to exclude
portproxy URLyesProxy port from your plan / dashboard

Example

curl -x "http://proxy.geonode.io:<port>" \
  --proxy-user "<geonode_username>-not.country-US,CA:<geonode_password>" \
  "http://ip-api.com/json"

Replace <port>, <geonode_username>, and <geonode_password> with your values.

Response

The example URL is ip-api.com (a public IP check). The JSON below is that service’s response for the egress IP Geonode assigned — it is not a Geonode API schema.

After excluding US (and optionally others), countryCode should not be one of the excluded codes.

{
  "status": "success",
  "country": "Chile",
  "countryCode": "CL",
  "region": "RM",
  "regionName": "Santiago Metropolitan",
  "city": "Santiago",
  "zip": "",
  "lat": -33.4488,
  "lon": -70.6692,
  "timezone": "America/Santiago",
  "isp": "Space Exploration Technologies Corporation",
  "org": "SpaceX Starlink",
  "as": "AS14593 Space Exploration Technologies Corporation",
  "query": "153.67.137.128"
}

-not.country-US returned countryCode: "CL" (not US). zip may be an empty string.

Useful fields to check: countryCode, query (egress IP).

Was this page helpful?

On this page