Skip to content

How to Check Geo-Specific Redirects with a Proxy

Many sites send visitors to different pages by country or language. This guide shows how to use a proxy to observe those redirects step by step and record what you find.

10 min readUpdated Nov 14, 2026By XPASS Editorial Team

How to Check Geo-Specific Redirects with a Proxy

Open the same web address from Bangkok, Berlin and Boston and you may land on three different pages. One visitor sees a Thai version with local currency, another is sent to a German subdomain, and the third gets a pop-up asking which country store to use. These geo-specific redirects are normal, and they are also a frequent source of bugs: a redirect loop for one country, a missing page for another, or a search engine crawler that never reaches the right version.

A proxy is a practical way to see what visitors in another place see, without travelling or asking colleagues abroad to take screenshots. This guide explains how to set up a clean test, read the redirect chain, compare regions, and record results you can trust. It assumes lawful use: testing your own sites, testing sites you have permission to test, or doing light, occasional checks of public pages while respecting their terms and local law.

How geo-specific redirects work

A site can choose where to send a visitor using several signals. Knowing them tells you what to control in a test.

  • IP address: the server, a CDN or an edge function looks up the visitor's IP in a geolocation database and maps it to a country or region.
  • Accept-Language header: the browser tells the site which languages the user prefers. A site may redirect based on this header alone or combine it with the IP.
  • Cookies: after a visitor picks a country or language, many sites store the choice in a cookie and skip the redirect on later visits.
  • URL path or subdomain: some sites use paths like /de/ or subdomains like de.example.com and redirect users to the "right" one on first visit.
  • Other hints: device type, previous referrer, or A/B test assignments can also change the target.

The redirect itself is an ordinary HTTP response. RFC 9110 defines the redirection status codes, including 301 and 308 for permanent moves and 302, 303 and 307 for temporary ones, and the Location header that carries the new address. Many geo-redirects use a temporary code, because the "right" destination depends on who is asking and should not be cached as permanent for everyone. A permanent code used for a visitor-dependent redirect is a classic bug, since caches may then send the wrong region's users to the same place.

What you need before you start

Prepare a small test kit so your results are repeatable.

  1. A proxy endpoint in the region you want to observe. Check the plan page or your provider's documentation for the locations that are available and how you select one.
  2. A client that shows each hop of a redirect chain. A command-line HTTP client with redirect following disabled by default is ideal, and so is a script in your favourite language. A browser developer tools network tab also works if you preserve the log.
  3. A clean state: no stored cookies and no saved language preferences. Use a fresh profile or an empty cookie jar for every region.
  4. A list of URLs to test and a record of the expected result for each region.
  5. A place to store results, such as a spreadsheet or a structured log. Keep credentials out of it, and see the article on handling proxy credentials with environment variables for a clean way to supply them to your client.

Run the test step by step

Follow the same procedure for every region so the comparison is fair.

  1. Run a baseline from your own location without a proxy. Request the URL and do not follow redirects automatically. Record the status code and the Location header of each hop.
  2. Confirm the exit location of the proxy before you test. Request a diagnostic endpoint that reports the visible IP and country, and note the result. If the country is not the one you intended, fix this first, since every later result depends on it.
  3. Request the same URL through the proxy, again with redirects disabled. Record the status code, the Location header, and any cookies set in the response.
  4. Follow the redirect manually. Request the Location address, still through the same proxy and with the cookies you received, and record the next hop. Continue until you reach a final page with status 200 or until you have followed a sensible maximum number of hops, such as ten. If the chain keeps going, you may have found a loop.
  5. Record the final URL, final status code, page language, and any visible currency or country label.
  6. Repeat from the next region with a fresh cookie jar.
  7. Repeat each region at least twice, ideally at different times, to see whether results are stable.

A simple record per test might contain the region, the proxy label, the exit country reported by the diagnostic endpoint, the list of hops with status codes, the final URL, and a note about anything unusual.

A worked example

Suppose you run an online store at shop.example and want to confirm that visitors from Thailand go to the Thai storefront while visitors from Germany go to the German one.

From your own location you request https://shop.example/ and see a 200 response with the global English page. Through a proxy in Thailand, the same request returns a 302 with a Location of https://shop.example/th/. Following that hop returns 200 with a Thai page and Thai Baht prices. Through a proxy in Germany, you get a 302 to /de/, then a 200 with a German page and euro prices.

Then you test a page that is deeper in the site, https://shop.example/products/tea. From Thailand you expect a redirect to /th/products/tea, but the response is a 302 to /th/, which drops the visitor on the storefront home page rather than the product. This is a real finding: the redirect rule preserves the host but not the path. Without per-region, per-URL testing you would likely have missed it, because the home page works.

Reading the results

The table below lists common patterns and what they usually mean.

What you see Likely meaning What to check
302 or 307 to a regional path Normal temporary geo-redirect Confirm the path is preserved for deep links
301 or 308 to a regional path Permanent redirect used for a visitor-dependent decision Caches may serve the wrong region; review the rule
Redirect back and forth between two URLs Loop between a language rule and a country rule Compare the rules and the cookie logic
200 on the same URL, different language The site varies content without redirecting Look for a Vary header and caching rules
403 or a challenge page The site restricts that traffic or region Stop and review the site's terms; do not try to bypass
Different result on repeat Cookies, A/B test, cache or geolocation differences Use a clean client and repeat several times
Exit country differs from intended Proxy location or geolocation data mismatch Re-check the exit before trusting any result

