> ## Documentation Index
> Fetch the complete documentation index at: https://doc.lucidworks.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Restrictive Mode

Restrictive mode safeguards the pipeline against unintended or unsafe changes. You can enable restrictive mode for any query pipeline.

> [!NOTE]
>
> This feature is available starting in Fusion 5.9.15.

The default mode is permissive mode.

When a query pipeline is in restrictive mode:

* **Only certain query parameters are allowed.**\
  Restrictive mode blocks parameters that could be used destructively.

* **Strict parameter validation and sanitization is applied.**

  * The `q` and `fq` parameters are rejected if they contain LocalParams syntax (`{!...}`), which prevents parser-injection attacks. General Solr query syntax (field:value, booleans, wildcards, ranges, phrase queries) is still permitted.
  * The `rows` and `start` parameters must be less than 100 (valid range: 0–99).
  * The `sort` parameter is allowlisted but values are not validated against specific sortable fields.

> [card] Key questions to get you started
>
> Powered by Lucidworks Agent Studio

## Enabling restrictive mode

You can enable restrictive mode for any individual pipeline, in the Query Pipelines panel.

> [accordion] How to enable restrictive mode
>
> 1. Navigate to **Query** > **Query Pipelines**.
> 2. Select the pipeline you want to secure.
> 3. In the **Parameter Validation** field, select **Restrictive**.
>
> ![Parameter Validation field in the Query Pipelines panel](https://mintcdn.com/lucidworks/zu0pV9aZMhAFscBD/assets/images/5.9/restrictive-mode-enable.png?fit=max\&auto=format\&n=zu0pV9aZMhAFscBD\&q=85\&s=0d99cf4bea05e601910b53393afefcc5)

## Allowed parameters

The parameters listed below are allowed in restrictive mode.
All other parameters are prohibited.

* `bf`
* `boost`
* `bq`
* `callback`
* `collection`
* `context`
* `cursorMark`
* `debug`
* `defType`
* `echoParams`
* `explainOther`
* `facet.field`
* `facet.limit`
* `facet.mincount`
* `facet.pivot`
* `facet.query`
* `facet.range`
* `facet.sort`
* `facet`
* `fl`
* `fq`
* `hl.fl`
* `hl.fragsize`
* `hl.simple.post`
* `hl.simple.pre`
* `hl.snippets`
* `hl`
* `indent`
* `json.facet`
* `json.nl`
* `json.wrf`
* `mm`
* `omitHeader`
* `pf`
* `ps`
* `q`
* `qf`
* `qs`
* `queryProfileID`
* `requestHandler`
* `rows`
* `segmentTerminateEarly`
* `sort`
* `start`
* `tie`
* `timeAllowed`
* `wt`


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.