Email Spam Protection
The email spam protection will convert the shortcode [ escapeemail email="email@address.com" ] to
<script type="text/javascript">
eval(unescape('%64%6f%63%75%6d%65%6e%74%
2e%77%72%69%74%65%28%27%3c%61%20%68%
72%65%66%3d%22%6d%61%69%6c%74%6f%3a%
65%6d%61%69%6c%40%61%64%64%72%65%73
%73%2e%63%6f%6d%22%3e%65%6d%61%69%6c
%20%61%74%20%61%64%64%72%65%73%73%
20%64%6f%74%20%63%6f%6d%3c%2f%61%3e%27%29'))
</script>
which writes email at address dot com into your post.
Based on the email obfuscation found at http://twitter.com/help/contact
You can download this plugin here.
If you don’t want the plugin (or don’t have WordPress) you can generate the code for yourself: Email Spam Protection
Stumble Upon
Del.icio.us
Buzz

September, 16th 2008 at 1:08 pm
hi. Thanks for plugin
perfect.
Regards
WordPress Plugin Releases for 09/18 | bloground.ro - B...
September, 18th 2008 at 3:00 pm
[...] Email Spam Protection Obfuscates your email. You need to enter the shortcode in your post. [...]
September, 19th 2008 at 1:23 am
The many thanks for the work! I the worshipper Of wordPress, and included your site in survey on my blog. Regards from the Ukraine!
September, 19th 2008 at 9:09 am
Hi
The non-plugin email spam protection thing is not working. It spews out an error message like this:
Fatal error: Call to undefined function: write_email_js() in /home/blueware/public_html/wp-content/themes/blueberry/email.php on line 34
Please fix it.
Thanks
S.K
September, 19th 2008 at 9:36 am
@S.K
Woops! Forgot to update the demo when I updated the plugin, my bad! All set now though and thanks for the heads up.
September, 19th 2008 at 11:13 am
Does this work for comments?
September, 19th 2008 at 11:18 am
@John P: Not as of yet. Good idea though, I will be adding an option to add the shortcode to the ‘comment_text’ filter. Thanks!
Okay, as of 12:45 est it now does escape comment emails (if they use this shortcode) however, it will only enable the escapeemail shortcode for comments, it will not run the comment text through any other shortcodes.
September, 19th 2008 at 12:23 pm
Sweet. Works fine. Sometimes commenters just want to leave their email address so this will let me edit the comment and keep them relatively secure at the same time.
Might want to just clean up the code and close the last php tag in the script. That and “protection” is misspelled in the script.
Email Spam Protection » Blueberryware « A Guilt...
September, 19th 2008 at 12:28 pm
[...] Email Spam Protection » Blueberryware. [...]
September, 20th 2008 at 10:23 pm
I will gladly support your Spam Protector (I use another program quite a bit on web sites) however, a couple of things I would like to see:
1. Put a hook in the program so that it is on the WordPress Menu and it is in view while writing a post.
2. Make it read the email address of the person that is logged in, especially the admin. Then all we need to do is press the button on the menu to insert the code automatically.
Pretty lazy, I know but it is a thought. Your efforts are much appreciated by the blogging world.
Thanks so much for the insight of some useful code.
September, 20th 2008 at 10:28 pm
@Ed B
Those are great ideas! I will try and implement them over the next couple days.
Leonaut.com
September, 21st 2008 at 5:45 am
Email Spam Protection…
Obfuscates your email. You need to enter the shortcode in your post….
September, 23rd 2008 at 3:15 pm
Great plug-in! Unfortunately, I have some authors that don’t understand code and insist on leaving their e-mail addresses in posts.
To protect them from themselves, is there a way for this plugin to scrape all posts and comments and convert any e-mail addresses into the javascript? Without using the [escapeemail] code?
Thanks!
My favourite Blog Posts » Weblog Tools Collectio...
September, 24th 2008 at 4:45 pm
[...] Email Spam Protection [...]
October, 16th 2008 at 12:22 pm
Your code generator (http://blueberryware.net/email/) leaves out the @ symbol on final output. Thus it generates [name][domain].[tld], which, of course, fails to send an e-mail.
October, 16th 2008 at 12:30 pm
@Pariah S. Burke
I just tested it and I had no trouble, you did not leave a real email in your comment for me to contact you back with, however I would love to know the email you used to see if it is a bug. Thanks!
December, 1st 2008 at 11:19 am
thank you…
ibonette
March, 4th 2009 at 10:42 pm
Unable to obfuscate pubs2006@mydomain.com – the zeros are removed from the result.
May, 2nd 2009 at 5:15 am
I am trying to implement your nifty script across several sites, both manually and automagically.
Is this a correct implementation of it when done manually? Ie. is this what i should write in my html?
http://pastebay.com/13153
May, 4th 2009 at 12:16 pm
As stated in your email i tried only the script, both on a wordpress-installation and on a simple html-page.
But that script dont seem to display anything..
When I use the wordpress-plugin, [escapeemail email="email@address.com"], example here: http://ioio.se/skoldev/vi-gor-4chang3-2/
The plugin displays an mailto:email@address.com in the raw html displayed to the user.
I am confused here.
May, 23rd 2009 at 4:43 pm
Hi,
I have followed you from Matt Cutts blog, thx for the clarificating
of how to implement
October, 5th 2009 at 1:39 pm
In order to handle zeros in the email address, I changed line 77 from “!empty($c)” to “strlen($c) > 0″.
February, 12th 2010 at 5:18 am
Cool method!
I have added it to the plugin Email Encoder Bundle.
Thanks Adam!