Redact sensitive data
Ensure secure remote screen viewing using the redaction API to automatically block sensitive data such as credit card details, social security numbers and more.
Last updated
Was this helpful?
Ensure secure remote screen viewing using the redaction API to automatically block sensitive data such as credit card details, social security numbers and more.
Last updated
Was this helpful?
When remotely viewing a user's screen, there may be certain sensitive data that should not be viewable by the agent.
For this purpose, we provide a redaction API that automatically blocks out on device all sensitive data sources such as credit cards, social security numbers, etc. When certain data is redacted, it will never leave the user's device.
Cobrowse provides two methods for redacting sensitive data in your applications:
This is the recommended method as it will make sure your redactions are tied to application or websites code version.
Redactions are defined as CSS selectors, passed as an array to the Cobrowse SDK. We recommend using a simple css class to signify redaction where possible, although more complex selectors will also work.
Selectors can also be scoped by URL or by providing an Object
where the key is the URL or glob pattern and the value is the array of String
CSS Selectors to redact when viewing that page.
The example below will always redact any element with the redacted
class but will only redact all input elements when viewing any example.com page.
Our web SDK also supports an un-redaction mechanism, where by you can define sub-elements inside of a redacted element that should be visible to the agent. You can specify un-redaction selectors like this:
You can use CSS like selectors to identify what elements / views should be redacted. These selectors can be defined within your application using our SDK or via the Cobrowse dashboard.
Adding selectors via the dashboard can be useful if your app is already in production and you need to redact a field retrospectively, either due to a missed redaction entry in the app build or changing requirements.
Via SDK
Via dashboard
To achieve this, you'll need to follow the and ensure you pass the all your applications root views to the Cobrowse redaction delegate methods for iOS and Android.
Finally, within React Native some packages will render in new Windows/Root Views. You can follow the same to identify this views and redact or unredact them by default as required. You can check the provided examples for and which redact by default the React Native Dev menu keeping one of the options unredacted to illustrate the technique.
Create a new which then will be used to redact certain MAUI views:
Visit and enter your selectors into the Web redaction / unredaction configuration.
Visit and enter your selectors into the iOS redaction configuration.
For Android Views you can use the of any view class, the id of the view.
Visit and enter your selectors into the iOS redaction configuration.