Skip to content

Rules and scripts

Rules can:

  • rewrite headers, body, or status
  • mock responses
  • map remote hosts
  • add delays
  • block requests

They live in rules.toml (or rules.json) in the config directory. sieve watches the file, so edits apply right away. You can also edit rules from the web UI.

Pause a request, edit it in the UI, then continue or abort.

For custom request handling, write Rhai scripts and put them in the scripts/ subdirectory of the config directory.

sieve ca path prints the CA file paths, which are in the same directory:

Terminal window
sieve ca path