The Vary header deserves a note. If a response depends on the Accept-Language header or on a cookie, a correct server tells caches so with Vary. A missing Vary header on a language-dependent page is a classic way for one visitor's version to be served to another.

Control what you can control

Several details quietly change redirect behaviour. Fix them, and write them down.

  • Accept-Language: set it explicitly. A client that sends your local language preference may be redirected to that language even when the proxy region is different, which can mislead you. Test with the header matching the region, and also test with a neutral value, to see which signal the site follows.
  • User-Agent: some sites treat crawlers and browsers differently. If you are testing what search engines see, remember that a plain client is not a search engine, and do not impersonate crawlers in ways a site prohibits.
  • Cookies: start clean. Then run a second pass that reuses cookies, to confirm the site remembers the visitor's choice and does not redirect again.
  • HTTP version and TLS details rarely matter, but a very old client can be handled differently by an edge network.
  • DNS: if your client resolves names locally rather than through the proxy, the resolved address may differ from what a visitor in the target region would get. Use a proxy mode that resolves remotely when you want the target region's view, and check the documentation of your client.

Keep it polite and lawful

Redirect testing needs very few requests, so there is no reason to be aggressive. Check a small, representative list of URLs, space the requests out, and avoid repeated rapid-fire loops. If the site publishes a robots file, the Robots Exclusion Protocol in RFC 9309 describes how to read it, and respecting it is part of being a considerate automated client. Read the terms of service of any site that is not yours. If a site shows a challenge or block page, treat it as the site's decision and stop; do not attempt to bypass access controls or limits. Proxies are tools for legitimate regional testing, not for working around rules.

If you plan to repeat these tests regularly, say every day before a release, it is worth wrapping them in a scheduled job and watching the proxy's own condition first. The article on automated proxy health checks shows how to confirm that the proxy and its exit location are healthy before the redirect tests start, so you do not blame the website for a proxy problem.

Store results without exposing data

Redirect tests can capture cookies, URLs with query strings and sometimes tokens in headers. Do not paste these into shared documents. Strip session identifiers and personal data, shorten URLs to the parts you need, and keep proxy credentials out of every report. The article on collecting proxy logs without exposing user data covers masking and retention in more detail.

Limits and things to watch for

  • IP geolocation is approximate. Databases disagree and change, so the site may see a different country from the one your proxy provider lists. Always verify the exit country with a diagnostic endpoint at the time of the test.
  • A redirect you see through a proxy is what the site sent to that network at that moment. It may differ from what a real visitor sees if the visitor has different cookies, a different language setting, or is part of an A/B test.
  • Some redirects are done in the browser with JavaScript, not by an HTTP response. A simple client will not see them. If your chain ends on a page that then changes the address after loading, use a real browser automation tool for that part.
  • Caches and edge networks can serve different versions at different times. Repeat tests and record the time.
  • Not every region is available in every setup. Check the product page or your provider's documentation for what you can select, rather than assuming.
  • Do not use redirect testing to collect large amounts of content, to evade restrictions, or to access material you are not allowed to access.

Summary

Geo-specific redirects depend on IP geolocation, language headers, cookies and URL rules, so a good test controls each of those. Use a proxy in the target region, confirm its exit country first, disable automatic redirect following, and record every hop with its status code and Location header. Compare each region with a baseline, check deep links as well as home pages, repeat tests with clean cookie jars, and watch for loops, permanent codes used for visitor-dependent decisions, and missing Vary headers. Keep requests few and polite, respect site terms and local law, protect credentials and personal data in your records, and remember that geolocation is approximate. When you need a proxy for regional testing like this, the Proxy page explains what is available.

Frequently asked questions

Why does a website redirect visitors by country?

Sites redirect by country to show a local language, local currency, local legal notices or a regional store. The decision is usually made from the visitor's IP address, the Accept-Language header, a saved cookie, or a mix of these.

How can a proxy help me check geo-specific redirects?

A proxy lets your request leave from a network in the region you want to test, so you can see which redirect the site sends to visitors there. You compare the full redirect chain from each region against the chain from your own location.

Why do I see different redirects on repeated tests from the same region?

Cookies, language headers, caching, A/B tests and IP geolocation differences can all change the result. Use a clean client with no stored cookies, fix your headers, and repeat each test a few times before drawing a conclusion.

Is it acceptable to test redirects on someone else's website?

Light, occasional checks of public pages are common practice, but you should follow the site's terms and robots rules, keep request volume low, and only test what you are allowed to test. For your own site, you have more freedom.

About the author

Bob Kanokphon Thongdee, founder of XPASS VPN

Bob Kanokphon Thongdee

  • Founder of XPASS VPN
  • Co-founder of eSIMonline.asia
  • More than 7 years in online marketing
  • Founder of Cojourney Visa and Cojourney Travel

Need a proxy for this?

XPASS Proxy sells residential proxy traffic by the gigabyte, with the price shown before you pay.

See proxy plans

Keep reading

Proxy Guides

How to Automate Proxy Health Check Testing

A proxy that worked yesterday may fail today. This guide shows how to design a small, polite health check that tests connectivity, exit IP, latency and errors on a schedule.

10 min read

Proxy Guides

Managing Proxy Credentials with Environment Variables

Hardcoded proxy passwords end up in Git history, logs and screenshots. This guide shows a safer pattern using environment variables, with naming, loading, masking and rotation.

9 min read

Proxy Guides

How to Log Proxy Traffic Without Exposing User Data

Logs help you debug proxy jobs, but they can leak passwords, tokens and personal data. Learn what to keep, what to mask and how long to store it.

10 min read