Perform City Exclusion

Execute a proxy request while excluding specific cities from the routing.

Route your proxy requests while excluding specific cities from the routing.

Exclusion Rules

You can only exclude cities. You cannot combine city exclusions with country, state, or ASN exclusions in the same request.

How to Specify City Exclusion

Append -not.city-<city_1>,<city_2> after your <geonode_username>.

  • Single city: -not.city-charlotte
  • Multiple cities: -not.city-charlotte,newyork,houston
  • With country: -country-US-not.city-charlotte,newyork

Request

curl --request GET \
     -x "http://proxy.geonode.io:<port>" \
     --user "<geonode_username>-country-<country_code>-not.city-<city_1>,<city_2>:<geonode_password>" \
     --url "http://ip-api.com/json"

Response

200 Success

Returns detailed geolocation information about the IP address, excluding the specified cities.

Response Fields

FieldTypeDescription
statusstringThe status of the request (e.g., "success")
countrystringThe full name of the country
countryCodestringThe two-letter ISO country code
regionstringThe region code
regionNamestringThe full name of the region
citystringThe name of the city
zipstringThe postal code associated with the IP
latnumberThe latitude coordinate
lonnumberThe longitude coordinate
timezonestringThe timezone of the IP location
ispstringThe name of the Internet Service Provider
orgstringThe organization that owns the IP address
asstringThe Autonomous System (AS) number
querystringThe queried IP address

Example Response

{
  "status": "success",
  "country": "United States",
  "countryCode": "US",
  "region": "NC",
  "regionName": "North Carolina",
  "city": "Charlotte",
  "zip": "28202",
  "lat": 35.2327,
  "lon": -80.8461,
  "timezone": "America/New_York",
  "isp": "FiberPower LLC",
  "org": "FiberPower LLC",
  "as": "AS214483 FiberPower LLC",
  "query": "38.13.166.129"
}

On this page