Perform ASN Exclusion

Execute a proxy request while excluding traffic from specific ASNs (Autonomous System Numbers).

Route your proxy requests while excluding specific ASNs (Autonomous System Numbers) from the routing.

Exclusion Rules

You cannot mix ASN exclusions with other exclusion types (country, city, or state) in the same request. Use only one exclusion type per request.

How to Specify ASN Exclusion

Append -not.asn-<asn_number_1>,<asn_number_2> after your <geonode_username>.

  • Single ASN: -not.asn-31898
  • Multiple ASNs: -not.asn-31898,12345,67890
  • With country targeting: -country-us-not.asn-31898

Request

curl --request GET \
     -x "http://proxy.geonode.io:9000" \
     --user "<geonode_username>-country-us-not.asn-<asn_number>:<geonode_password>" \
     --url "http://ip-api.com/json"

Response

200 Success

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

Response Fields

FieldTypeDescription
statusstringThe status of the request (e.g., "success")
countrystringThe full name of the country
countryCodestringThe two-letter 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": "MA",
  "regionName": "Massachusetts",
  "city": "Springfield",
  "zip": "01101",
  "lat": 42.0986,
  "lon": -72.5931,
  "timezone": "America/New_York",
  "isp": "RingSquared CC",
  "org": "",
  "as": "AS7849 RingSquared CC",
  "query": "161.77.215.31"
}

On this page