Share feedback
Answers are generated based on the documentation.

sbx policy deny network

DescriptionDeny network access to specified hosts
Usagesbx policy deny network [--sandbox SANDBOX] RESOURCES [flags]

Description

Block sandbox network access to the specified hosts.

RESOURCES is a comma-separated list of hostnames, domains, or IP addresses. Deny rules always take precedence over allow rules.

The rule applies globally to all sandboxes by default. Use --sandbox to add the rule to policy "local" scoped to a single sandbox instead.

Options

OptionDefaultDescription
--sandboxScope the rule to a specific sandbox (default: all sandboxes)

Global options

OptionDefaultDescription
-D, --debugEnable debug logging

Examples

# Block access to a host (all sandboxes)
sbx policy deny network ads.example.com

# Block a host only for a specific sandbox
sbx policy deny network --sandbox my-sandbox ads.example.com

# Block all outbound traffic
sbx policy deny network "**"