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:
| Form | Example 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.countryornot.stateornot.cityornot.asn). - Do not combine
-not.country-with-not.state-,-not.city-, or-not.asn-in the same username.
Parameters
| Name | In | Required | Description |
|---|---|---|---|
geonode_username | proxy user | yes | Dashboard proxy username (before flags) |
geonode_password | proxy user | yes | Dashboard proxy password |
not.country | username flag | yes | Comma-separated country codes to exclude |
port | proxy URL | yes | Proxy 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).
Related
- Guide: Exclude Specific Location
- Also in this section: state, city, and ASN exclusion
Was this page helpful?