Obfuscate e-mail addresses in text and links via random hex and ASCII code substitution while retaining the appearance and functionality of hyperlinks.
Example (of full obfuscation):
Would be translated into something like this:
However, in your browser it would appear to you as it does prior to obfuscation, and the link for the e-mail would still work. Theorectically, however, spammers would have a somewhat more difficult time harvesting the e-mails you display or link to in your posts.
- Download the file obfuscate-email.zip and unzip it into your /wp-content/plugins/ directory.
Copy and paste the the code ( obfuscate-email.phps ) into a file called obfuscate-email.php, and put that file into your /wp-content/plugins/ directory. Please ensure you do not introduce any spaces or other characters before the <?php or after the ?>
- Optional: Change configuration options in the file to your liking. In-code comments should help you there.
- Activate the plugin from your WordPress admin ‘Plugins’ page.
function c2c_obfuscate_email( $text, $encode_everything = 1 )
- $text : Text to be scanned for e-mail obfuscation
- $encode_everything: optional; if 1 then full obfuscation (as seen in the Notes section) will occur. If set to 0, then only very minimal obfuscation occurs, i.e. “@” gets replaced with
@and “.” gets replaced with
(See notes section above)
- 24 Mar 2005 : v0.9 — Released to the public
Copyright (c) 2005 by Scott Reilly (aka coffee2code)
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the “Software”), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
18 replies on “Plugin: Obfuscate E-mail”
This plugin is exactly what I have been looking for. No more hand obfusication or whatever that word is.
[…] « Skype 1.2 is Final Obfuscate E-mail The Obfuscate E-mail plugin for WordPress has been activated here. I no longe […]
Awesome plugin! So glad someone finally made one 🙂
Works great, thanks! I’m tiring of avoiding the bots by using the [AT SIGN] and [DOT] stuff.
[…] Testing Obfuscate Email WP Plugin
April 24th, 2005
Let’s see if the Obfuscate Email plugin works. It uses HTML hex characters to hide email […]
Is it possible to use it on pages in WP ?
testing obfuscation moc.liamnull@retnug
Nope. Doesn’t apply to comments where the most idiots post their e-mail addresses. Oh, well.
Mads: Yes, it works on pages in WP.
Pariah: Actually, it does apply to comments. I simply didn’t have the plugin activated on my site. It is now, so feel free to test again.
I am not sure what is happening, but I cannot get the plugin to work.
Look at giveayear.com/about/
I am using WP 2.0. Plugin is activated
This looks great. Let’s test ‘er out.
[…] Uploaded the Obfuscate E-mail plugin, which makes it almost impossible for bots to grab our email addresses and leaves them human readable and with working mailto: links. […]
Just copy this where ever you need it
Unfortunately, this obfuscation scheme is easily decoded by spambots. For proof, see
THEMEDIA’s solution is more fool proof.
It’s a wonderful plugin.
For several reasons I have put email-addresses in the post meta (such as post_custom(’email’)). They will be published later like
echo ‘” TARGET=”_blank”>Email
Is there any way your plugin can manage this (it does not work with 2.1.3)?
[…] Obfuscate E-Mail (www.coffee2code.com/archives/2005/03/24/plugin-obfuscate-e-mail/) 0.9 […]
[…] Obfuscate E-mail plugin for WordPress has been activated here. I no longer need to manually encode an email address I enter here (usually […]
[…] unkenntlich zu machen. Nachdem ich dann einige Plugins wie bspw. EmailShroud, Transpose Email und Obfuscate-Email ausprobiert hatte und mit mit allen nicht ganz so zufrieden war, bin ich vor ein paar Tagen durch […]