# Security and Network Access A Vega or Vega-Lite specification can refer to remote data, local files, images, fonts, and plugin code. When processing specifications from other users or systems, limit the resources they can access and the work they can perform. VlConvert controls three resource types separately: | Resource | Control | | --- | --- | | Data and images referenced by a specification or SVG | `base_url` and `allowed_base_urls` | | Google Fonts | Explicit font requests and `auto_google_fonts` | | Plugin modules and their imports | `vega_plugins` and the plugin domain allowlists | Allowing one type does not allow the others. ## Restrict Data and Images By default, `allowed_base_urls` permits any HTTP or HTTPS URL and no local files for both data and images, and `base_url` resolves relative data and image URLs against the Vega datasets CDN. It's recommended to tighten both before processing untrusted input. An empty `allowed_base_urls` list blocks every HTTP or HTTPS URL and filesystem path. Inline `values` and `data:` URLs remain allowed. To permit one service, list its URL prefix. These settings apply to any conversion: ```python import vl_convert as vlc vlc.configure( base_url=False, allowed_base_urls=["https://data.example.com/public/"], max_v8_heap_size_mb=512, max_v8_execution_time_secs=10, ) ``` Allowlist entries can be URL prefixes, schemes such as `https:`, wildcard hosts, absolute filesystem directories, or `*`. Use the narrowest prefix that works, and never use `*` for untrusted specifications. See {doc}`data-loading` for the full pattern syntax and how URLs are resolved. ## Restrict Fonts and Plugins Automatic Google Fonts makes network requests based on font names in a specification. Keep `auto_google_fonts` off unless you need it. If you enable it, set a variant threshold. See {doc}`fonts`. Plugins run JavaScript and can import code from allowed domains. Prefer reviewed local startup plugins, and keep per-request plugins disabled for untrusted callers. See {doc}`plugins` and {doc}`../advanced/plugin-loading`. ## Limit Resource Use A specification can consume CPU time or JavaScript memory without loading any external resource. Set `max_v8_execution_time_secs` and `max_v8_heap_size_mb` for untrusted workloads. These limits cover only the JavaScript portion of a conversion, so adding process-level memory and time limits for a public service is also recommended. See {doc}`../advanced/memory-management`.