How to Check Canonical and Hreflang from Multiple Regions
Canonical and hreflang tags tell search engines which page is the main one and which version fits which audience. Learn how to verify them as each region actually receives them.
10 min readUpdated Nov 14, 2026By XPASS Editorial Team

Canonical and hreflang tags are small pieces of markup with large consequences. A canonical tag says which URL is the preferred one when several pages carry the same or very similar content. Hreflang annotations say which version of a page is meant for which language or region. When they are right, search engines can show the Thai page to Thai readers and the English page to English readers. When they are wrong, the wrong page ranks, regional versions compete with each other, or good pages are ignored. This guide shows how to verify both kinds of tags as they are actually served in different regions, which is the part most teams skip.
Why regional checking matters for these tags
Most people check canonical and hreflang by opening a page, viewing the source and reading the head section. That proves what the site sends to you, from your location, with your cookies. If the site changes behaviour by location, as described in why the same website shows different content by country, the tags can differ elsewhere.
Typical ways regional behaviour changes these tags:
- A redirect based on IP location sends visitors from one country to another version, so the page they land on has a different canonical.
- A CDN serves a cached regional copy whose tags were generated for a different market.
- A script inserts or rewrites the tags after load, using a location or language guess.
- A consent or personalisation layer changes templates for particular regions.
Search engines often crawl from a small number of locations, so the version they see can differ from what your customers see. You cannot control the crawler's location, but you can check how your site behaves toward different locations and make sure every version stays consistent.

