Geo-targeting short links means one short URL routes each click to a different destination based on the visitor's country. You publish elido.me/launch once, and a click from Berlin lands on your German store while a click from Chicago lands on the US one. One link, one QR code, and the choice is made at click time.
Here is what Elido actually does, which differs from some write-ups of this feature. Country comes from a header or a local GeoIP lookup. A rule can match country, device, browser, OS, language, a User-Agent pattern and a time window. The first matching rule wins, and the link's destination is the fallback. The click record keeps the visitor IP truncated to /24 (IPv4) or /48 (IPv6), and that shapes the privacy section below.
Where Geo-Targeting Pays OffWhere Geo-Targeting Pays Off
Regional storefronts are the common case. A German visitor sent to a dollar checkout loses trust, so one rule per market keeps each audience on the page with its currency and shipping terms.
Language pages are next, though country is only a proxy there. A Japanese IP doesn't guarantee a Japanese reader. Route on the country when the market matters and on the browser language when the reader matters.
Country-specific offers fit the same shape. A promotion that's legal in France but not Italy sends French clicks to the offer and everyone else to the standard page. App-store routing often rides alongside: device rules choose the store and a country rule chooses the regional listing, as in deep links for mobile apps without an SDK.
The last case is restriction. A rule can be marked as a block rule, and a visitor who matches it gets a 451 page instead of a redirect. Routing and blocking use one mechanism pointed in opposite directions.
How Country Routing Runs at the EdgeHow Country Routing Runs at the Edge
A click lands on an edge server. Before it issues the redirect, it works out the country in a fixed order. An X-Country header wins if a proxy set it. Otherwise a CF-IPCountry header counts, with the value XX treated as unknown. If neither exists and the deployment has a GeoLite2 database configured, the edge looks up the request IP locally. If nothing resolves, country rules don't fire for that click.
The rules are then walked in order. Every condition inside one rule must match, and the first rule that matches decides the destination. No rule, no problem: the link's own destination URL is used. The edge answers with a 302 by default, and a link can be set to 301 or 307 instead.
There's no call to a third-party geo API in that path, and no HTML page that runs JavaScript before bouncing the visitor. The lookup is local. We haven't published a latency figure for geo rules, so we won't quote one. For the wider routing model see smart links explained, and for why the decision sits at the edge see edge POPs versus DNS-only routing.
The header order has one consequence worth knowing. A country header sent by a proxy is trusted as given. If your own proxy chain doesn't strip a client-supplied X-Country, a visitor could spoof it, so a block rule isn't a security boundary.
Accuracy: What the Vendor Claims and What It Doesn'tAccuracy: What the Vendor Claims and What It Doesn't
IP geolocation estimates. MaxMind states that its GeoIP Country database is 99.8 percent accurate at country level, and cites 68 percent for US city-level within a 50 km radius and 80 percent at US state level (maxmind.com, accessed 2026-10-25). Two cautions apply. That figure is for the paid database, while Elido's edge reads the free GeoLite2 files and we have no published number for those. And it's a vendor claim, not an audit.
Country is the safe level to route on. City routing for marketing decisions is shaky. Real traffic also includes VPN users placed at their exit node, employees behind a corporate gateway in another country, and mobile carriers that do the same. The defence is a sensible fallback and a habit of checking the country breakdown in click analytics against what you expected.
Privacy: A Truncated IP and the City Are StoredPrivacy: A Truncated IP and the City Are Stored
An IP address is personal data under GDPR. The Court of Justice held in Breyer (Case C-582/14, ECLI:EU:C:2016:779) that a dynamic IP can identify a person when combined with information a controller can lawfully obtain.
Since 2026-11-11 Elido truncates it at the edge, after the geo lookup.
The click record stores the truncated address along with city, latitude and longitude when the GeoIP database resolves them. Until 2026-11-11 the full address was stored; older rows were truncated in place that day.
What that means for you: record geo routing in your processing documentation, mention IP processing in your privacy notice, and ask Elido for the DPA, which is available on request. Elido's primary data is in the EU, but there's no per-workspace region pin, and edge servers in other regions process visitor IPs. ISO 27001 certification isn't held and SOC 2 is in preparation with no report yet. The residency picture is in EU data residency for marketing analytics.
Stacking Country, Device and LanguageStacking Country, Device and Language
A rule can combine country, device, browser, operating system, language, a User-Agent pattern, and a time window with a timezone and days of the week. There's no referrer condition. Within one rule, all conditions must match. Across rules, the first match wins.
Order is the policy.
Take a French expat in Berlin: the IP says DE, the browser says French. If your first rule sends DE to /de, that visitor lands on German content. If you'd rather give them French, the language rule has to sit above the country rule.
A launch example: German Android users to the German Play listing, German iOS users to the German App Store listing, French-language browsers to /fr, everyone else to the main page. That's two combined rules, one language rule, and the link's destination as the catch-all. A block rule goes first when it must win, since it returns a 451 before any redirect rule is considered. For expiry and click caps see link expiration and self-destructing links, and for gating access see password-protected short links.
A Practical How-ToA Practical How-To
Create the link with its destination first, because that is the fallback for VPN users, unmapped countries and failed lookups. Make it the safe default, usually your main market.
That one destination catches every visitor no rule claims.
Add rules in priority order. One rule per market works well: DE, AT, CH to the German store and FR, BE to the French one. Countries that share a destination can share a rule. Decide which signal wins when country and language disagree, and order for it.
Test from the places you care about. A VPN or a colleague abroad works, and then you confirm in analytics what country the click resolved to. Trust what the destination saw, not the rule list. The smart links guide shows the rule editor and the JSON shape if you build rules through the API. Smart-link rules are on Pro and Business, listed on pricing.
After launch, compare the country breakdown with your expectations. If a market resolves elsewhere more often than you'd guess, a gateway or carrier is skewing it, and a language rule may serve you better. I'd treat routing as a hypothesis and the click data as the test.
For the basics start with what a URL shortener is. The smart links and deep links pages show the routing surface, link management for marketers covers the workflow, and the trust page lists Elido's compliance status.
Related on the BlogRelated on the Blog
Frequently asked questions
What does geo-targeting a short link mean?
One short URL sends a visitor to a different destination depending on the country the click comes from. You publish a single slug, a click from Germany lands on the German store page and a click from the US lands on the US one. The slug stays the same, and the destination is picked per click at redirect time.
How does the short link know which country a visitor is in?
The edge checks an X-Country header, then a CF-IPCountry header, and if neither is present it looks the visitor's IP up in a local GeoLite2 database when one is configured. The result is a two-letter country code matched against your rules. If no source returns a country, country rules simply don't fire and the fallback destination is used.
Does Elido store the visitor's IP address?
Yes. The click record keeps a truncated IP address (IPv4 /24, IPv6 /48), plus city, latitude and longitude derived from the full address before truncation. A truncated IP next to a city is still personal data under GDPR, so document the processing, state it in your privacy notice, and ask for Elido's DPA. Elido's primary data is in the EU, but edge servers elsewhere handle visitor IPs.
How accurate is IP-based country detection?
MaxMind states 99.8 percent country-level accuracy for its paid GeoIP Country database (maxmind.com, accessed 2026-10-25). Elido's edge reads the free GeoLite2 files, for which we have no published figure. Treat city results with more suspicion, since MaxMind itself cites 68 percent for US cities within 50 km. VPNs and corporate gateways add errors, so always set a fallback.
Can I combine country routing with device or language rules?
Yes. A rule can match country, device, browser, operating system, language, a User-Agent pattern, and a time window with days of the week. All conditions inside one rule must match. Rules run top to bottom and the first match wins. There's no referrer condition today. The link's own destination is the fallback, so it can't dead-end.
Can I block a country instead of redirecting it?
Yes. A rule can be marked as a block rule, and a visitor who matches it first gets a 451 page instead of a redirect. Put it above your redirect rules. It's a policy tool, not a security boundary, because a country header supplied by a proxy is trusted as sent. Smart-link rules are on Pro and Business.
Try Elido
Paste a URL, get a working short link
No signup. Link lives for 30 days. Sign up to keep it forever.
Free account required. The free plan includes 25 links in total. Already have an account? Log in

