networkteam/neos-mailobfuscator

Last activity on 2 February 2017
  • 9
  • 3
  • 4523
composer require networkteam/neos-mailobfuscator

A email address and link obfuscation plugin for Neos CMS

1.0.3

A mail address and link obfuscation plugin for TYPO3 Neos

Version
1.0.3
Type
typo3-flow-plugin
Release Date
Jun 6, 2016 12:36:16 p.m.
Source
git
Distribution
zip
Requires
Requires (dev)
None
Suggest
None
Provides
None
Conflicts
None
Replaces
None
GPL-2.0+ bd2e94111b5749074e00c18a5d37bd2fd9259a89

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.

When the link is clicked the email address is unobfuscated by the same algorithm in JavaScript:

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

will become

<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:

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

will become

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

Installation

Install the composer package in your site package or distribution:

$ composer require networkteam/neos-mailobfuscator

There is no need for configuration, as a TypoScript processor is attached to all prototypes extending TYPO3.Neos:Content.

Configuration

Obfuscation can be disabled for specific node types by unsetting the processor:

prototype(Vendor.MyPackage:MyNodeType) {
    @process.networkteamNeosMailObfuscator >
}

The JavaScript include can be disabled for custom minification:

page = prototype(TYPO3.Neos:Page) {
    body.javascripts.networkteamNeosMailObfuscator >
}

Acknowledgments

Original email address obfuscation code by TYPO3 CMS.

Development sponsored by networkteam GmbH - Neos Agentur.

License

Licensed under GPLv2+, see LICENSE

The content of the readme is provided by Github
The same vendor provides 2 package(s).