v1.13.1-4059c5c7
Skip to main content
ProxiesTutorial

Geo-Targeting with Proxies: How to Access Content from Any Country

8 min read

By Hex Proxies Engineering Team

The internet is not the same for everyone. A Google search in New York returns different results than the same search in London. Amazon shows different prices in Germany than in Japan. Netflix catalogs vary by country. News sites block visitors from certain regions entirely. If your work requires seeing the internet as users in other countries see it, you need geo-targeted proxies.

Geo-targeting means routing your internet traffic through an IP address located in a specific country, state, or city. The target website sees an IP from that location and serves the corresponding localized content. This guide explains how geo-targeting works, when you need it, and how to set it up with practical examples.


How Geo-Targeting Works

Every IP address is registered to a geographic location. When you visit a website, the site checks your IP against a geolocation database (like MaxMind or IP2Location) and determines your approximate location. Based on that location, the site may:

  • Display prices in a local currency
  • Show region-specific product availability
  • Apply location-based access restrictions
  • Serve localized ads and search results
  • Redirect to a country-specific domain
When you connect through a geo-targeted proxy, the website sees the proxy's IP -- not yours. If the proxy IP is registered in Germany, the website treats you as a German visitor.

The accuracy of geo-targeting depends on the proxy provider's IP pool. Hex Proxies maintains residential IPs sourced from real ISP subscribers in 93+ countries, which means the IPs are registered to actual residential addresses in those locations. Geolocation databases classify them as genuine local traffic.


Use Cases for Geo-Targeted Proxies

1. Price Monitoring Across Markets

E-commerce prices vary dramatically by region. Airlines, hotels, and SaaS products often show different prices based on the visitor's location. Geo-targeted proxies let you collect prices from every market you care about:

import requests

countries = ["us", "gb", "de", "jp", "au", "br"]
results = {}

for country in countries:
    proxy_url = (
        f"http://YOUR_USERNAME-country-{country}:"
        f"YOUR_PASSWORD@gate.hexproxies.com:8080"
    )
    proxies = {"http": proxy_url, "https": proxy_url}

    response = requests.get(
        "https://example-store.com/product/widget-pro",
        proxies=proxies,
        timeout=15,
        headers={"User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"},
    )

    results[country] = response.text
    print(f"{country.upper()}: collected {len(response.text)} bytes")

This pattern is the foundation of competitive price intelligence. For a detailed guide, see our price comparison use case.

2. Ad Verification

Brands spend millions on digital advertising but cannot verify what their ads look like in different markets without geo-targeted access. Proxies let you see exactly what users in Tokyo, Sao Paulo, or Berlin see when your ad is supposed to appear.

Key verification tasks:

  • Confirm ads display correctly in target markets
  • Check that competitors are not bidding on your brand terms in specific regions
  • Verify that affiliates are not running unauthorized campaigns
  • Detect click fraud patterns across geographies

3. SEO and SERP Monitoring

Search engine results are hyper-localized. A keyword that ranks #1 in California may rank #15 in Texas. For accurate SEO monitoring, you need to query search engines from the specific locations your customers are in.

4. Content Localization Testing

If your website serves different content to different regions, you need to verify that localization works correctly. Geo-targeted proxies let your QA team see the site as users in each market see it, without needing VPNs or physical presence in those countries.

5. Accessing Region-Locked Content

Some websites restrict access to users in specific countries. Academic databases, government resources, streaming platforms, and news sites may all apply geo-restrictions. Proxies let researchers and analysts access this content from anywhere.


Setting Up Geo-Targeting with Hex Proxies

Hex Proxies uses a username-parameter system for geo-targeting. You append the target location to your proxy username:

Country-level targeting

Username: YOUR_USERNAME-country-us
Password: YOUR_PASSWORD
Proxy: gate.hexproxies.com:8080

Supported country codes follow the ISO 3166-1 alpha-2 standard: us, gb, de, jp, au, br, fr, ca, in, and 90+ more.

City-level targeting

For markets where city-level precision matters (e.g., comparing prices in New York vs Los Angeles):

Username: YOUR_USERNAME-country-us-city-newyork

City-level targeting is available for major metropolitan areas in the US, UK, Germany, Canada, Australia, and other key markets.

Combining geo-targeting with other features

