Skip to content

ComiR/Networkteam.Neos.MailObfuscator

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

99 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

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:[email protected]">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 Fusion processor is attached to all prototypes extending Neos.Neos:Content.

Compatibility

See the following table for the correct plugin version to choose:

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:

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

The JavaScript include can be disabled for custom minification:

page = prototype(Neos.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.

About

Email address obfuscation for Neos CMS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 89.2%
  • JavaScript 10.8%