# --request-scripts

Source: https://zshot-cli.com/reference/flags/security/request-scripts/
Markdown: https://zshot-cli.com/reference/flags/security/request-scripts/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Flags](https://zshot-cli.com/reference/flags/) › [Security](https://zshot-cli.com/reference/flags/security/)
CLI: `--request-scripts` · REST: CLI only
Value: `POLICY` · Default: `allow`

Controls whether requests may carry [`--javascript`](/reference/flags/browser/javascript), [`--javascript-file`](/reference/flags/browser/javascript-file) or [`--navigator-script`](/reference/flags/navigator/navigator-script). Set `forbid` to refuse them.

| Where | With `forbid` |
| --- | --- |
| Command line | Exits the process with a usage error naming the flag |
| [`--server`](/reference/flags/server/server) | Returns HTTP 400 naming the field |
| MCP | Omits both fields from tool schemas and rejects calls that send one |

Request scripts run in the page with its cookies, storage and logged-in session. Set `forbid` on a server whose callers are not trusted with the pages it reaches, such as an agent reading untrusted content.

A [`--cdp`](/reference/flags/server/cdp) client evaluates script through the protocol and is outside this flag.

## Example

**CLI**

```sh
zshot --server --request-scripts forbid
```

## Related

Flags:

- [`--javascript`](https://zshot-cli.com/reference/flags/browser/javascript/)
- [`--javascript-file`](https://zshot-cli.com/reference/flags/browser/javascript-file/)
- [`--navigator-script`](https://zshot-cli.com/reference/flags/navigator/navigator-script/)
- [`--server`](https://zshot-cli.com/reference/flags/server/server/)

## 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/)
    - [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/)
      - [--adblock-rules](https://zshot-cli.com/reference/flags/security/adblock-rules/)
      - [--allow-ip-range](https://zshot-cli.com/reference/flags/security/allow-ip-range/)
      - [--allow-unsafe-ssl](https://zshot-cli.com/reference/flags/security/allow-unsafe-ssl/)
      - [--block-ip-range](https://zshot-cli.com/reference/flags/security/block-ip-range/)
      - [--block-private-ips](https://zshot-cli.com/reference/flags/security/block-private-ips/)
      - [--container](https://zshot-cli.com/reference/flags/security/container/)
      - [--insecure-web-mode](https://zshot-cli.com/reference/flags/security/insecure-web-mode/)
      - [--ip-blocklist](https://zshot-cli.com/reference/flags/security/ip-blocklist/)
      - [--no-sandbox](https://zshot-cli.com/reference/flags/security/no-sandbox/)
      - **--request-scripts**
    - [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/)
  - [Devices](https://zshot-cli.com/reference/devices/)
  - [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/)
  - [npm](https://zshot-cli.com/reference/npm/)
  - [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