You can combine geo-targeting with sticky sessions and proxy type selection:

# Geo + sticky session
YOUR_USERNAME-country-de-session-mySession1

# Geo + specific pool
YOUR_USERNAME-country-gb-type-residential

Geo-Targeting Accuracy: How It Works

Not all geo-targeting is created equal. The accuracy depends on three factors:

1. IP source

Residential IPs from actual ISP subscribers have the most accurate geolocation data because they are registered to real addresses. Datacenter IPs may be registered to a data center's physical location, which does not always match the intended target country.

Hex Proxies residential IPs are sourced from real subscriber connections, so geolocation databases like MaxMind, IP2Location, and DB-IP correctly classify them. Learn more about our geo-targeting accuracy.

2. Geolocation database coverage

Websites use different geolocation databases, and these databases are not always in agreement. An IP that MaxMind places in Chicago might be placed in a nearby suburb by IP2Location. For country-level targeting, accuracy is typically 99%+. For city-level targeting, accuracy is 85-95% depending on the database and ISP.

3. Pool diversity

A large pool with IPs from many ISPs in each country provides more reliable targeting. If a provider has only 100 IPs in Germany from a single ISP, the targeting is technically accurate but limited. Hex Proxies maintains deep pools in all 93+ supported countries, with IPs sourced from multiple ISPs in each market.


Best Practices for Geo-Targeted Scraping

1. Use country-level targeting when city-level is not needed

Country-level targeting draws from a larger IP pool, which means better rotation diversity and lower block rates. Only use city-level targeting when you genuinely need location-specific data at that granularity.

2. Match your Accept-Language header to the target country

Websites often check your Accept-Language header in addition to your IP. If you are accessing a German site through a German IP but your headers say en-US, the site may serve English content or flag the inconsistency.

# Targeting Germany -- match headers to location
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36",
    "Accept-Language": "de-DE,de;q=0.9,en;q=0.1",
}

3. Verify your geo-targeting is working

Before running a large scraping job, verify that the proxy is serving IPs from the correct location:

import requests

proxy_url = "http://YOUR_USERNAME-country-jp:YOUR_PASSWORD@gate.hexproxies.com:8080"
proxies = {"http": proxy_url, "https": proxy_url}

# Check IP geolocation
response = requests.get("https://ipinfo.io/json", proxies=proxies, timeout=15)
data = response.json()
print(f"IP: {data.get('ip')}")
print(f"Country: {data.get('country')}")
print(f"City: {data.get('city')}")
print(f"ISP: {data.get('org')}")

4. Handle currency and locale differences

When scraping prices across countries, normalize currencies before comparing. A product that costs $29.99 in the US and 27.99 EUR in Germany are not directly comparable without exchange rate conversion.

5. Be aware of legal considerations

Different countries have different data protection laws. GDPR applies to EU data regardless of where you are located. Always ensure your scraping activities comply with local regulations in both your country and the target country.


Geo-Targeting vs VPNs: Why Proxies Are Better for Business Use

FeatureGeo-Targeted ProxiesVPN
IP diversityThousands of IPs per countryUsually 1-10 per server
Concurrent locationsUnlimitedOne at a time (per device)
Automation supportFull API and credential supportRequires app or system config
Detection resistanceResidential IPs, high trustKnown VPN IP ranges, easily blocked
ScalabilityThousands of concurrent sessionsSingle connection per device
Speed for scrapingOptimized for data collectionOptimized for streaming
VPNs are designed for individual privacy. Proxies are designed for business-scale data collection. If you need to access content from 20 countries simultaneously or run hundreds of concurrent sessions, proxies are the right tool.

Pricing for Geo-Targeted Proxies

Geo-targeting does not cost extra with Hex Proxies. All residential plans include access to the full 93+ country pool at no additional charge:

  • Residential proxies: Starting at $4.25/GB with geo-targeting included
  • ISP proxies: Per-IP pricing with location selection at purchase
Visit our proxy cost calculator to estimate costs based on your expected bandwidth usage.

Ready to Access Content from Any Country?

Whether you need to monitor prices across 50 markets, verify ads in Europe, or test your website's localization, Hex Proxies provides the geo-targeting infrastructure you need.

Explore pricing plans -- all residential plans include 93+ country targeting, city-level precision in major markets, and the full global coverage map with no extra fees.