Hide Email from Bots Macro

Last modified by Thomas Mortagne on 2026/02/26 15:38

cogObfuscate email addresses to protect them from email harvesting bots
TypeXAR
Category
Developed by

Raluca Stavro, Ionut Maxim

Active Installs0
Rating
0 Votes
LicenseGNU Lesser General Public License 2.1

Success

Installable with the Extension Manager

Description

Information

Note: Email obfuscation is now a built-in feature of the Mail Application.

Provides email protection from bots trying to harvest email addeses to further spam them.

The principle is based on the assumption that bots do not hold the power to run Javascripts, which we use to deobfuscate (unhide) the email we want to protect for the visitor/user.

Usage

{{mailto address="[email protected]" /}}

where  [email protected]  is the obfuscated version of  [email protected]  email address obtained using this encoder.

Regular users will see a regular mailto link (e.g. [email protected]), as shown on this screenshot:

hide-email-from-bots.png

Bots will see an obsfucated mailto link (e.g. [email protected]).

In case you'e interested, this is the coding algorithm used.

Should you want to further improve this macro, in order to skip the encoding step and fill in the macro variable with the email address in clear, the encoding function should be adapted.

Release Notes

v0.1

First version.

Get Connected