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
| Field | Type | Description |
|---|---|---|
status | string | The status of the request (e.g., "success") |
country | string | The full name of the country |
countryCode | string | The two-letter country code |
region | string | The region code |
regionName | string | The full name of the region |
city | string | The name of the city |
zip | string | The postal code associated with the IP |
lat | number | The latitude coordinate |
lon | number | The longitude coordinate |
timezone | string | The timezone of the IP location |
isp | string | The name of the Internet Service Provider |
org | string | The organization that owns the IP address |
as | string | The Autonomous System (AS) number |
query | string | The 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"
}