---
title: "Restrict access by IP address"
site: admin
version: 2027.1
versions: "all"
url: https://docs-new.servicely.ai/admin/2027.1/access/sign-in/restrict-access-by-ip-address/
type: task
application: ip_range_restriction
last_updated: 2026-12-03
commit: 8d233372fa05
---


Restrict access by IP address when users must reach Servicely only from known networks, such as an office or a VPN. You add an Allow rule for each network and then a Deny rule for every other address.

## Before you begin

- You need the `administrator` role.
- Switch to the Administration workspace with the **Workspace** selector at the foot of the menu.
- The **IP Range Restriction** application must be installed. To install it, go to **Applications & licensing → Applications → Applications**, select its card, then **Install** and **Confirm install**.
- Know the address you are connecting from, and the CIDR range of every network you want to allow.
- Make the change outside business hours. A wrong rule locks users out.

## Steps

<Steps>
  <Step>
    Go to **Access & security → Roles & permissions → System IP filter restrictions**.

    <Image src="asset:screenshots/admin/access-sign-in-restrict-access-by-ip-address/ip-filter-restrictions-menu.png">The System IP filter restrictions item under Roles & permissions in the Access & security menu.</Image>
  </Step>
  <Step>
    Select **New**.

    <Image src="asset:screenshots/admin/access-sign-in-restrict-access-by-ip-address/new-rule.png" size="80">The empty Create System IP Filter Restrictions form, with Access type, Active, Address CIDR, Order and Description.</Image>
  </Step>
  <Step>
    Fill in an Allow rule for the network you are connecting from.

    <!-- source: ip_range_restriction/data/ViewDefinition?Table=SystemIPAddressFilterRestrictions, 2027.1.10 -->
    | Field | What to enter | Example |
    | --- | --- | --- |
    | **Access type** | Allow. | Allow |
    | **Active** | Yes, the default. Servicely checks active rules only. | Yes |
    | **Address CIDR** | The address or range of the network. | `203.0.113.0/24` |
    | **Order** | The rule's position. Servicely checks lower numbers first. The default is 100. | 100 |
    | **Description** | What the network is. | Office network |
  </Step>
  <Step>
    Select **Create**.
  </Step>
  <Step>
    Create an Allow rule in the same way for each other network you allow.
  </Step>
  <Step>
    Create a Deny rule with `0.0.0.0/0` in **Address CIDR** and an **Order** higher than every Allow rule. Servicely refuses an active rule that would deny your own address, with "This rule would prevent you from accessing the system. Please check it."

    <Image src="asset:screenshots/admin/access-sign-in-restrict-access-by-ip-address/deny-rule.png" size="80">A new Deny rule for 0.0.0.0/0 with an order of 200, before it is created.</Image>
  </Step>
  <Step>
    Open the instance from a network you did not allow. The browser shows an HTTP 403 error.
  </Step>
</Steps>

## Result

Servicely checks the address of each request against the active rules, lowest **Order** first. The first rule whose range holds the address decides whether the request is allowed or denied. A request that matches no rule is allowed, so the Deny rule is what blocks every other address. Users on a denied network see an HTTP 403 error in place of the sign-in page.

## Options

| To | Do this |
| --- | --- |
| Block addresses that reach the instance over IPv6 | Add a second Deny rule with `::/0` in **Address CIDR**. A rule matches only addresses of its own family, so an IPv4 rule never matches an IPv6 address. |
| Switch a rule off without deleting it | Set **Active** to No. |
| Give an Allow rule and a Deny rule the same **Order** | Servicely checks the Allow rule first. |
| Get back in after a rule locks you out | Connect from a network that an Allow rule covers and correct the rule. If you cannot, contact Servicely Support. |

## Related

- [Security and upload settings](page:access/sign-in/security-and-upload-settings)
- [Serve Servicely behind a reverse proxy](page:access/sign-in/reverse-proxy)
- [Applications](page:platform/applications-and-licences/applications)
