SAF(NET) = STEPHEN A. FUQUA operating on the Web since 1995

Stephen is a web developer, Bahá'í, and interfaith activist in St. Paul, Minnesota. He likes to write about religion, social justice, sustainability, science, programming, &c.

November 29, 2007

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

Chad Everett — November 30, 2007

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

Post a comment

Remember personal info?




deprecated

On safnet.com

Other sites managed or developed by S.A.F.

S.A.F. elsewhere on the web

  • LinkedIn
    LinkedIn can actually be useful when looking for prospective hires and business or organizational partners
  • GoodReads
    A fun and relatively-unknown social networking site geared towards one's book list
  • Live Journal
    Mirror of the blog at safnet.com, so that a few LJ friends can more easily read and comment there