Skip to main content
Data can leave a sandbox in three ways. A network policy closes each one.
Without a policy, a sandbox is open in both directions.

Quick path

In the dashboard, use the Network section of a sandbox or of an environment.
A key needs the network.write action to change a policy. Only the admin preset holds it. Read Who can change it.

Learn more

Outbound

Block every connection, or allow a list of domains and IP ranges.

Inbound

Let only boat connect. Code inside cannot make a port public.

Environments and organizations

Set one policy for many sandboxes, and roll out a change.

Run untrusted code

The full setup, step by step.

Reference

Status, permissions, errors and limits.