---
title: "Set (dis)allowed clients, blocked hosts, etc."
method: POST
path: "/access/set"
tags: ["clients"]
---

# Set (dis)allowed clients, blocked hosts, etc.

`POST /access/set`

## Request body

- AccessSetRequest — Client and host access list. Each of the lists should contain only unique elements. In addition, allowed and disallowed lists cannot contain the same elements.
  - `allowed_clients` string[] — The allowlist of clients: IP addresses, CIDRs, or ClientIDs.
  - `disallowed_clients` string[] — The blocklist of clients: IP addresses, CIDRs, or ClientIDs.
  - `blocked_hosts` string[] — The blocklist of hosts.

## Response `200`

OK.

## Other responses

- `400` — Failed to parse JSON or cannot save the list.
- `500` — Internal error.

---

[API](https://skmtc.net/guardllamanet/apis/adguard-home.md) · [All operations](https://skmtc.net/guardllamanet/apis/adguard-home/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/guardllamanet/adguard-home/revisions/14ff21aeb363/schema)
