# --chromium-preference

Source: https://zshot-cli.com/reference/flags/browser/chromium-preference/
Markdown: https://zshot-cli.com/reference/flags/browser/chromium-preference/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Flags](https://zshot-cli.com/reference/flags/) › [Browser](https://zshot-cli.com/reference/flags/browser/)
CLI: `--chromium-preference` · REST: CLI only
Value: `NAME=VALUE`

Sets a Chromium preference, for browser behavior no command-line switch controls. Repeatable. `VALUE` is read as the preference's own type: `true` or `false`, a number, or text.

## Default Preferences

| Preference | Value | Effect |
|---|---|---|
| `webrtc.ip_handling_policy` | `disable_non_proxied_udp` | WebRTC sends no UDP and shows a page no address of the host |
| `net.network_prediction_options` | `2` | Speculation rules prefetch and prerender nothing |
| `dns_over_https.mode` | `off` | Names resolve through the system resolver, the path the IP filter checks |
| `web_package.signed_exchange.enabled` | `false` | An `application/signed-exchange` response crashes the browser when this is on |
| `safebrowsing.enabled` | `false` | Safe Browsing is off |
| `translate.enabled` | `false` | Translate is off |

## Errors

Chromium checks each preference when ZShot starts. An invalid preference ends the process with exit code 5.

Set the languages a page sees with [`--accept-language`](/reference/flags/browser/accept-language). Chromium sets `intl.accept_languages` from it, so that preference has no effect and ZShot warns that it is ignored.

## Example

**CLI**

```sh
zshot -f page.png \
  --chromium-preference webrtc.ip_handling_policy=default \
  https://zshot-cli.com/example_assets/hello_zshot/
```

## Related

Flags:

- [`--chromium-arg`](https://zshot-cli.com/reference/flags/browser/chromium-arg/)

Topics:

- [Exit Codes](https://zshot-cli.com/reference/exit_codes/)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
    - [Common](https://zshot-cli.com/reference/flags/common/)
    - [Agents](https://zshot-cli.com/reference/flags/agents/)
    - [Archive](https://zshot-cli.com/reference/flags/archive/)
    - [Browser](https://zshot-cli.com/reference/flags/browser/)
      - [--accept-language](https://zshot-cli.com/reference/flags/browser/accept-language/)
      - [--browser-height](https://zshot-cli.com/reference/flags/browser/browser-height/)
      - [--browser-width](https://zshot-cli.com/reference/flags/browser/browser-width/)
      - [--chromium-arg](https://zshot-cli.com/reference/flags/browser/chromium-arg/)
      - **--chromium-preference**
      - [--cookie](https://zshot-cli.com/reference/flags/browser/cookie/)
      - [--device](https://zshot-cli.com/reference/flags/browser/device/)
      - [--device-list](https://zshot-cli.com/reference/flags/browser/device-list/)
      - [--device-scale-factor](https://zshot-cli.com/reference/flags/browser/device-scale-factor/)
      - [--emulate-dark-mode](https://zshot-cli.com/reference/flags/browser/emulate-dark-mode/)
      - [--emulate-disable-bluetooth](https://zshot-cli.com/reference/flags/browser/emulate-disable-bluetooth/)
      - [--emulate-disable-serial](https://zshot-cli.com/reference/flags/browser/emulate-disable-serial/)
      - [--emulate-disable-usb](https://zshot-cli.com/reference/flags/browser/emulate-disable-usb/)
      - [--emulate-geolocation](https://zshot-cli.com/reference/flags/browser/emulate-geolocation/)
      - [--emulate-gpu-renderer](https://zshot-cli.com/reference/flags/browser/emulate-gpu-renderer/)
      - [--emulate-gpu-vendor](https://zshot-cli.com/reference/flags/browser/emulate-gpu-vendor/)
      - [--emulate-hardware-concurrency](https://zshot-cli.com/reference/flags/browser/emulate-hardware-concurrency/)
      - [--emulate-media](https://zshot-cli.com/reference/flags/browser/emulate-media/)
      - [--emulate-memory](https://zshot-cli.com/reference/flags/browser/emulate-memory/)
      - [--emulate-mobile-device](https://zshot-cli.com/reference/flags/browser/emulate-mobile-device/)
      - [--emulate-timezone](https://zshot-cli.com/reference/flags/browser/emulate-timezone/)
      - [--emulate-touch-points](https://zshot-cli.com/reference/flags/browser/emulate-touch-points/)
      - [--emulate-vision-deficiency](https://zshot-cli.com/reference/flags/browser/emulate-vision-deficiency/)
      - [--full-page](https://zshot-cli.com/reference/flags/browser/full-page/)
      - [--header](https://zshot-cli.com/reference/flags/browser/header/)
      - [--javascript](https://zshot-cli.com/reference/flags/browser/javascript/)
      - [--javascript-file](https://zshot-cli.com/reference/flags/browser/javascript-file/)
      - [--platform](https://zshot-cli.com/reference/flags/browser/platform/)
      - [--proxy-auth](https://zshot-cli.com/reference/flags/browser/proxy-auth/)
      - [--proxy-server](https://zshot-cli.com/reference/flags/browser/proxy-server/)
      - [--remove-modals](https://zshot-cli.com/reference/flags/browser/remove-modals/)
      - [--skip-robots-txt](https://zshot-cli.com/reference/flags/browser/skip-robots-txt/)
      - [--storage](https://zshot-cli.com/reference/flags/browser/storage/)
      - [--storage-chrome-profile](https://zshot-cli.com/reference/flags/browser/storage-chrome-profile/)
      - [--storage-chrome-profile-key](https://zshot-cli.com/reference/flags/browser/storage-chrome-profile-key/)
      - [--storage-firefox-profile](https://zshot-cli.com/reference/flags/browser/storage-firefox-profile/)
      - [--storage-limit](https://zshot-cli.com/reference/flags/browser/storage-limit/)
      - [--storage-safari-profile](https://zshot-cli.com/reference/flags/browser/storage-safari-profile/)
      - [--user-agent](https://zshot-cli.com/reference/flags/browser/user-agent/)
      - [--web-bot-auth](https://zshot-cli.com/reference/flags/browser/web-bot-auth/)
    - [Diagnostics](https://zshot-cli.com/reference/flags/diagnostics/)
    - [Document](https://zshot-cli.com/reference/flags/document/)
    - [Image](https://zshot-cli.com/reference/flags/image/)
    - [Navigator](https://zshot-cli.com/reference/flags/navigator/)
    - [Security](https://zshot-cli.com/reference/flags/security/)
    - [Server](https://zshot-cli.com/reference/flags/server/)
    - [Video](https://zshot-cli.com/reference/flags/video/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

