RoleLogic

HomeIntegrations › Member Origin Role

Member Origin Role icon

Auto-Assign Discord Roles by Country, Language, Timezone, and Device

Detect member origin from HTTP headers and browser APIs — country, timezone, UTC offset, language, browser, platform, mobile vs desktop. Optional VPN detection, identity-spoof checks, and impossible-travel filtering keep things honest.

Free plan available · No coding required Version 1.0.7 Updated 2026-04-17
origincountrytimezoneutc offsetlanguageplatformbrowserdevice typemobilegeolocationanti-fraudvpn detectionimpossible travelrolediscord serverdiscord role bot

What you can build with Member Origin Role

Real use cases that ship in production Discord servers using RoleLogic + geolocation.

Country-flag roles, automated

Members visit the verification page once and the country role lands automatically — pulled from the Cloudflare CF-IPCountry header. No manual self-roles, no missing flags.

Language-specific channels

Gate German, Spanish, French, Japanese, etc. channels behind language roles assigned automatically from the member's browser language preference (Accept-Language).

Regional event coordination

Use timezone or UTC-offset roles to ping only the EU / NA / APAC slice for a stream, raid, or community event. UTC offset supports range conditions (e.g. -300 to -240 for US Eastern).

Mobile vs desktop / platform roles

Tag members by Device Type (Desktop / Mobile / Tablet), Platform (Windows, macOS, Linux, Android, iOS, ChromeOS), or Browser (Chrome, Firefox, Safari, Edge, Opera). Useful for support-channel routing and platform-specific announcements.

Anti-fraud signals

Toggle VPN detection (IP-vs-timezone mismatch + Tor exit list), identity-spoof checks, and impossible-travel detection. Block accounts trying to fake their origin without writing rules by hand.

How Member Origin Role works

From install to live geolocation roles in a few minutes.

1

Member visits the verification page

One click. The member signs in with Discord; the plugin reads identity passively from headers and browser APIs — no GPS, no invasive tracking, no third-party fingerprinting.

2

Pick a condition and operator

Choose Country, Timezone, UTC Offset, Platform, Browser, Language, or Device Type. Numeric fields support =, >=, <=, and between; text fields support = and !=.

3

Optional anti-fraud filters

Layer on Block VPN, Block Spoofed Identity, or Block Impossible Travel. These are AND'd with the identity condition — VPN users are rejected even when their country matches.

Get started — it's free

Frequently asked questions

Common questions about Member Origin Role and RoleLogic.

How is the member's country detected?

From Cloudflare's CF-IPCountry header — accurate, ISO 3166-1 alpha-2, no GPS, no precise location. RoleLogic doesn't retain the raw IP after the country lookup.

Does it block VPN users?

Optionally. Enable Block VPN and the plugin flags accounts where IP country and browser timezone disagree, plus accounts coming from known Tor exit nodes. You decide whether to deny the role or just log it.

What about user privacy?

Only country, timezone, language, browser, platform, and device type are stored. Raw IPs are not retained beyond the verification check. No GPS, no fingerprinting, no third-party trackers.

Can I detect mobile vs desktop?

Yes — the Device Type condition supports Desktop, Mobile, and Tablet, and Platform / Browser conditions go finer (Android vs iOS, Chrome vs Safari, etc.).

What is impossible-travel detection?

If a member's verifications come from two countries faster than they could physically travel, the plugin flags the second one. Requires at least two recorded visits to trigger and is optional.

Ship Member Origin Role in 5 minutes

Free plan, no coding, real-time sync. Used by Discord servers of every size — from indie communities to verified gaming servers with hundreds of thousands of members.

Set up Member Origin Role