phoney
30 sites
Security covered
This module provides an input filter and field format that protects telephone numbers from spam bots while being visible by humans.
The filter encrypts and then obscures the phone number behind a data-attribute. The HTML is then decrypted and rewritten in the client browser via JavaScript back into a clickable phone link, (there is no non-JavaScript fallback).
A field formatter for telephone and/or text fields was added to the 2.1.x version, (Drupal 11 only).
Currently the display format used is compatible with US 10 digit telephone numbers, (234) 456-7890.
Original phone link:<a href="tel:2344567890">2344567890</a>
Encoded phone link: <a href="#" data-phone-to="EFGGHIJKLC" data-replace-inner="@phone">@phone</a>
JavaScript decoded link: <a href="tel:2344567890">(234) 456-7890</a>
The Obfuscate Email module does something similar for email addresses, (and was an inspiration for this module).