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

# Customize Privacy

> You can easily customize what data is masked in the session replays

<Check>**⏱ Estimated Time To Completion: 2 minutes**</Check>

## Options

To mask specific fields, use the `mask` option, which lets you mask sensitive fields based on CSS selectors. For example, to mask credit card fields:

```typescript theme={null}
Sentry.init({
  ...
  integrations: [
    new Sentry.replayIntegration({
      maskAllText: false, 
      maskAllInputs: false,
      mask: 'input[type="creditcard"], .credit-card', // Mask specific fields
    }),
  ],
  ...
});
```

You can also directly use sentry-mask to mask fields or elements in your code. This provides a simple way to manage privacy without altering your JavaScript configuration.

`<input type="text" class="sentry-mask" />`

For more details head to [https://docs.sentry.io/platforms/javascript/session-replay/privacy/](https://docs.sentry.io/platforms/javascript/session-replay/privacy/).
