Home › Integrations › Member Origin Role
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.
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.
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.
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 !=.
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.
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.
Other Discord role integrations
More ways to automate Discord roles with RoleLogic.
Top.gg Voter Role
Auto-reward Top.gg voters with Discord roles that expire on a configurable timer (1 hour to 7 days).
YouTube Subscriber Role
Auto-assign Discord roles to verified YouTube subscribers with one-click Google OAuth.
Twitch Follower Role
Real-time Discord roles for Twitch followers and Tier 1 / Tier 2 / Tier 3 subscribers via EventSub.
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