> For the complete documentation index, see [llms.txt](https://docs.cobrowse.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cobrowse.io/sdk-features/redact-sensitive-data.md).

# Redact sensitive data

Within your applications you might show or input sensitive data such as credit card or social security numbers. With redaction you can configure anything so it is not seen by the agent.

{% hint style="info" %}
Anything that is redacted never leaves the users device and is never seen by the agent.
{% endhint %}

<figure><img src="/files/8qrX4d2MJQ8Izrd8MBoO" alt=""><figcaption><p>Agent can not see redacted content</p></figcaption></figure>

### Redaction modes

#### Default redaction

In this mode you tell the SDK what must **not** be seen by the agent. This can be seen as a block list of views / elements that must **not** be show to the agent and must **not** be processed.

#### Private by Default

Private by default is a more strict mode where by default everything is redacted from the agent and views / elements must be configured to be seen or **unredacted**. This can be seen as an allow list of views / elements that can be seen by the agent, ensuring anything else will **not** be shown to the agent.

### Ways to configure redaction

#### Define redaction in your source code

By defining redaction within your application's source code you tie a redaction configuration to that version. This can be useful for mobile applications that are submitted to App Stores ensuring as new versions are submitted, redaction remains as applied in older versions.

#### Define redaction via the web dashboard

Redaction & unredaction can also be configured via our web dashboard.

<https://cobrowse.io/dashboard/settings/redaction>

Adding selectors via the dashboard can be useful if your application is already in production and you need to redact a view / element retrospectively, either due to a missed redaction entry or changing of requirements.

### Configuring redaction

Please follow the specific documentation for your platform:

{% content-ref url="/pages/VnxTvQKp4cpCzA9jV66z" %}
[Web](/sdk-features/redact-sensitive-data/web.md)
{% endcontent-ref %}

{% content-ref url="/pages/lhPFt9bqRhGIyVli4in6" %}
[iOS](/sdk-features/redact-sensitive-data/ios.md)
{% endcontent-ref %}

{% content-ref url="/pages/CoVyb3yANq8tsd5QGfWD" %}
[Android](/sdk-features/redact-sensitive-data/android.md)
{% endcontent-ref %}

{% content-ref url="/pages/gKXkHoAnUxxfhwdzlDJP" %}
[React Native](/sdk-features/redact-sensitive-data/react-native.md)
{% endcontent-ref %}

{% content-ref url="/pages/aG2G4V5uhgycrxGmYwqg" %}
[Flutter](/sdk-features/redact-sensitive-data/flutter.md)
{% endcontent-ref %}

{% content-ref url="/pages/Ot7CorsG1B81tlsyHC6b" %}
[.Net MAUI](/sdk-features/redact-sensitive-data/.net-maui.md)
{% endcontent-ref %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cobrowse.io/sdk-features/redact-sensitive-data.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
