EmailToAscii plugin for wordpress

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.

7 responses to “EmailToAscii plugin for wordpress”

  1. baron

    hi. Thanks for plugin

    perfect.

    Regards

  2. Dax Davis

    This does not seem to be working on 2.7. I looked at the source on your site and it shows mailto:. Any ideas?

  3. Dax Davis

    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. :)

  4. Chameleon

    Works great on WP 2.8 with complex mailto: tags including ?subject=&body= definitions.

Leave a Reply

Theme Forest ad
Wordpress Themes Collection ad
Woothemes

Poll

How do you start your WordPress plugins development projects?

View Results

Loading ... Loading ...