H tspot Docs
Hotspot › Docs › SDK & Privacy API › Privacy & Masking

Privacy Controls & DOM Element Masking

How to mask sensitive inputs, passwords, credit card fields, and proprietary UI content from session recordings.

Hotspot was architected from day one to guarantee that sensitive customer data never reaches the server.

Automatic Default Redactions

  • Password Inputs: All <input type="password"> values are completely omitted from recordings.
  • Credit Card Numbers & CVVs: Stripped automatically by regex filters in both the client SDK and backend sanitizers.
  • Auth Tokens: Any property matching token, secret, jwt, or password is discarded.

Custom Element Masking

To redact specific sensitive text or customer information on your page, add data-hotspot-mask or class hotspot-mask to the element:

HTML
<!-- Text will be replaced with asterisks (***) in session replays -->
<div data-hotspot-mask>
    Customer Account Balance: $48,250.00
</div>

<!-- Entire element block can be completely ignored -->
<div data-hotspot-ignore>
    Internal Confidential Memo
</div>