Example curl 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"{
"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"
}Exclude-Targetting
Exclude ASN Targeting
Execute a proxy request while excluding traffic from specific ASNs (Autonomous System Numbers).
How to Specify ASN Exclusion
To exclude one or more ASNs from the proxy routing, append:
-not.asn-<asn_number_1>,<asn_number_2>
after your <geonode_username>.
You can pass a single ASN like -not.asn-31898
or multiple ones like -not.asn-31898,12345,67890
You can optionally combine it with country targeting:
-country-us-not.asn-31898
Mixing with other exclusions like -not.country or -not.city is not supported in the same request.
Example curl 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"{
"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"
}Response
Successful proxy response with ASN exclusion.
Example:
"success"
Example:
"United States"
Example:
"US"
Example:
"MA"
Example:
"Massachusetts"
Example:
"Springfield"
Example:
"01101"
Example:
42.0986
Example:
-72.5931
Example:
"America/New_York"
Example:
"RingSquared CC"
Example:
""
Example:
"AS7849 RingSquared CC"
Example:
"161.77.215.31"
Was this page helpful?