---
title: "Create one or more IP blocker rules for a domain owned by the caller"
method: POST
path: "/api/client/ip-blockers"
tags: ["Client - IP Blockers"]
---

# Create one or more IP blocker rules for a domain owned by the caller

`POST /api/client/ip-blockers`

Accepts a single IPv4, an IP range (e.g. 192.168.0.1-40), CIDR (e.g. 192.168.0.0/24), an implied range (e.g. 192.) or an FQDN. Multiple records may be created from a single value (range/CIDR/FQDN expansion).

## Request body

- object
  - `domain_id` integer, required — ID of the domain (must belong to the caller's account)
  - `blocked_ip` string, required — IPv4, range, CIDR or FQDN

## Response `201`

Created

- HostingAccountIpBlocker[]
  - `id` integer — ID of the IP blocker record
  - `hosting_account_id` integer — ID of the related hosting account
  - `domain_id` integer — ID of the domain the rule applies to
  - `blocked_ip` string — Blocked value: IPv4, range, CIDR or FQDN
  - `beginning_ip` string — First IP in the block range (IPv4)
  - `ending_ip` string — Last IP in the block range (IPv4)
  - `created_at` string, date-time
  - `updated_at` string, date-time

## Other responses

- `404` — Domain not found or not owned by this API key
- `422` — Validation error or unsupported value

---

[API](https://skmtc.dev/adminbolt/apis/adminbolt-api-documentation.md) · [All operations](https://skmtc.dev/adminbolt/apis/adminbolt-api-documentation/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/adminbolt/adminbolt-api-documentation/revisions/bf4f36fbfbd3/schema)
