Protecting mailto link email addresses from spam

 

The best way to keep a spammer from getting your email address is to not put your email address on your website.  So best case scenario --- use a contact form.  And use one that doesn't require you to put your email address in a hidden input field.  And even more important, make sure it has protection from email header injection.

If you absolutely must use mailto: addresses, here's a little trick;  write it out to the page using Javascript.  I wrote a Perl script a few years back which will do just that.  Type in your email address and it will spit out a few lines of document.write which will obfuscate your address.  You can then place this into an external .js file and reference it anywhere on the page that you want your mailto: to appear.  It isn't fancy, but it does the trick.

http://projects.ajmconsulting.net/mailto/

December 21, 2008 at 03:21:22 PM / 0 comments / Email, Javascript, Perl, Projects, Spam

new Flickr account

 

I finally jumped on the bandwagon and created a Flickr account.  I take a lot of photos, so I guess it makes sense.

After playing around a bit with the Flickr API, I now have a live feed of some of the most recent photos added to the account.  See link at very top of this page.  You can sort the photos by newest first, or in random fashion.

API's are cool.

November 2, 2008 at 02:28:33 PM / 0 comments / Photography, Projects