Stephen A. Fuqua (saf)

a Bahá'í, software engineer, and nature lover in Austin, Texas, USA

Down With Comment Spam

Frequent blog readers will easily recognize comment spam: unrelated or gibberish comments posted to entries. I’ve been getting a ton of them with phrases like “cool site. Thanks!”. In the old Movable Type I knew how to filter these out. With the new I wasn’t sure, and have been too lazy to figure out the proper regular expression syntax. Thankfully someone came to my rescue: /(cool|excellent|good|nice)(\s)+site\.(\s)+(thank(\s)+you|thanks)/i.

Comments

imported from old Movable Type blog

author: Chad Everett
date: ‘2007-11-30 10:38:01 -0600’
url: http://everitz.com/

Glad you enjoyed it. I hope it helps. :)