IP Based Redirects SEO: How to Serve UK Visitors Without Hiding Pages From Google
By the ProxyV4 Engineering Team · Updated:
IP-based redirects send visitors to a country version of a site based on where their IP address appears to be, and for SEO they are risky: Google says most of its crawling comes from the US and advises against redirecting users automatically. For a UK site, the safer pattern is separate URLs linked with hreflang, a country banner instead of a forced redirect, and regular checks from a British IP.
How IP based redirects affect SEO
Suppose your .com site sends every visitor whose IP looks British to example.co.uk or /en-gb/, and everyone else to the US version. Google's guidance on multi-regional sites says Googlebot usually crawls from the USA, warns against using IP analysis to adapt content, and advises against automatically redirecting users to a different version. A crawler that arrives from a US IP will tend to be sent to the US version and may rarely see your UK pages.
The consequences show up in search: UK pages crawled less often or not at all, the US page ranking in Britain with dollar prices, and Search Console reports that the wrong version was picked as canonical. Visitors suffer too: a British customer travelling in New York cannot reach the UK store, and a US buyer working from London is pushed to a site that does not ship to them.
Redirect versus adapting content on one URL
Changing content on the same URL by visitor location (locale-adaptive pages) has a similar problem. Google's documentation on locale-adaptive pages notes that Googlebot's default IPs appear to be in the US and that it sends requests without an Accept-Language header, so it may not see every locale. Separate URLs per country remain the recommended setup.
Do not special-case Googlebot
Some teams keep the redirect for people and exempt Googlebot by user agent or reverse DNS. That hides the problem rather than fixing it, and serving crawlers something different from users risks being treated as cloaking. Make every country URL reachable by anyone instead.
Hreflang vs IP redirect: the setup that works for the UK
- One URL per market: for example
/en-us/and/en-gb/, orexample.comandexample.co.uk. Every URL returns 200 to anyone who requests it, from any country. - Hreflang on every page: each version lists all alternates, including itself, with
en-GBfor the UK,en-USfor the US and anx-defaultfor a global or chooser page. Annotations must be reciprocal. - Banner, not bounce: if the IP suggests the UK but the visitor is on the US page, show a banner such as "Shopping from the UK? Go to the UK store with prices in GBP" and let them choose.
- Remember the choice: store the chosen market in a cookie the visitor sets by clicking, and respect it on later visits.
- Visible country picker: put a region and language selector in the header or footer so people and crawlers can move between versions through ordinary links.
UK-specific details on the British version
Hreflang tells Google which page to show; the UK page itself must still serve a British visitor properly. Show consumer prices in GBP including VAT, give UK delivery and returns terms, use British spelling where it matters to searchers ("colour", "trainers", "postcode"), and show a cookie banner that follows PECR and current ICO guidance. Remember that the location-based banner described above reads the IP, not a cookie; storing the visitor's market choice may count as strictly necessary or may need consent depending on how you implement it, so check with your privacy team.
If the UK and US pages are near-duplicates with only the currency changed, hreflang still helps, but make the UK page genuinely useful to British buyers so it earns its own rankings.
How to test UK geo redirects from a British IP
Test from three vantage points: a UK IP, a US IP and your own connection. For each, request the home page and one deep page and record every redirect hop, the final URL, the Vary header and any Set-Cookie. The curl proxy guide covers the flags.
# Show each response's status line and key headers from a UK IP, following redirects
curl -sIL --max-time 20 -x http://USER:PASS@IP:PORT \
-H 'Accept-Language: en-GB,en;q=0.9' https://www.example.com/ \
| grep -iE '^(HTTP/|location:|vary:|set-cookie:)'A good result from the UK IP is a single 200 on the URL you requested, with a banner in the HTML, rather than a 301 or 302 to the UK version. To check hreflang at the same time, this Python snippet fetches a page through the proxy without following redirects and lists the alternates it declares:
# pip install requests
import re
import requests
PROXY = 'http://USER:PASS@IP:PORT'
r = requests.get('https://www.example.com/en-gb/', proxies={'http': PROXY, 'https': PROXY},
headers={'Accept-Language': 'en-GB,en;q=0.9'}, allow_redirects=False, timeout=20)
print('Status:', r.status_code, '| Location:', r.headers.get('Location'))
for tag in re.findall(r'<link[^>]+hreflang=[^>]+>', r.text, re.I):
print(tag)Run the same requests without the proxy, or through a US IP, and compare. If the US vantage point is redirected away from /en-gb/, Googlebot crawling from the US is likely to be redirected too.
Where a ProxyV4 UK IPv4 proxy fits redirect testing, and where it does not
A private UK IPv4 proxy from ProxyV4 gives your SEO or engineering team a datacenter address in Britain, one tenant per IP for the whole term. The IP stays the same while active and on renewal, so before-and-after comparisons of a redirect change use the same vantage point. Every proxy supports HTTP(S) and SOCKS5 with username and password or IP whitelist login (up to 3 public IPv4 addresses), and traffic is unmetered. ProxyV4 also sells private IPv4 in the US, so you can test both sides of a UK/US split from one account and balance.
It does not fit tests that depend on a UK mobile IP, or on a particular town: in the UK ProxyV4 sells private datacenter IPv4 and static ISP, both without city choice. It also cannot show you exactly what Googlebot sees; use Search Console's URL Inspection for that. Before relying on results, check the IP geolocates to the UK with the my IP tool and in your CDN's logs.
One IP per country is usually enough; see live prices and the United Kingdom proxy page. If a proxy cannot connect or shows the wrong country, the refund policy credits your balance.
Frequently asked questions
Are IP-based redirects bad for SEO?
They are risky. Google says most crawling comes from the US and advises against automatic redirects, so forced geo redirects can keep your UK pages from being crawled.
Should I redirect UK visitors from .com to .co.uk?
Show a banner suggesting the UK site instead, keep both reachable, and connect them with hreflang (en-GB and en-US plus x-default).
Can I exempt Googlebot from my geo redirect?
That risks being treated as cloaking and leaves users with the same problem. Make every country URL reachable by everyone instead.
Does hreflang replace IP detection?
For search, yes: hreflang tells Google which version to show in each market. IP detection can still drive a banner, as long as it does not force a redirect.
Do I need a UK and a US proxy to test redirects?
Testing from both sides is the most reliable. ProxyV4 sells private IPv4 in both countries, and you can start with one IP each.
Test UK redirects from a British IP before Google does
Check redirects, banners and hreflang from a private UK IPv4 that keeps the same address on renewal. Unmetered traffic; start with a single IP.
See UK prices