EmailToEncryptedMailto by cwsoft

Converts text emails and regular mailto links into encrypted mailto links.

EmailToEncryptedMailto

ProcessWire module to convert text emails and regular mailto links into encrypted mailto links to hide them from spam bots. The text email info@domain.com would turn into the following encrypted mailto link:

<a href="javascript:cdc('dw:ckfv:e.frzfdw:esyfd','Ihre AnfrageV')">
   info<span hidden>(</span>@<span hidden>)</span>
   domain<span hidden>(</span>.<span hidden>)</span>com
</a>

The link will be decrypted on click by the Javascript method cdc, which is automatically linked in your page head section if a email exists on that page.

Installation


Download latest module zip file via Download button of the ProcessWire module page or from Github release section and unzip it to your site/modules folder. Ensure the module folder is named EmailToEncryptedMailto. Alternatively you can clone the repository into your Processwire site/modules folder (recommended way for developers) via the following commands:

cd /your_processwire_folder/site/modules
git clone https://github.com/cwsoft/EmailToEncryptedMailto.git

Once the module files are copied in place, login to your ProcessWire backend and reload the modules. Afterwards the EmailToEncryptedMailto module should show up in your backend ready to be installed by ProcessWire as usual. Once installed, view a page with email(s) in your frontend to see the module in action. You may want to install the German language file shipped with the module. For details see section Language files of the README.

Customization


By default the characters [@.] are wrapped in paranthesis added via span tags in the visible mailto part to trick spam bots. The paranthesis () are hidden by default from human beeings via the HTML attribute hidden. Emails entered in input fields will be skipped from encryption by default. The module comes with zero configuration and should work out of the box.

Language files

Enrypted mailto links automatically get a mail subject "Your Request" (Default), respective "Ihre Anfrage" (German). If you want to use the German language file, you need to install it from the module installation section in the backend. Learn how to install language files or add translation files yourself by following the steps described in the Helloworld module by Ryan Cramer.

You can specify pageIDs as comma separated list of pages to skip from the email encryption via the module configuration section in the Processwire backend. Apart from that, no further customizations are yet available. Idea was to keep this module as clean and lean as possible. If you need additional features or want to customize stuff to your needs, you may want to test out other E-Mail obfuscation modules available in the official ProcessWire modules catalog.

Have fun cwsoft

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

Latest news

  • ProcessWire Weekly #560
    In the 560th issue of ProcessWire Weekly we'll check out the latest core updates, cover newly released ProcessWire modules, and more. Read on!
    Weekly.pw / 1 February 2025
  • ProcessWire 3.0.244 new main/master version
    ProcessWire 3.0.244 is our newest main/master/stable version. It's been more than a year in the making and is packed with tons of new features, issue fixes, optimizations and more. This post covers all the details.
    Blog / 18 January 2025
  • Subscribe to weekly ProcessWire news

“We were really happy to build our new portfolio website on ProcessWire! We wanted something that gave us plenty of control on the back-end, without any bloat on the front end - just a nice, easy to access API for all our content that left us free to design and build however we liked.” —Castus, web design agency in Sheffield, UK