Elliot Back has come up with the best anti-comment-spam measure I’ve heard in quite a while.
Taking Matt’s stopgap spam solution, which sends precomputed hashes to be echoed back by the user-agent’s form, I’ve added dynamic generation of the md5 hash. Rather than write it to a hidden field, we wait until the form is submitted to compute the hash. This prevents spammers from automatically scraping the form, because anyone wanting to submit a comment must execute the javascript md5.
Here, as I understand it, is the method:
This ensures that the browser end must have executed the javascript code. Pretty slick. Of course, if everyone uses it, comment spam tools will be quickly rewritten to be able to handle MD5 hashing, but until then we could enjoy a little spam-free blogging. Well done.
Via Waxy’s Links.
Follow Gadgetopia on Twitter
 
Tags:
Blogs, Comment Spam, Spam, Javascript
I looked at this just this morning for my personal blog. Sadly, it's only confirmed to work on IE 5+ and Firefox 1.0+ running on Windows.
Well, it's only confirmed to work with those browsers, but the javascript is very basic. I don't see a reason why it wouldn't be cross-browser friendly.