- Login ranges limit a terminal to the MT5 account numbers you choose.
- Format example: 5000-6000,8000-9000.
- Accounts outside the ranges see the standard MT5 error.
- Plan non-overlapping ranges per brand or programme.
Why restrict access?
A single MT5 server often hosts accounts for several brands, partners or programmes. Without restrictions, any account on that server could log in to any branded terminal. Login ranges make sure each terminal is used only by the clients it is meant for.
How it works in FXPTrader
Set the LOGIN_RANGES environment variable in your Cloudflare dashboard, for example 5000-6000,8000-9000. When a trader logs in, the Worker checks the account number. Accounts inside a range continue normally; others receive the standard MT5 error.
Examples
- Two brands on one server: Brand A uses 100000–199999 on trade.brand-a.com, Brand B uses 200000–299999 on trade.brand-b.com.
- Prop firm: evaluation accounts 5000–5999, funded accounts 6000–6999, each on its own terminal if desired.
- Partner brand: an introducing broker gets a branded terminal limited to its allocated range.
Tips
- Agree ranges with your MT5 administrator before launch.
- Leave room for growth in each range.
- Document which range belongs to which brand.
- Test with one account inside and one outside each range.