ObfuscateEmail-Revo
Last updated Apr 6th, 2019 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn moreJavascript Free! This plugin does not require, create, or utilize unnecessary Javascript, thereby reducing the overhead on the web browser client.
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 protected] into:
shawn@shawnwilkerson.com
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.
Additional Functionality¶
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.
Examples¶
This adds an additional layer of protection.The following three are all the same e-mail address from the same page:
shawn@shawnwilkerson.com
shawn@shawnwilkerson.com
shawn@shawnwilkerson.com
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
Manual Install¶
- 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.
History¶
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.
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$306 per month—let's make that $500!
Learn more