Internet Access
By default, sandboxes have internet access enabled. Disable it for untrusted code:Outbound Destination Controls
For more granular control, useallow_out and deny_out to restrict which destinations the sandbox can reach.
Allow List
Only allow connections to specific destinations:allow_out is specified, the sandbox can only connect to the listed destinations. All other outbound connections are blocked.
Deny List
Block specific destinations while allowing everything else:deny_out is specified, the sandbox can connect to any destination except the listed ones.
Network Configuration Summary
| Parameter | Type | Default | Description |
|---|---|---|---|
allow_internet_access | bool | True | Enable or disable all internet access |
allow_out | list[str] | [] | Allowed outbound destinations (allowlist) |
deny_out | list[str] | [] | Denied outbound destinations (denylist) |