Overview
InternetSettings lets you restrict outbound network access from a sandbox to a specific list of domains. This is useful when you want to give an agent internet access but limit it to trusted services only.
When you set InternetSettings on a VMConfig, the sandbox can only connect to the domains you allow. All other outbound connections are blocked.
Import
Fields
List of domain names the sandbox is allowed to connect to. SmolVM automatically normalizes entries by stripping protocols and trailing slashes, so
"https://api.example.com/" and "api.example.com" are treated the same.Examples
Allow specific domains
Agent with restricted internet
Related
- VMConfig - Full VM configuration reference
- Networking - How SmolVM networking works
- Security - Isolation and security model