Guides/Device Routing

Device Routing Guide

Route visitors to different destinations based on their device type. Send mobile users to app stores, desktop users to landing pages, and tablets to responsive experiences.

6 min read

How Device Routing Works

GeoRedir detects the visitor's device type, operating system, and browser from their User-Agent string. This detection happens at the edge — no client-side JavaScript needed.

Device rules can target by device type (mobile, desktop, tablet), operating system (iOS, Android, Windows, macOS), and browser (Chrome, Safari, Firefox).

Device Types

The three device types you can target:

  • Mobile — Smartphones (iPhone, Android phones)
  • Tablet — Tablets (iPad, Android tablets)
  • Desktop — Laptops and desktop computers
Rule Type: Device
Device Types: mobile
Destination: https://m.yoursite.com/offer

Rule Type: Device
Device Types: desktop
Destination: https://yoursite.com/offer

Operating System Targeting

Target specific operating systems to route iOS users to the App Store and Android users to Google Play:

Rule Type: Device
Operating Systems: iOS
Destination: https://apps.apple.com/app/your-app

Rule Type: Device
Operating Systems: Android
Destination: https://play.google.com/store/apps/your-app

Priority Matters

Put OS-specific rules before device-type rules. If you have both an iOS rule and a mobile rule, set the iOS rule to a lower priority number so it matches first.

Combining with Geo Rules

Device and geo rules work together through priority ordering. Put device rules at higher priority (lower number) to handle device-specific routing first, then geo rules for geographic targeting.

Priority 1: Device → iOS
  → App Store link

Priority 2: Device → Android
  → Google Play link

Priority 3: Geo → US
  → us-landing-page.com

Priority 4: Geo → GB
  → uk-landing-page.com

Priority 5: Fallback
  → global-landing-page.com

Examples

VPN App Routing

Route mobile users to app stores, desktop users to the website:

iOS → apps.apple.com/vpn-app
Android → play.google.com/vpn-app
Desktop → vpn-provider.com/download

Mobile-Optimized Landing Pages

Send mobile visitors to a lighter, faster landing page:

Mobile → m.offer.com/fast-signup
Desktop → offer.com/full-details

Ready to get started?

Create your first geo-targeted smart link in under 2 minutes. Free plan available, no credit card required.

Free plan included • No credit card required • Upgrade anytime