# sandbox.network.deniedDomains

> A list of hosts sandboxed commands may never reach.

**Field:** Artificial Intelligence  
**Category:** Claude Code  
**Also known as:** deniedDomains

## Think of it like

It is like a street a child may not walk down. Not even a friend can take them there.

## Definition

sandbox.network.deniedDomains is a settings key. It blocks the hosts it lists for commands in the sandbox. It uses the same wildcards and ports as allowedDomains. A denied host stays blocked even when an allowed entry matches it too. Lists from all settings files are joined, so anyone can make the list tighter.

## Example

Jack allows *.example.com but one subdomain hosts untrusted files. He denies that one host, and it stays blocked.

## Example code

```json
{
  "sandbox": {
    "network": {
      "deniedDomains": ["*.pastebin.com"]
    }
  }
}
```

Block a site where code could be posted.

## Why it matters

It cuts one risky host out of a wide allow rule.

## Common mistake

Thinking a match on the allow list wins. The deny list always wins.

## Three principles

- **Never reach.** Listed hosts.
- **Beats allow.** Always.
- **Lists join.** Every file.

## Related terms

- [sandbox.network.allowedDomains](https://learn.benibix.com/term/ai/sandbox-allowed-domains-setting)
- [deniedMcpServers](https://learn.benibix.com/term/ai/denied-mcp-servers-setting)

---

Source: https://learn.benibix.com/term/ai/sandbox-denied-domains-setting
Author: Behnia Zarei (a developer in Vienna, Austria, who builds and teaches data, AI and business intelligence at BENIBIX)
Publisher: BENIBIX Learn (https://learn.benibix.com/)
Last updated: 2026-11-16
Licence: CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Quote freely with attribution.
