# Limiting certain user logins by location

**URL:** <https://forums.rocket.chat/t/limiting-certain-user-logins-by-location/16091>\
**Category:** Community Support\
**Created:** [February 28, 2023, 8:59pm UTC](https://forums.rocket.chat/t/limiting-certain-user-logins-by-location/16091 "2023-02-28T20:59:30Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![NGG](https://avatars.discourse-cdn.com/v4/letter/n/8c91f0/32.png) [@NGG](https://forums.rocket.chat/u/NGG)\
**Post date:** [February 28, 2023, 8:59pm UTC](https://forums.rocket.chat/t/limiting-certain-user-logins-by-location/16091/1 "2023-02-28T20:59:30Z")

</div>

### Description

We are currently piloting RC in an environment that has a main office with a few branch offices. Users are all defined in Active Directory with a LDAP link to RC.

98% of the users will only ever access RC from inside the network, never outside of it. However, there are a couple of users who would access it externally.

Is there a way to prevent those 98% of users from logging in outside of the network while allowing the few exceptions?

### Server Setup Information

- Version of Rocket.Chat Server:
- Operating System: 5.4.3
- Deployment Method: sma[
- Number of Running Instances: 1
- Firewalls involved: Fortigate
