2017 © Pedro Peláez
 

neos-plugin neos-mailobfuscator

A email address and link obfuscation plugin for Neos CMS

image

networkteam/neos-mailobfuscator

A email address and link obfuscation plugin for Neos CMS

  • Wednesday, July 11, 2018
  • by chlu
  • Repository
  • 11 Watchers
  • 13 Stars
  • 11,047 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 6 Forks
  • 1 Open issues
  • 9 Versions
  • 9 % Grown

The README.md

Neos MailObfuscator

In order to make life for spammers more difficult, this package provides an obfuscation of email addresses. The email address is obfuscated by a rot13 like algorithm with random offsets., (*1)

When the link is clicked, the email address is unobfuscated by the same algorithm in JavaScript:, (*2)

<a href="mailto:foo@example.com">foo@example.com</a>

will become, (*3)

<a href="javascript:linkTo_UnCryptMailto('obfuscatedEmail', -randomNumber)">foo (at) example.com</a>

The replacement is done in 2 steps, thus it is possible to have a link label that is different from the email address:, (*4)

<a href="mailto:foo@example.com">Contact us</a>

will become, (*5)

<a href="javascript:linkTo_UnCryptMailto('obfuscatedEmail', -randomNumber)">Contact us</a>

Installation

Install the composer package in your site package or distribution:, (*6)

$ composer require networkteam/neos-mailobfuscator

There is no need for configuration, as a Fusion processor is attached to body of Neos.Neos:Page. That means, that the complete content of body tag is obfuscated., (*7)

Compatibility

See the following table for the correct plugin version to choose:, (*8)

Neos CMS Plugin version
>= 3.0 2.x
< 3.0 1.x

Configuration

Obfuscation can be disabled for specific node types by unsetting the processor:, (*9)

prototype(Neos.Neos:Page) {
    @process.networkteamNeosMailObfuscator >
}

The JavaScript include can be disabled for custom minification:, (*10)

prototype(Neos.Neos:Page) {
    networkteamNeosMailObfuscator >
}

The replacement string for the at-sign (@) can be configured. It will be inserted as HTML without escaping, so it's possible to replace it with something like an image:, (*11)

# Settings.yaml
Networkteam:
  Neos:
    MailObfuscator:
      atCharReplacementString: '<img src="https://example.com/at-icon.png" alt="at" />'

EEL Helpers

There are Eel helpers available to use MailObfuscator functions in Fusion, (*12)

// Convert @ Character
${Networkteam.Neos.MailObfuscator.convertAtChar('foo@example.com')}
// returns: foo (at) example.com

// Convert Mail to Href
${Networkteam.Neos.MailObfuscator.convertMailto2Href('foo@example.com')}
// returns javascript:linkTo_UnCryptMailto('obfuscatedEmail', -randomNumber)

Acknowledgments

Original email address obfuscation code by TYPO3 CMS., (*13)

Development sponsored by networkteam GmbH - Neos Agentur., (*14)

License

Licensed under GPLv2+, see LICENSE., (*15)

The Versions

11/07 2018

dev-master

9999999-dev

A email address and link obfuscation plugin for Neos CMS

  Sources   Download

GPL-2.0+

The Requires

 

11/07 2018

v2.2.0

2.2.0.0

A email address and link obfuscation plugin for Neos CMS

  Sources   Download

GPL-2.0+

The Requires

 

10/07 2018

1.0.x-dev

1.0.9999999.9999999-dev

A mail address and link obfuscation plugin for TYPO3 Neos

  Sources   Download

GPL-2.0+

The Requires

 

04/05 2018

2.1.0

2.1.0.0

A email address and link obfuscation plugin for Neos CMS

  Sources   Download

GPL-2.0+

The Requires

 

02/02 2017

2.0.0

2.0.0.0

A email address and link obfuscation plugin for Neos CMS

  Sources   Download

GPL-2.0+

The Requires

 

06/06 2016

1.0.3

1.0.3.0

A mail address and link obfuscation plugin for TYPO3 Neos

  Sources   Download

GPL-2.0+

The Requires

 

15/02 2016

1.0.2

1.0.2.0

A mail address and link obfuscation plugin for TYPO3 Neos

  Sources   Download

GPL-2.0+

The Requires

 

02/02 2015

1.0.1

1.0.1.0

A mail address and link obfuscation plugin for TYPO3 Neos

  Sources   Download

GPL-2.0+

The Requires

 

03/09 2014

v1.0.0

1.0.0.0

A mail address and link obfuscation plugin for TYPO3 Neos

  Sources   Download

GPL-2.0+

The Requires