Skip to main content
Exclude a specific country using geo-targeting
Evan avatar
Written by Evan
Updated over 2 weeks ago

Quick Example:

"username;country=-US"

Video guide here.

If you do not want to connect to proxies from a specific country, you can add a minus symbol in front of the country abbreviation. For example, to connect to IPs in any location except the US would look like this: “username;country=-US:password”. You can also exclude multiple countries by separating each country with a comma.

Using the “=” syntax here, you need to encapsulate your username and password in quotation marks. It would look like this: “username;country=-US:password”

You can retrieve a list of available countries using the Proxyrack API. Here is a guide.

Please note that cURL is used below as an example. You do not need to use cURL in order to geo-target. You can do this wherever you have configured your proxies, such as in a browser, code, etc.

Examples

Unmetered Residential:

Please note: Unmetered Residential proxies are no longer available for purchase. Existing subscriptions will continue to work, however.
curl -x unmetered.residential.proxyrack.net:10000 -U 'username;country=-US:password' http://example.com

Live example here.

Premium Residential:

curl -x premium.residential.proxyrack.net:10000 -U 'username;country=-US:password' http://example.com

Live example here.

Private Unmetered Residential:
curl -x private.residential.proxyrack.net:10000 -U 'username;country=-US:password' http://example.com

Live example here.

Global Rotating Datacenter:
curl -x global.rotating.proxyrack.net:10000 -U 'username;country=-US:password' http://example.com

Live example here.

Did this answer your question?