TL;DR
Every web request carries the visitor's IP address — your server sees it whether you do geolocation or not. The GDPR question is not whether you may receive it (you can't avoid that), but what you do with it: how long it lives, what gets derived from it, and what gets stored.
The legal basis: legitimate interest
Routing a visitor to the correct language, pricing, or legal entity is a textbook legitimate interest (GDPR Art. 6(1)(f)): the purpose is genuine, the processing is minimal and expected, and the balance test favors it — visitors generally want to land on the right version. Consent (Art. 6(1)(a)) is not required for this kind of processing, which is why a properly built geo-redirect needs no banner.
What makes an implementation compliant
- Data minimization: derive the country code, then discard the IP. Storing raw IPs "for analytics" is where implementations go wrong — a two-letter country code alone is not personal data; a logged IP is.
- No device storage of identifiers: ePrivacy rules (the "cookie law") attach to storing or reading identifiers on the device. A session flag that says "already redirected" and identifies nobody is functionally exempt as strictly necessary; tracking cookies are not.
- Processor relationship: the geo service processes visitor data on behalf of the website owner — there should be a DPA and, for non-EEA processing, Standard Contractual Clauses or an adequacy decision.
- Transparency: mention location-based routing in your privacy policy. One sentence is enough.
Country vs. precise location
This analysis covers country-level routing. Precise geolocation (GPS-grade, sub-city) is a different category with much higher expectations — for website routing you neither need nor should want it.How Easy Redirects implements this
For transparency about our own design: visitor IPs are resolved to a country code at the hosting edge and never written to the database; stored events contain only the country code, page path, and matched rule; no cookies are set on visitors; and we act as a processor for our customers, with subprocessors covered by SCCs or adequacy decisions. (This article is general guidance, not legal advice — for specific situations, ask a privacy professional.)
Geo-redirects on your HubSpot site in 5 minutes
One script tag, no code, no DNS changes. Free plan included.
Start freeFrequently asked questions
Do I need a cookie banner for geo-redirects?
Not for the geo-redirect itself, if the implementation sets no cookies and does no tracking. Cookie consent rules (ePrivacy) apply to storing identifiers on the device; a redirect service that uses sessionStorage only to avoid double-redirecting, and stores no identifier, doesn't trigger a consent requirement. Your other tools (analytics, ads) still might.
Is an IP address really personal data?
Yes — both the GDPR's recitals and EU case law (Breyer v. Germany) treat IP addresses as personal data because they can identify a person in combination with other information. That's why how long you keep them matters so much.
What should I ask a geo-targeting vendor before buying?
Three questions: Do you store visitor IP addresses (the answer should be no)? What exactly is stored per visitor (ideally only a country code)? Do you act as a processor with appropriate safeguards for any non-EEA transfers (SCCs or adequacy)?