innoweb/silverstripe-email-obfuscator

Obfuscates all email addresses displayed on the site. Email addresses are revealed using Javascript.

Installs: 858

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 2

Forks: 0

Open Issues: 0

Type:silverstripe-vendormodule

4.0.0 2025-09-23 00:55 UTC

This package is auto-updated.

Last update: 2025-09-23 00:55:48 UTC


README

Version License

Overview

Obfuscates all email addresses displayed on the site. Email addresses are revealed using Javascript.

Thanks to Plato for some inspiration.

Requirements

  • Silverstripe CMS 6

Installation

Install the module using composer:

composer require innoweb/silverstripe-email-obfuscator dev-master

and run dev/build.

Usage

All email addresses on a page get obfuscated by a middleware and then rewritten back to email links via Javascript.

If you need to skip obfuscation of certain links, you can add the skip-email-obfuscation class to their tag.

This is useful for e.g. Mastodon links that are falsly recognised as emails:

<a href="https://mastodon.social/@sminnee@mastodon.nz" class="skip-email-obfuscation">Sam Minnée on Mastodon</a>

License

BSD 3-Clause License, see License