I wrote a very simple plugin this morning for a client website. People often seems to forget that an email address on a webpage is the best way to get spammed. Never ever use a non protected email address in the wild .
If you don’t want to get wet, don’t go out without your umbrella.
A common technique to “mask” email addresses to spam crawler is to convert all the characteres to their ascii entities. That’s easly done with a bit of php. Now hook the function to a wordpress filter on the content text and you get emails auto converted to ascii.
Check this one out: admin@yoursiteisvalid.com. (you will need to view the source of the page in order to see the ascii characters) I’ll let you know if I get spammed…
Now it’s not bulletproof of course but it should discourage most automated email collector out there.
The plugin is available on the wordpress repository: http://wordpress.org/extend/plugins/emailtoascii/. Don’t hesitate to leave any comment on this page.













hi. Thanks for plugin
perfect.
Regards
This does not seem to be working on 2.7. I looked at the source on your site and it shows mailto:. Any ideas?
Interesting, it does work when I look at it from here. I have checked with ie6/7, Firefox, Opera, Safari and Chrome.
Do you use another browser than those? In the source the “mailto” is encoded in ascii as well, maybe that’s what you are seeing. But it should still work when you click on the link.
OK, chalk it up to technical craziness as I see it now. I’m using FF on a Mac, but checked in in my Safari and IE 7 on my Windows virtual machine. Either I was looking at something else or am losing my mind. Thanks for straightening me out.
No worries, I wouldn’t be surpised if some browser are not supporting Ascii character correctly.
Glad everything is working.
Works great on WP 2.8 with complex mailto: tags including ?subject=&body= definitions.
Thanks a lot Chameleon for the feedback, I didn’t had the time to check on wp 2.8 when it came out last week. I’ll update the repository to say “wp 2.8″ friendly.