Skip to content

Sensitive data protection

We take privacy and security seriously. Ybug automatically anonymizes the following fields to avoid transmitting personal data to our servers:

  • Password fields.
  • Any input field values that look like credit card numbers (using a basic regular expression).
  • Any input fields with the name attribute containing words such as password, token, key, secret, card, cvv and their variations.

To add an extra layer of security, you can mark any input fields or HTML elements as sensitive by adding the data-ybug-sensitive attribute:

html
<div data-ybug-sensitive>
    My sensitive information that will be anonymized
</div>
<input type="email" data-ybug-sensitive value="myemail" />

You can also provide a comma-separated list of HTML IDs/classes to identify elements containing sensitive data. Add them via the anonymize_elements option:

javascript
window.ybug_settings = {
    id: 'XXXXXXXXX',
    anonymize_elements: '#my-super-secret, .tokens .api_token',
};

Anonymization is performed by JavaScript in the browser, so no personal data is transmitted to our servers.