A quick refresher on both tags
Canonical. Placed in the head of an HTML page as a link with rel="canonical" and an absolute URL, or sent as an HTTP Link header for non-HTML files. It is a strong hint, not a command. Use it to consolidate duplicates such as the same page with tracking parameters, with or without a trailing slash, or on HTTP and HTTPS.
Hreflang. Alternate links that pair a language, and optionally a region, with a URL. There are three ways to supply them: link elements in the HTML head, Link headers in the HTTP response, or entries in an XML sitemap as described by the Sitemaps.org protocol. Pick one method per page group and keep it consistent.
Key rules to remember:
| Rule | Why it matters |
|---|---|
| Use absolute URLs including the scheme | Relative or protocol-less URLs are easy to get wrong |
| Each version references itself in the hreflang set | The group is then complete from any entry point |
| References must be reciprocal | If page A names page B, page B must name page A, or the annotation may be ignored |
| Language codes first, region codes second | Use values such as en, en-gb, th, zh-hans; the region alone is not valid |
Add an x-default entry when you have a fallback or selector page |
It tells search engines where to send unmatched visitors |
| Every hreflang URL should return 200 and be the canonical of its own page | Pointing to redirected or non-canonical URLs weakens the signal |
| Canonical and hreflang must agree | A page whose canonical points elsewhere should not be listed as an alternate |
These are the general principles that the Google Search Central starter guide also stresses: make each page clear, consistent and reachable.
Step-by-step: verify from each region
Prepare a short list of representative pages first: the home page, a product or service page, a category page and one article. Checking everything is rarely needed; checking the templates is.
- Record the expected set. For each page, write down the intended canonical URL and the full list of hreflang alternates, including
x-default. - Use a clean test setup. New browser profile or a script with no cookies, a language header that matches the market, and no signed-in account.
- Pick the regions. Choose the markets you target plus your home location. A Proxy with exit points in those countries lets you send the same request from each. Confirm the apparent country before you start, and check the provider's plan page for what is actually offered.
- Fetch the raw response. Request the URL and keep the status code, the
Locationheader if it is a redirect, theLinkheaders, and the HTML. Do not rely on the browser view alone. - Follow redirects deliberately. Note the full chain. If a request from one region ends on a different URL than another region, record both final URLs.
- Extract the tags. From the raw HTML, list the canonical and every hreflang link. Then compare with the rendered DOM in the browser developer tools; if the two differ, a script is changing the tags.
- Compare across regions. Build a table with one row per region and columns for final URL, canonical, number of hreflang entries and any differences.
- Validate reciprocity. For each alternate, fetch it and confirm it lists the original page and itself.
- Check the status of every target. Each canonical and hreflang target should answer with a normal success code and should not redirect again.
- Repeat after changes. After a template or CDN change, run the same list again.
An example result table makes the idea clear:
| Region tested | Requested URL | Final URL | Canonical | Hreflang entries | Note |
|---|---|---|---|---|---|
| Home country | /en/pricing | /en/pricing | /en/pricing | 3 | As expected |
| Thailand | /en/pricing | /th/pricing | /th/pricing | 3 | Redirect by location; canonical differs |
| Germany | /en/pricing | /en/pricing | /en/pricing | 2 | x-default missing |
In this example there are two findings: an IP-based redirect that hides the English page from Thailand-based users and crawlers, and an incomplete hreflang set when the page is served to Germany. Neither would be visible from the home country alone.
Common problems and how to recognise them
| Symptom | Likely cause | What to check |
|---|---|---|
| Canonical differs by region | Redirect or template depends on location | Compare raw responses from two regions |
| Hreflang missing in one region only | Cached copy or conditional template | Cache headers and the template logic |
| Non-reciprocal hreflang | A new language page was added without updating the others | Fetch every alternate and compare lists |
| Canonical points to a redirected URL | Old URL pattern still used in the template | Status code of the canonical target |
| Both pages canonical to one language | Copy-and-paste template error | Whether each version references itself |
Wrong region code, such as en-uk |
Common mistake; the code for the United Kingdom is gb |
The list of codes used in the sitemap or head |
| Tags only present after JavaScript runs | Client-side injection | Compare raw HTML with the rendered DOM |
When you find an issue, note which layer produced it, using the CDN, origin and browser-script distinction from the related guide. That makes the fix faster and the ticket clearer.
Handling automatic geo redirects safely
Many sites redirect visitors automatically based on IP location. This can help real users but it can interfere with indexing and testing. Safer patterns include:
- Show a banner that suggests the local version instead of forcing it.
- Let every version be reachable at its own URL without a redirect.
- Remember the user's explicit choice in a cookie and respect it.
- Keep canonical and hreflang the same regardless of the visitor's location.
- Avoid redirecting requests that look like crawlers differently from users; consistent behaviour is easier to maintain and safer for search visibility.
If your campaign uses geo redirects, the guide on QA for ad pages with geo redirect is a good companion to this one, and the broader preparation steps are covered in what to prepare when testing an overseas campaign launch.
Limits and what to watch for
- Your test is not the crawler. A search engine crawls from its own locations and with its own rules. Your regional check shows how the site treats different locations; it does not show how a particular search engine will interpret the tags.
- Canonical is a hint. Search engines can choose another URL if signals conflict, for example if content differs substantially between the pages.
- Changes take time to appear. After you fix tags, indexing updates are not instant.
- Geolocation is imperfect. If a result looks odd, repeat from a second exit point in the same country.
- Stay within the rules. Check only your own sites or pages you are allowed to review, respect robots.txt, keep request volumes low and never try to defeat CAPTCHAs or rate limits. Review local law and the terms of the sites you test.
- Do not use hreflang to hide content. Showing search engines one thing and users another is a separate practice and should be avoided.
A compact checklist
- List of template pages and their intended canonical and hreflang sets
- Regions tested and verified apparent country for each
- Raw status, redirect chain and final URL per region
- Canonical per region, compared in a table
- Hreflang list per region, with reciprocity confirmed
- Differences between raw HTML and rendered DOM
- Notes on cache, CDN and redirect rules
- Fixes assigned and a date to re-test
If your regional versions also show different prices, remember to compare them too; the guide to checking prices and currency across countries covers that side of the work.
Summary
Canonical tags choose the preferred URL, and hreflang annotations map language and region versions to the right audience. Both can change depending on where a request comes from, because of geo redirects, CDN caches and scripts. To verify them, define the expected set, fetch raw responses from each target region with a clean setup and a confirmed apparent location, extract canonical and hreflang, compare them in a table, check reciprocity and status codes, and re-test after every change. Remember the limits: your check is not the crawler, canonical is only a hint, and all testing must respect site terms and local law. If you need exit points in specific countries for this kind of verification, the Proxy page explains what is available and what each option includes.
Frequently asked questions
What is the difference between canonical and hreflang?
A canonical tag names the preferred URL among duplicates or near-duplicates. Hreflang annotations list alternate versions of a page for different languages or regions. They answer different questions, so each page version should usually point to itself as canonical and list its alternates with hreflang.
Why check these tags from several regions?
If a site redirects or rewrites pages by visitor location, the tags a crawler or tester receives can differ from what you see at home. Checking from each region reveals redirects, missing tags and inconsistent canonicals that a single-location check hides.
What does a valid hreflang annotation look like?
It pairs a language code, optionally followed by a region code, with a full URL, for example en-gb or th-th, and every page in the group must link back to the others. An x-default entry can name the fallback page.
Can I rely on automatic redirects based on IP location?
It is risky. Search engine crawlers and users who change language may be sent to a version they did not ask for. A visible language or region selector, with each version reachable at its own URL, is safer.
About the author

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 plansKeep reading

Proxy Guides
Why the Same Website Shows Different Content by Country
The same URL can return a different language, currency, banner or even page layout depending on where the visitor appears to be. This guide explains the mechanics and how to check them.
9 min read

Proxy Guides
What to Prepare Before Testing an Overseas Campaign Launch
Launching a campaign in another country means testing from that country's point of view. This guide lists what to prepare, what to check and how to record the results.
10 min read

Proxy Guides
How to Check Prices and Currency on Websites in Different Countries
The same product page can show a different currency, tax treatment or shipping rule depending on the visitor's country. Here is how to check it properly.
9 min read