---
title: "Restrict access by IP address"
site: admin
version: 1.11
versions: "all"
url: https://docs-new.servicely.ai/admin/1.11/access/ip-filtering/
type: task
application: ip_range_restriction
last_updated: 2026-10-18
commit: c05803eee2ce
---


Restrict access by IP address when users must reach Servicely only from known networks, such as an office or a VPN. This task is for administrators.

## Before you begin

- You need `administrator`.
- Know the address you are connecting from now, and the CIDR ranges of every network you want to allow.
- Make the change outside business hours. A wrong rule can lock users out, including you.

<Callout type="warning">
  Create and activate an **Allow** rule that covers your own address before you add any **Deny** rule. Otherwise you lose access to the instance.
</Callout>

## Steps

<Steps>
  <Step>
    Go to **Application → Application → Applications**, open **IP Range Restriction** (`ip_range_restriction`) and select **Install Application**.

    <Image src="asset:screenshots/admin/access-ip-filtering/image.png" size="44">The IP Range Restriction application record, with the Install Application button at the bottom of the form.</Image>
  </Step>
  <Step>
    Go to **Administration → Permissions & Security → System IP filter restrictions**.

    <Image src="asset:screenshots/admin/access-ip-filtering/image-2.png" size="40">System IP filter restrictions in the Permissions & Security menu section.</Image>
  </Step>
  <Step>
    Select **New** and create an **Allow** rule for the network you are connecting from. Turn on **Active** and save.
  </Step>
  <Step>
    Create an **Allow** rule for each other network you want to allow.
  </Step>
  <Step>
    To block every other address, create a **Deny** rule whose **Address CIDR** covers all addresses, such as `0.0.0.0/0`. Give it a higher **Order** than every Allow rule.

    <Image src="asset:screenshots/admin/access-ip-filtering/image-3.png" size="80">A Deny rule with an order of 200, above Allow rules that use lower orders.</Image>
  </Step>
  <Step>
    From a network you did not allow, open the instance and confirm you see the error page.

    <Image src="asset:screenshots/admin/access-ip-filtering/image-4.png" size="52">The error page a user sees when their address is denied.</Image>
  </Step>
</Steps>

| Field | Required | What to enter |
| --- | --- | --- |
| Access type | Yes | Allow or Deny. |
| Address CIDR | Yes | The address or range, for example `10.12.14.0/24`. |
| Order | Yes | The rule's position. Lower orders are checked first. |
| Active | No | Only active rules are checked. |
| Description | Yes | What the network is, for example "Office network". |

## Result

Servicely checks each request against the active rules in ascending order. The first rule whose range contains the address decides: allow or deny. If no rule matches, the request is allowed, so without a Deny rule nothing is blocked. Rules match only addresses of their own family: an IPv4 rule never matches an IPv6 address. Add an IPv6 Deny rule as well if users can reach the instance over IPv6. Requests from the server itself are always allowed.

## Related

- [Security application properties](page:access/security-properties)
- [Serve Servicely behind a reverse proxy](page:environments/reverse-proxy)
- [Applications](page:platform/applications)
