axllent/silverstripe-email-obfuscator

Email obfuscator for SilverStripe

Installs: 90 104

Dependents: 3

Suggesters: 0

Security: 0

Stars: 9

Watchers: 4

Forks: 4

Open Issues: 0

Type:silverstripe-vendormodule

2.1.0 2023-03-21 04:04 UTC

This package is auto-updated.

Last update: 2024-09-21 07:21:31 UTC


README

A HTTPMiddleware filter to automatically obfuscate all visible email addresses in all HTML output via the ContentController by replacing them with an encoded (switching between ASCII & hexadecimal) version.

Example

me@site.com

becomes:

me@site.com

Requirements

  • SilverStripe ^4 || ^5

SilverStripe 3 should check out the silverstripe3 branch

Installation

composer require axllent/silverstripe-email-obfuscator

Usage

The filter automatically encodes any email address outputted through the ContentController provided it contains the default text/html header.

No configuration required.