# Application Setting: IP Allowlist Settings

An IP allowlist panel with an enforcement switch, a list of CIDR ranges with owners and last match times, and an add range form.

- Page: https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/ip-allowlist-settings
- Collection: [Application](https://www.shadcn-ui-blocks.com/blocks/application-pro), Standard tier
- Group: [Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)
- Created: 2026-07-04
- Preview image: https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/ip-allowlist-settings.png

## Install

```bash
npx shadcn@latest add @shadcn-ui-blocks/application-pro-settings-pages-ip-allowlist-settings
```

Needs an API key from a Pro or Team plan: add `@shadcn-ui-blocks` to the registries in components.json with the key as an `Authorization: Bearer` header. Setup: https://www.shadcn-ui-blocks.com/docs/shadcn-cli. The MCP server installs it without the setup: https://www.shadcn-ui-blocks.com/docs/mcp.

## Depends on

- npm packages: class-variance-authority, radix-ui
- shadcn/ui components: badge, button, input, label, switch
- Installs to: `@/components/blocks/application-pro/settings-pages/ip-allowlist-settings`

## About this block

IP Allowlist Settings restricts workspace access to a set
of trusted networks. The panel opens with an Enforce
allowlist switch whose description spells out the full
consequence: sign ins and API requests from outside the
ranges are refused with a 403, existing sessions included
on their next request, and mobile apps on cellular
networks are blocked unless members route through the VPN.
A ruled list of CIDR ranges follows (Berlin office, Austin
office, Production VPN, CI runners), each showing its
label, the monospace range, who added it and when, and
when it last matched. The range you are connecting from
carries a Your connection badge. An add range form and a
lockout guard note close the panel.

Ranges are one const array keyed by CIDR, with an
isCurrent flag that drives the badge. The lockout guard
copy is the safeguard that keeps an admin from saving an
allowlist that excludes the address they are on right now.

## When to use

Reach for this block on the workspace security settings
page, visible to owners and admins, wired to your network
policy API. Keep the lockout guard active so a mistyped
range cannot lock the whole team out.

A natural flow around it on an Application Pro page:

**Before**

- [Settings shell](https://www.shadcn-ui-blocks.com/blocks/application-pro/app-shells)
- [Security settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)

**After**

- [Audit log settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages)
- [Activity feed](https://www.shadcn-ui-blocks.com/blocks/application-pro/activity)

## What you can display

One strong use is the workspace network allowlist. Other
access control surfaces:

- **Blocked attempts log.** Recent refused requests with
  source address, time, and the rule that rejected them.
- **Country allowlist.** The same list keyed by region
  instead of CIDR for coarse geographic limits.
- **Per-app rules.** Separate ranges scoped to individual
  API keys rather than the whole workspace.

> Tip: state the lockout guard in plain copy next to the
> switch; an admin who locks themselves out will open a
> ticket the guard could have prevented.

## More in Application Settings

- [Api Keys Panel](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/api-keys-panel)
- [Appearance Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/appearance-settings)
- [Audit Log Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/audit-log-settings)
- [Billing Alerts Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/billing-alerts-settings)
- [Branding Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/branding-settings)
- [Connected Apps Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/connected-apps-settings)
- [Danger Zone Card](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/danger-zone-card)
- [Data Retention Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/data-retention-settings)
- [Email Domain Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/email-domain-settings)
- [Guest Access Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/guest-access-settings)
- [Import Export Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/import-export-settings)
- [Language Region Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/language-region-settings)
- [Member Roles Table](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/member-roles-table)
- [Notification Preferences](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/notification-preferences)
- [Plan and Usage Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/plan-usage-settings)
- [Profile Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/profile-settings)
- [SCIM Provisioning Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/scim-provisioning-settings)
- [Security Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/security-settings)
- [Session Timeout Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/session-timeout-settings)
- [Sso And Domain Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/sso-and-domain-settings)
- [Team Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/team-settings)
- [Two Factor Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/two-factor-settings)
- [Webhooks Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/webhooks-settings)
- [Workspace General Settings](https://www.shadcn-ui-blocks.com/blocks/application-pro/settings-pages/workspace-general-settings)
