Skip to content
FunnelGuard

Fix guide by FunnelsGuard

IP-based language redirects: why bots and users get stuck

SEO-272High impactOther toolBy FunnelGuardPublished Updated
On this page

What this issue is

Some sites look up a visitor's location from their IP address (or their browser language) and send them straight to a matching version, such as /de/ for Germany or /fr/ for France. This is called a geo or language redirect. It happens on the server, in a plugin, or in JavaScript, before the visitor sees the page they asked for.

Why it costs you leads or sales

If bots cannot reach a language version, that version may not be indexed or may rank poorly. That means no organic traffic from that market. Visitors are affected too: a traveller, an expat or someone who prefers another language cannot stay on the page they chose, and many will leave.

It also weakens hreflang (the tags that tell Google which page suits which language). If Google follows an hreflang link and is redirected elsewhere, the signal is ignored or confused. Shared links break as well: someone sends a link to the UK page and the recipient lands on a different country site.

What happens when a bot hits an IP redirect
  1. Bot requests /de/Googlebot follows an hreflang link
  2. IP checkServer sees a US IP address
  3. Redirect to /en-us/Bot is sent away from the German page
  4. German page not indexedNo rankings in Germany

Googlebot requests the German page but is redirected by IP, so the German content is never seen.

Pages Google can reach per languageExample numbers
Pages Google can reach per language (example)With forced redirect: 100 pages; With separate URLs and banner: 300 pages0115230100300With forced redirectWith separate URLs an…pages

Example: a site with 100 pages in each of 3 languages. With a forced IP redirect, a US-based crawler may only reach the default language.

How to check if your site has it

You need to see what a visitor from another country, and a crawler, actually receive. Do not rely on your own browser, because you are probably in your home country already.

Check for automatic language redirects
  1. Request a non-default URL directly

    Open a language URL such as /de/ in a private window. If the address bar changes to a different language, you have a redirect.

  2. Test with curl

    Run curl -I https://example.com/de/ and look for a 301 or 302 status with a Location header pointing elsewhere. Add -H 'Accept-Language: fr' to test browser-language logic.

  3. Use a VPN or a different location

    Browse from another country to see whether the site changes. Use a VPN service whose terms allow it.

  4. Inspect the URL in Google Search Console

    Use URL Inspection, then Test Live URL, on a language page. Check the final URL Google reached and the rendered screenshot.

  5. Check the Pages report

    In Search Console, look under Page indexing for 'Page with redirect' on language URLs that should be indexed.

Spot a redirect on a language URLbash
curl -sI https://example.com/de/ | head -n 5
curl -sI -H 'Accept-Language: fr' https://example.com/de/ | head -n 5
# A 301/302 plus a Location: header to another language means a forced redirect

How to fix it

The aim is simple: every language lives on its own URL that always returns that language, and location is only used to make a suggestion. Google's guidance for multi-regional sites says the same: avoid automatically redirecting by location or language, and let people switch easily.

Replace the forced redirect with a suggestion
  1. Give each language its own URL

    Use subfolders (/de/), subdomains or country domains. Each URL must return its language to every visitor and bot with a 200 status.

  2. Remove the IP or browser-language redirect

    Turn it off in the plugin, app, server rule or script that performs it. Keep only the redirect from the bare homepage if you must, and never on deep pages.

  3. Add a dismissible banner

    If the visitor's location or language differs from the page, show a small message like 'Switch to the German site?' with a link. Remember their choice in a cookie.

  4. Add a visible language switcher

    Link to the equivalent page in each language, not just to the homepage.

  5. Add hreflang and x-default

    Point each version to the others, including itself, and set an x-default for a language selector or default page.

Where to turn the redirect off
  1. Check your multilingual plugin

    In WPML, go to WPML > Languages and review the language URL and browser-language redirect settings. In Polylang, open Languages > Settings and turn off 'Detect browser language'. Also check geo plugins and security plugins with country rules.

  2. Replace with a banner

    Use the plugin's language switcher or a banner feature instead of redirects.

