← Back to Blog

Take Control: Building Custom Redaction Rules with Regex and Keywords

5/1/2026

While ScreenMask comes pre-loaded with highly accurate algorithms for global standards like Credit Cards, SSNs, and Aadhaar numbers, we know that privacy isn't one-size-fits-all.

Every company has proprietary data structures. Perhaps your organization uses internal "Employee IDs" formatted as EMP-12345, or maybe you are working on a highly confidential initiative code-named Project Apollo.

If you are screen sharing with external clients or recording a tutorial, leaking these internal identifiers can be a severe breach of protocol. That's why we built the Custom Rule Builder into ScreenMask Pro.

How to Redact Specific Keywords

The simplest way to use the Custom Rule Builder is with exact keyword matching.

  1. Open the ScreenMask extension popup.
  2. Scroll down to the Custom Rules (Pro) section.
  3. Type your sensitive keyword (e.g., Apollo) into the input field and click Add.

Instantly, ScreenMask will scan the active webpage and blur every instance of that exact word. If you navigate to a new page or open a different tab, the rule remains active, ensuring your secret project name never accidentally slips into a screen recording.

Harnessing the Power of Regex

For more complex data structures, ScreenMask supports Regular Expressions (Regex).

If you want to hide internal employee IDs that always follow the format of the letters "EMP" followed by a hyphen and five digits, you don't need to add every single ID manually.

  1. In the Custom Rules input field, type your Regex wrapped in forward slashes: /EMP-\d{5}/g
  2. Click Add.

ScreenMask's high-performance scanning engine automatically recognizes the syntax as a Regular Expression. It will dynamically scan the webpage's DOM (Document Object Model) and blur any text matching that structural pattern, whether it's EMP-98765 or EMP-10293.

Built for Performance

Browser extensions that rely heavily on Regex can often slow down your browsing experience. However, because ScreenMask evaluates your custom rules directly alongside our highly optimized, native C++ level DOM parsers, there is zero noticeable lag—even on text-heavy pages.

Sync Across Devices

The best part? Your custom rules are securely saved to chrome.storage.sync. If you log into your Chrome profile on your laptop and your desktop, your custom redaction policies will automatically follow you, ensuring your proprietary data remains masked no matter where you work.

Upgrade to ScreenMask Pro today to unlock the Custom Rule Builder and take absolute control over your screen sharing privacy.