EmailObfuscation by Roope

Email Obfuscation module for email addresses with 64 base crypting.

Email Obfuscation module for email addresses with 64 base crypting

This module finds all plaintext emails and email links from the document and replaces them with noscript elements with configurable replace text. All the addresses are encoded to 64 base strings and stored in noscript data attributes. Then on client side we decode these strings back to their original state.

Install this module using standard install procedure in ProcessWire.

composer require blowback/emailobfuscation

After install you can find some configurable options on module admin page.

Transliterable text string used as a replace to obfuscated email address.

There is three modes available for this module to handle obfuscation.

  1. Obfuscate manually by using $sanitizer->emo($str) method.
  2. Obfuscate automatically at selected templates/pages.
  3. Obfuscate automatically but exclude selected templates/pages (default).
  1. Load file manually.
  2. Load file to $config->scripts array.
  3. Append automatically to page as external script (default).
  4. Append automatically to page as inline script.

By enabling force mailto option all email addresses are rendered as mailto links regardless of their original state.

When enabled encryption key is locked and does not change. By default encryption key updates on every session. Fixed key is required when you cache obfuscated AJAX output for more than session lifetime.

Appends debug data to HTML and console output.

List of selected templates/pages that are used to include or exclude at automatic obfuscation.

This ProcessWire module originates from MODX Evolution plugin.

MIT License

Install and use modules at your own risk. Always have a site and database backup before installing new modules.

Latest news

  • ProcessWire Weekly #490
    In the 490th issue of ProcessWire Weekly we'll check out what's new in the latest core version ProcessWire 3.0.229, introduce a brand-new third party module, and more. Read on! / 30 September 2023
  • ProcessWire 3.0.226 new main/master version
    After 8 months in development we are excited to bring you ProcessWire 3.0.226 main/master. This version has a ton of great new features, improvements and optimizations, plus more than 100 issue fixes. This post takes an in-depth look at highlights from this great new version.
    Blog / 25 August 2023
  • Subscribe to weekly ProcessWire news

“Yesterday I sent the client a short documentation for their ProcessWire-powered website. Today all features already used with no questions. #cmsdoneright—Marc Hinse, Web designer/developer