Banner link instead of a redirecthtml
<div id="lang-banner" role="region" aria-label="Language suggestion">
  <span>This page is also available in German.</span>
  <a href="/de/" hreflang="de">Go to the German site</a>
  <button type="button" onclick="document.getElementById('lang-banner').remove();document.cookie='lang_banner=dismissed;path=/;max-age=31536000'">Stay here</button>
</div>
Forced redirect vs suggestion

Before

  • IP decides the language for everyone
  • Googlebot is sent to the default site
  • Users cannot stay on the page they chose
  • Shared links land on the wrong version

After

  • Each language URL always returns its language
  • Googlebot can crawl every version
  • A banner suggests the local version
  • Visitors choose and the choice is remembered

How to confirm it's fixed

Fix confirmation
  • curl on each language URL returns 200, not 301 or 302
  • The same URL returns the same language with different Accept-Language headers
  • A VPN visit from another country stays on the requested URL
  • Search Console Test Live URL shows the intended language page
  • The banner appears and stays dismissed after clicking
  • hreflang links resolve without redirects

How to prevent it happening again

Redirects often come back after a plugin update, a new geo app, a CDN rule or a developer adding a quick script. Make language URLs a rule your team checks, not something that happens by accident.

Prevention habits
  • Document that language URLs must never redirect by IP or browser language
  • Review CDN, edge and server rules after infrastructure changes
  • Re-run the curl check after plugin, theme or app updates
  • Watch the Page indexing report for new 'Page with redirect' entries
  • Review international pages when launching a new market

How FunnelGuard handles this

FunnelGuard does not check for IP-based language redirects yet. It is a possible future check, so do not rely on FunnelGuard to tell you about it today.

What FunnelGuard does do is run your real customer journeys on a schedule from the EU or the US, such as lead forms, checkouts and booking buttons. It checks each step and the tracking hits sent to platforms like GA4, Google Ads and Meta. If a redirect sends a test visitor somewhere unexpected and a step breaks, that can show up as a failed journey, but this is not a dedicated language redirect check.

To watch for this yourself, repeat the curl check on your language URLs each month and after any release, use Search Console's Page indexing report for redirect warnings, and run a crawler such as Screaming Frog with a user agent and location setup that matches your markets. A free read-only FunnelGuard website audit is also available if you want a broader look at your site.

Questions people ask

Is it bad for SEO to redirect users by IP address?

Yes, it usually is. Googlebot often crawls from US IP addresses, so a forced redirect can stop it reaching your other language pages. Those pages may then go unindexed, which means no rankings in those markets.

Does Google recommend automatic redirects based on language or location?

No. Google's guidance for multi-regional and multilingual sites advises against automatically redirecting users based on their perceived language or location. It recommends separate URLs for each version and letting people choose, perhaps with a banner.

What should I use instead of an automatic geo redirect?

Use a dismissible banner that suggests the local version and a visible language switcher. Keep each language on its own URL that always returns that language. Remember the visitor's choice in a cookie.

How do I check if my site redirects by IP or browser language?

Run curl -I on a language URL and look for a 301 or 302 with a Location header. Repeat it with an Accept-Language header and from another country using a VPN. In Search Console, use URL Inspection and Test Live URL to see what Google received.

Why is Googlebot being redirected to my US site?

Googlebot mostly crawls from US IP addresses, so your IP rule treats it like any US visitor. The server sends it to the US or default version. Remove the redirect so every language URL responds the same way to everyone.

Will hreflang work if I redirect by IP?

Not reliably. hreflang tells Google which URL belongs to which language, but if those URLs redirect elsewhere, Google can't confirm the pages. Fix the redirect first, then check your hreflang tags.

Does FunnelGuard detect IP language redirects?

No, not yet. It is a possible future check. You can check manually with curl, Search Console and a crawler, as described in this guide.

Does FunnelGuard catch this?

Other tool

Needs a different kind of tool.

Stop finding out from your customers

FunnelGuard runs your real forms and checkouts on a schedule, checks the tracking and the leads behind them, and alerts you once, with a screenshot. Try any paid plan free for 3 days.