@reform-digital/contact-cloak
v1.0.2
Published
Prevent bots from scraping emails and phone numbers
Downloads
365
Readme
ContactCloak™
Protect email addresses, phone numbers, and sensitive text from scrapers while keeping them functional for real visitors.
Features
- Protects email links, phone links, and text content
- Decrypts contact information automatically in the browser
- Works seamlessly with Webflow
- Lightweight and dependency-free
Quick Start
1. Add the script
Add this script to your Webflow project's global <head> settings:
<!-- ContactCloak™ by Reform Digital® -->
<script
src="https://cdn.jsdelivr.net/npm/@reform-digital/[email protected]/prod/contact-cloak.js"
defer
></script>2. Encrypt your information
Generate encrypted values with the Contact Cloak encryption tool.
3. Add the appropriate attribute
| Attribute | Apply to | Result |
| ------------- | ----------- | ----------------------------------------------- |
| rd-cc-email | <a> | Sets its href to the decrypted mailto: link |
| rd-cc-phone | <a> | Sets its href to the decrypted tel: link |
| rd-cc-text | Any element | Displays the decrypted value as text |
<!-- Email -->
<a rd-cc-email="aW5mb0BleGFtcGxlLmNvbQ==">Email us</a>
<!-- Phone -->
<a rd-cc-phone="KzExMjIzMzQ0NTU2Ng==">Call us</a>
<!-- Protected text, such as an address -->
<span rd-cc-text="TmV3IFlvcmssIE5ZIDEwMDAx"></span>Use generic link labels such as “Email us” and “Call us.” Writing the original contact details inside the HTML would expose them to scrapers.
How It Works
On page load, ContactCloak™ finds the supported rd-cc-* attributes, decrypts values generated by the Contact Cloak encryption tool, and updates each element. Visitors receive functional links and readable text while the original contact information remains absent from the HTML source.
Product Tracking
ContactCloak™ sends one lightweight, anonymous installation request per product and public domain in each browser. This helps Reform Digital® understand adoption and prioritize improvements.
The request contains only:
- The product identifier (
CONTACT_CLOAK) - The public hostname where it is installed (for example,
example.com)
Tracking does not run on localhost, private networks, or numeric IP addresses. It uses no cookies, fingerprinting, or personally identifiable information, and the aggregated data is not used for advertising or marketing.
Support
Need help? Join the Reform Digital® Slack community.
