What it does¶
This MODX Revolution Plugin operates transparently in the background diligently obfuscating all e-mail addresses it finds - whether they appear as links or as straight text in the given page. It can find all common email addresses as specified by RFC2822, including all unusual but allowed characters.
How it works¶
It turns email@example.com into:
Who it works for¶
All users on the project, links to outside e-mail addresses, same-site e-mail address, etc. It simply works on all e-mail addresses.
While the plug-in is operating transparently in the back ground, it is also performing another task. It is constantly randomizing the encoding of the e-mail address, as to make it appear it is always change, though they work flawlessly in e-mail applications and simply cut and paste operations.
This adds an additional layer of protection.The following three are all the same e-mail address from the same page:
Package Manager Installation¶
Simply download and install from the Package Manager. If other OnWebPagePreRender events exist in the project, order of execution priority may be set in the respective Plug-ins - if necessary.
Code is also available via Github¶
The original source code can be found by visiting http://github.com/wshawn/ObfuscateEmail
- Create a new plugin
- Paste in the code from http://github.com/wshawn/ObfuscateEmail
- Click the OnWebPagePreRender option on the events tab (near bottom)
- Save the Plugin
Protect your projects and your users¶
With this plug-in, it is very easy to protect the inboxes of every e-mail address located within your pages. Protect your users and make your self look good in the process.
This Plugin was originally released for MODX Evolution by Aloysius Lim: https://modx.com/extras/package/obfuscateemail. When I made the jump to MODX Revolution a few years ago, I brought this plugin along as it had served my clients well. With the Release of MODX Revolution 2.1 and its move away from legacy code, some updates had to be performed. I hope you find ObfuscateEmail-Revo as effective as I have over the years.